Announcement

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

    After upgrade to 2.2 getting SerializationException

    Before upgrading I was on 2.1 and this was working now after I'm getting the SerializationException when entering filter data and pushing enter via the top filter bar above a ListGrid.

    Using
    GWT 2.0.3
    SmartGWT 2.2 (Nightly build due to other issue that was fixed)

    Was something changed that would cause this error in 2.2 but not 2.1?

    It seems to be where I'm using Criteria that something changed in the object for 2.2 :
    Code:
    Criteria c = request.getCriteria();
    HashMap criteriaMap = (HashMap)c.getValues();
    was in 2.1:
    {itmid=TP*}
    
    is now in 2.2:
    {operator=and, _constructor=AdvancedCriteria, criteria=[object Object]}

    Code:
    01/06/2010 17:12:41 [ERROR] com.eonegroup.dashboard.client.rpc.SGWTItemService_Proxy:61 - DSAsyncCallback::onFailure
    com.google.gwt.user.client.rpc.SerializationException:
    null
        at com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:161)
        at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:145)
        at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
        at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
        at com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase.serialize(Map_CustomFieldSerializerBase.java:50)
        at com.google.gwt.user.client.rpc.core.java.util.LinkedHashMap_CustomFieldSerializer.serialize(LinkedHashMap_CustomFieldSerializer.java:50)
        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:157)
        at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
        at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
        at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
        at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
        at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
        at com.eonegroup.dashboard.client.rpc.SGWTItemService_Proxy.fetch(SGWTItemService_Proxy.java:54)
        at com.eonegroup.dashboard.client.datasource.GWTRPCDataSource.transformRequest(GWTRPCDataSource.java:148)
    Last edited by gcstang; 2 Jun 2010, 11:29.

    #2
    DSRequest.getCriteria() returns a Criteria object but getValues no longer returns the field names and values for the Criteria as it did is there another way to get those values from this updated object in 2.2?

    Comment

    Working...
    X