Announcement

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

    ClassCastException in ValuesManager.addMember()

    Isomorphic,

    I also tried to use 3.1d -( Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v8.3d_2012-07-10/Enterprise Deployment 2012-07-10) ) libraries in our project but have some irrelevant errors as below:

    Code:
    INFO: Module MarketIntelligence has been loaded
    ERROR: Uncaught exception escaped
    java.lang.ClassCastException: null
    	at java.lang.Class.cast(Class.java:2990)
    	at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:169)
    	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57)
    	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
    	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
    	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
    	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    	at com.smartgwt.client.widgets.form.ValuesManager.addMember(ValuesManager.java)
    	at com.sabre.apd.mi.smartgwt.client.searchCriteria.ODCriteria.<init>(ODCriteria.java:33)
    	at com.sabre.apd.mi.smartgwt.client.thumbNail.ODThumbNail.<init>(ODThumbNail.java:11)
    	at com.sabre.apd.mi.smartgwt.client.layout.NavigationToolBar.generateThumbNails(NavigationToolBar.java:37)
    	at com.sabre.apd.mi.smartgwt.client.layout.NavigationToolBar.<init>(NavigationToolBar.java:20)
    	at com.sabre.apd.mi.smartgwt.client.UserInfo.getClientID(UserInfo.java:101)
    	at com.sabre.apd.mi.smartgwt.client.UserInfo$1.execute(UserInfo.java:88)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
    	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
    	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    	at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
    	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    	at java.lang.Thread.run(Thread.java:662)
    Code:
    === 2012-07-11 17:25:03,523 [main] INFO  Logger - Logging system started.
    === 2012-07-11 17:25:03,523 [main] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v8.3d_2012-07-10/Enterprise Deployment 2012-07-10) - Initialization Complete
    === 2012-07-11 17:25:03,527 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\Users\sg0209257\.IntelliJIdea11\system\gwt\mi-implementation.78c105cd\mi-implementation.bb679bb4\run\www
    === 2012-07-11 17:25:03,572 [main] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Base
    === 2012-07-11 17:25:03,573 [main] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
    In the above I see the following line: ' SmartClient/SmartGWT Framework is already initialized'.

    does this indicate any potential issue.


    The same code works absolutely fine with 3.0.

    Thanks.

    #2
    We've moved this to a new thread, it looks unrelated to the thread you posted in.

    We'll check on whether a problem has been introduced with this method.

    Comment


      #3
      This method appears to be working normally and we can't see a way for a ClassCastException to occur. What are you passing to addMember()?

      Comment


        #4
        Isomorphic,

        We are creating a ValuesManager and addMember adds a dynamicform to it.

        Thanks.

        Comment


          #5
          That's definitely not enough to reproduce a problem on it's own. Can you try to isolate why this is happening?

          Comment

          Working...
          X