Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    NoClassDefFoundError

    I'm running unit tests with TestNG and EasyMock and I'm running into this error:

    Code:
    NoClassDefFoundError: com/google/web/bindery/event/shared/Event$Type
      at java.lang.Class.getDeclaredMethods0
      at java.lang.Class.privateGetDeclaredMethods
      at java.lang.Class.getMethod0
      at java.lang.Class.getMethod
      at org.easymock.internal.ObjectMethodsFilter.<init>
      at org.easymock.classextension.MocksControl.createMock
      at org.easymock.classextension.EasyMock.createMock
    Here is the line that this happens on:
    Code:
    ClickEvent clickEvent = EasyMock.createMock(ClickEvent.class);
    It seems that it can't find the Type class from SmartGWT's ClickEvent class. I've included all the GWT jars in my classpath but it still doesn't work.

    I'm using SmartGWT 2.5p, GWT 2.0.3 and running my TestNG cases out of Eclipse.

    Any ideas?

    I did some searching around and it seems like com.google.web.bindery.event.shared.Event.Type is included in the GWT 2.3 jars. Does SmartGWT 2.5p depend on GWT 2.3? If so, is there a way around this (as we're not upgrading anytime soon)?

    Thanks!

    #2
    We do depend on some things in 2.3, and we're probably going to be requiring yet more recent versions soon. GWT 2.5, in particular, eliminates some long-standing JSNI-related bugs in core GWT that we have no way of completely working around.

    There's not much we can do for you except offer the (very large, expensive effort) of maintaining a customer-specific fork for you so you can stay on GWT 2.0.3 a while longer.

    Comment

    Working...
    X