Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Looks like Enum not getting deserialized

I have implemented custom serialization as mentioned for embedded classes. I do not want to change the implementation as non-embedded as I think it should be resolvable

https://docs.gigaspaces.com/latest/de...

But for some reason I dont think the Enum are getting serialized and deserialized appropriately and I am getting the following error -

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SampleApp': Invocation of init method failed; nested exception is com.gigaspaces.lrmi.nio.UnMarshallingException: Failed to unmarsh :[RequestPacket: interface com.gigaspaces.internal.remoting.RemoteOperationsExecutor.executeOperation(com.gigaspaces.internal.remoting.RemoteOperationRequest null), isOneWay = false, isCallBack = false, Priority = REGULAR]

Below are the linked exceptions -

Caused by: com.gigaspaces.lrmi.nio.UnMarshallingException: Failed to unmarsh :[RequestPacket: interface com.gigaspaces.internal.remoting.RemoteOperationsExecutor.executeOperation(com.gigaspaces.internal.remoting.RemoteOperationRequest null), isOneWay = false, isCallBack = false, Priority = REGULAR]

Caused by: com.j_spaces.core.EntrySerializationException: Failed to deserialize Entry com.example.Parent

Caused by: java.lang.ClassNotFoundException: com.example.Child (no security manager: RMI class loader disabled)

Deploying on docker - 14.5.0 image

asked 2019-09-05 02:09:13 -0500

vinny gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

Hi Vinny,

  1. Does the write/read is working for you without implementing Custom Serialization?
  2. What framework are you using?
  3. How do you write/read to/from space?
  4. Please open a support case and attach your class includes readExternal/writeExternal methods implementation.

Thanks,

Yuval

answered 2019-09-05 02:55:32 -0500

Yuval gravatar image

updated 2019-09-05 02:58:11 -0500

edit flag offensive delete link more

Comments

1 . Serialization is not working without Custom Serialization also and I read somewhere that people has issues with Enums , my Pojo does have enum in it - It did work while creating a common/feeder project and deploy them on xap grid but I was trying to do the same from Spring boot app running locally.

  1. Spring Boot 2.1.7.RELEASE.

  2. I am writing using a DAO bean which autowires the Gigaspace bean.

vinny gravatar image vinny  ( 2019-09-05 12:18:18 -0500 )edit
  1. Not working without custom serialization too. I read a post where someone has problem with Enums and when removed it worked for them.
    1. Spring boot - 2.1.7.RELEASE
    2. Using a DAO bean which internally autowires the Gigaspace bean.
vinny gravatar image vinny  ( 2019-09-05 12:21:23 -0500 )edit
0

Hi Vinny,

In case you don't have access to support portal, you can attach your class here.

Thanks,

Yuval

answered 2019-09-05 07:11:39 -0500

Yuval gravatar image
edit flag offensive delete link more

Comments

The class has been sent through the support portal - I think the issue is with the RMI class loader not knowing about the Embedded classes.

Caused by: java.lang.ClassNotFoundException: com.example.Child (no security manager: RMI class loader disabled)

I dont know if we need to provide some kind of Security Manager config to have the client authenticate to the sever before we can RMI to it.

vinny gravatar image vinny  ( 2019-09-05 23:50:08 -0500 )edit

Vinny,

We didn't receive the class. Can you attach a replication test here in the forum?

Thanks,

Yuval

Yuval gravatar image Yuval  ( 2019-09-09 05:56:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-09-05 02:09:13 -0500

Seen: 184 times

Last updated: Sep 05 '19