1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    12
    Vote Rating
    0
    jeeads is on a distinguished road

      0  

    Default Returning a Map<String,Object> from a RPC call

    Returning a Map<String,Object> from a RPC call


    I am attempting to return a Map that uses a String key and values that include a String or some User defined objects that are defined in the shared module. When I return these user defined objects simply as ArrayList<user object> everything works well. When I add them to the above mentioned Map as Map.put.(String key, value User Defined object) the call fails saying that "Type 'mil.dod.j8.gfm.shared.model.UiTypeTransferRequest' was not iuncluded in the set of types which can be serialized by this SerializaitonPolicy". The user defined objects all implement IsSerializable but I still get this message after they have been added to the Map? The Map is being created correctly on the server but I can't get it to tranmit over RPC without the serialization error?

    Help!!

    Jerry

  2. #2
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    248
    Vote Rating
    3
    gishmo is on a distinguished road

      0  

    Default


    Does UiTypeTransferRequest have a default consturctor?

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    12
    Vote Rating
    0
    jeeads is on a distinguished road

      0  

    Default


    Yes there is:
    //--------------------------------------------------------------------
    /
    /Constructors
    //--------------------------------------------------------------------public UITypeTransferRequest() {
    set("name", "Type Transfer Request");
    //TODO the name should be set in whatever client widget uses the instance
    }


  4. #4
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    248
    Vote Rating
    3
    gishmo is on a distinguished road

      0  

    Default


    Please check if your class implements Serializable or isSerializable?
    Check, if the package containing your class is shared.
    Check, if all classes used in your class are serializable.

    This is not related to GXT. It is related to GWT.

  5. #5
    Sencha User
    Join Date
    Jul 2011
    Posts
    12
    Vote Rating
    0
    jeeads is on a distinguished road

      0  

    Default


    The class is part of the mill.dod.J8.gfm.shared.model package and I have tried class definintion implementing Serializable and implementing IsSerializable and implementing both Serializable and IsSerializable with no change?

  6. #6
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    248
    Vote Rating
    3
    gishmo is on a distinguished road

      0  

    Default


    I am doing exact the same in one of my projects. So, it should work.

    Check if every object that is refered by your class is part of the shared package.
    If you use classes from otherr modules, check if you inherit this module in your module descriptor.

    you miss something.

Thread Participants: 1