Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. =================================================================
  2. Vaadin is running in DEBUG MODE.
  3. Add productionMode=true to web.xml to disable debug features.
  4. To show debug window, add ?debug to your application URL.
  5. =================================================================
  6. Aug 31, 2015 3:06:08 PM com.vaadin.server.DefaultErrorHandler doDefault
  7. SEVERE:
  8. java.lang.NoClassDefFoundError: com/google/common/eventbus/SubscriberExceptionHandler
  9. at java.lang.ClassLoader.defineClass1(Native Method)
  10. at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
  11. at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  12. at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2472)
  13. at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:854)
  14. at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1274)
  15. at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
  16. at info.chrismcgee.sky.scheduling.SchedulingUI.<init>(SchedulingUI.java:48)
  17.  
  18. private final SchedulingEventBus schedulingEventbus = new SchedulingEventBus();
  19.  
  20. package info.chrismcgee.sky.event;
  21.  
  22. import info.chrismcgee.sky.scheduling.SchedulingUI;
  23.  
  24. import com.google.common.eventbus.EventBus;
  25. import com.google.common.eventbus.SubscriberExceptionContext;
  26. import com.google.common.eventbus.SubscriberExceptionHandler;
  27.  
  28. /**
  29. * A simple wrapper for Guava event bus. Defines static convenience methods for
  30. * relevant actions.
  31. *
  32. * @author Marketing
  33. *
  34. */
  35. public class SchedulingEventBus implements SubscriberExceptionHandler {
  36.  
  37. private final EventBus eventBus = new EventBus(this);
  38.  
  39. public static void post(final Object event) {
  40. SchedulingUI.getSchedulingEventbus().eventBus.post(event);
  41. }
  42.  
  43. public static void register(final Object object) {
  44. SchedulingUI.getSchedulingEventbus().eventBus.register(object);
  45. }
  46.  
  47. public static void unregister(final Object object) {
  48. SchedulingUI.getSchedulingEventbus().eventBus.unregister(object);
  49. }
  50.  
  51. @Override
  52. public void handleException(final Throwable exception,
  53. final SubscriberExceptionContext context) {
  54.  
  55. exception.printStackTrace();
  56. }
  57.  
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement