Announcement

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

    java.lang.IncompatibleClassChangeError:

    SGWT: 5.0p
    GWT: 2.7.0
    Java: 1.6

    Since we upgraded our project to these versions of SGWT and GWT from SGWT 4.1p and GWT 2.6.1, we have gotten this exception.
    I have the asm-3.1.jar and asm-attrs.jar that were supplied with the SGWT 5.0p distribution.


    java.lang.IncompatibleClassChangeError: class com.google.gwt.dev.javac.asm.CollectMethodData has interface org.objectweb.asm.MethodVisitor as super class

    Thanks,
    Richard


    ps: these are our inherits:

    &#194;&#160; <inherits name='com.google.gwt.user.User'/>
    &#194;&#160; <inherits name="com.smartgwtee.SmartGwtEENoTheme"/> <!--&#194;&#160; this overrides the SmartGwtPowerNoTheme as of 4.1p -->
    &#194;&#160; <inherits name="com.smartgwtpower.tools.Tools"/>&#194;&#160;
    &#194;&#160; <inherits name="com.smartgwt.tools.SmartGwtTools"/>
    &#194;&#160; <inherits name="com.smartclient.theme.graphite.Graphite"/>
    Last edited by siegersallee; 15 Sep 2015, 06:26.

    #2
    We're not sure where this error is coming from, but see this thread for context. In a nutshell, we only include asm .jars because they are a dependency of Hibernate. If you either not using Hibernate, or you are using a version of Hibernate that can use versions of the asm .jars that match what GWT uses, you'll be all set.

    There is also, as pointed out in the other thread, the possibility of separating your client and server classpaths, since GWT needs asm as part of tools run at compile time, not runtime.

    Comment

    Working...
    X