Announcement

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

    SmartGWT mobile doesnt work with GWT 2.5 release

    when i upgraded to GWT 2.5 i am getting the below error causing Jetty server to stop...

    Stopping Jetty server
    Shutdown all MultiThreadedHttpConnectionManager for Solr server HttpClient
    Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gwt/user/rebind/UserAgentPropertyGeneratorPredicate
    at com.smartgwt.mobile.internal.gwt.useragent.rebind.CustomUserAgentPropertyGenerator.<clinit>(CustomUserAgentPropertyGenerator.java:21)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.google.gwt.core.ext.linker.impl.StandardSelectionProperty.getPropertyProvider(StandardSelectionProperty.java:76)
    at com.google.gwt.core.ext.linker.impl.PropertiesUtil.generatePropertyProvider(PropertiesUtil.java:80)
    at com.google.gwt.core.ext.linker.impl.PropertiesUtil.addPropertiesJs(PropertiesUtil.java:64)
    at com.google.gwt.core.ext.linker.impl.PermutationsUtil.addPermutationsJs(PermutationsUtil.java:88)
    at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.fillSelectionScriptTemplate(SelectionScriptLinker.java:335)
    at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.generateSelectionScript(SelectionScriptLinker.java:412)
    at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.generateSelectionScript(SelectionScriptLinker.java:403)
    at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.emitSelectionScript(SelectionScriptLinker.java:308)
    at com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.link(SelectionScriptLinker.java:209)
    at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeFinalLink(StandardLinkerContext.java:327)
    at com.google.gwt.dev.DevModeBase.link(DevModeBase.java:1001)
    at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:396)
    at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1119)
    at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
    at com.google.gwt.dev.DevMode.main(DevMode.java:311)
    Caused by: java.lang.ClassNotFoundException: com.google.gwt.user.rebind.UserAgentPropertyGeneratorPredicate
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 22 more

    #2
    This issue occurred because Google moved some core GWT classes between package when going from 2.4 to 2.5.

    The next nightly build will work with either 2.4 or 2.5, however, there will be a number of (spurious) warnings logged during compilation which we see no way to eliminate. They look like this:

    When compiling with GWT 2.4.0, you will see:
    Code:
    [WARN] Unknown type 'com.google.gwt.useragent.client.UserAgentAsserter.UserAgentProperty' specified in deferred binding rule
    When compiling with GWT 2.5.0, you will see:
    Code:
    [WARN] Unknown type 'com.google.gwt.user.client.UserAgentAsserter.UserAgentProperty' specified in deferred binding rule

    Comment

    Working...
    X