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

Ask Your Question
0

LMRI transport over NIO caught unexpected exception

Wondering what might be causing this?:

2018-03-31 15:13:47,539 SEVERE [com.gigaspaces.lrmi] - LRMI transport protocol over NIO connection [NIO://wtl-mxpiapp-100.sandvine.com:7103/pid[3400]/22870855548_4_-7518057023617801728_details[class com.gigaspaces.internal.server.space.SpaceImpl(MAGIC_SPACE_container2_1:MAGIC_SPACE)]] caught unexpected exception: com.gigaspaces.lrmi.nio.MarshallingException: Failed to marsh: [RequestPacket: interface com.gigaspaces.internal.remoting.RemoteOperationsExecutor.executeOperation(com.gigaspaces.internal.remoting.RemoteOperationRequest WriteEntrySpaceOperationRequest[entryPacket=EntryPacket[typeName=com.magicsoftware.xpi.server.messages.ExternalResponse,uid=1529392519^54^192.168.196.20916936@wtl-mxpiapp-100!@!ServiceContract!@!3b781630-bea9-4bcc-9ba7-ffed287f9a20^0^0,version=0,operationId=ID:6830151960041656639.130807],txn=null,lease=0,timeout=3000,modifiers=4096,isUpdate=true]), isOneWay = false, isCallBack = true, Priority = REGULAR]; Caused by: com.gigaspaces.lrmi.nio.MarshallingException: Failed to marsh: [RequestPacket: interface com.gigaspaces.internal.remoting.RemoteOperationsExecutor.executeOperation(com.gigaspaces.internal.remoting.RemoteOperationRequest WriteEntrySpaceOperationRequest[entryPacket=EntryPacket[typeName=com.magicsoftware.xpi.server.messages.ExternalResponse,uid=1529392519^54^192.168.196.20916936@wtl-mxpiapp-100!@!ServiceContract!@!3b781630-bea9-4bcc-9ba7-ffed287f9a20^0^0,version=0,operationId=ID:6830151960041656639.130807],txn=null,lease=0,timeout=3000,modifiers=4096,isUpdate=true]), isOneWay = false, isCallBack = true, Priority = REGULAR] at com.gigaspaces.lrmi.nio.Writer.writePacket(Writer.java:213) at com.gigaspaces.lrmi.nio.Writer.writeRequest(Writer.java:153) at com.gigaspaces.lrmi.nio.Writer.writeRequest(Writer.java:158) at com.gigaspaces.lrmi.nio.CPeer.invoke(CPeer.java:747) at com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:75) at com.gigaspaces.lrmi.MethodCachedInvocationHandler.invoke(MethodCachedInvocationHandler.java:71) at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:424) at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:405) at com.gigaspaces.reflect.$GSProxy2.executeOperation(Unknown Source) at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855) at com.gigaspaces.internal.remoting.routing.clustered.RemoteOperationsExecutorProxy.execute(RemoteOperationsExecutorProxy.java:52) at com.gigaspaces.internal.remoting.routing.clustered.ClusterRemoteOperationRouter.executeImpl(ClusterRemoteOperationRouter.java:87) at com.gigaspaces.internal.remoting.routing.clustered.ClusterRemoteOperationRouter.execute(ClusterRemoteOperationRouter.java:49) at com.gigaspaces.internal.remoting.routing.partitioned.PartitionedClusterRemoteOperationRouter.executeSingle(PartitionedClusterRemoteOperationRouter.java:212) at com.gigaspaces.internal.remoting.routing.partitioned.PartitionedClusterRemoteOperationRouter.execute(PartitionedClusterRemoteOperationRouter.java:101) at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233) at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplWriteAction.write(SpaceProxyImplWriteAction.java:44) at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplWriteAction.write(SpaceProxyImplWriteAction.java:29) at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.write(AbstractSpaceProxyActionManager.java:412) at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.write(AbstractSpaceProxy.java:468) at org.openspaces.core.DefaultGigaSpace.write(DefaultGigaSpace.java:1234) at com.magicsoftware.xpi.server.spacebridge.spaceservices.Space.doWrite(Space.java:875) at com.magicsoftware.xpi.server.spacebridge.spaceservices.Space.write(Space.java:860) at com.magicsoftware.xpi.server.spacebridge.spaceservices.MessageServices.writeResponseMessage(MessageServices.java:210) at com.magicsoftware.xpi.server.spacebridge.spaceservices.SpaceServices.writeResponseMessage(SpaceServices.java:546) at com.magicsoftware.xpi.server.entities.WorkerEntity.writeResponseMessage(WorkerEntity.java:236) Caused by: com.j_spaces.core.EntrySerializationException: Failed to serialize property #4 (Name=[fault], Type=[java.lang.String]) in entry of type [com.magicsoftware.xpi.server.messages.ExternalResponse]. Value=[sun.misc.Launcher$AppClassLoader@14b9b80] at com.gigaspaces.internal.transport.EntryPacket.createPropertySerializationException(EntryPacket.java:436) at com.gigaspaces.internal.transport.EntryPacket.serializePacket(EntryPacket.java:332) at com.gigaspaces.internal.transport.EntryPacket.writeExternal(EntryPacket.java:300) at com.gigaspaces.internal.transport.AbstractEntryPacket.writeExternalImpl(AbstractEntryPacket.java:289) at com.gigaspaces.internal.serialization.AbstractExternalizable.writeExternal(AbstractExternalizable.java:32) at java.io.ObjectOutputStream.writeExternalData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at com.gigaspaces.internal.serialization.ObjectClassSerializer.write(ObjectClassSerializer.java:36) at com.gigaspaces.internal.io.IOUtils.writeObject(IOUtils.java:730) at com.gigaspaces.internal.client.spaceproxy.operations.WriteEntrySpaceOperationRequest.writeExternal(WriteEntrySpaceOperationRequest.java:168) at java.io.ObjectOutputStream.writeExternalData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at com.gigaspaces.internal.io.IOUtils.marshalValue(IOUtils.java:259) at com.gigaspaces.lrmi.nio.RequestPacket.writeExternal(RequestPacket.java:268) at com.gigaspaces.lrmi.nio.Writer.writePacket(Writer.java:208) ... 25 more Caused by: java.io.NotSerializableException: sun.misc.Launcher$AppClassLoader at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at com.gigaspaces.internal.serialization.ObjectClassSerializer.write(ObjectClassSerializer.java:36) at com.gigaspaces.internal.io.IOUtils.writeObject(IOUtils.java:730) at com.gigaspaces.internal.io.IOUtils.writeObjectArray(IOUtils.java:773) at com.gigaspaces.internal.io.IOUtils.writeObjectArrayCompressed(IOUtils.java:891) at com.gigaspaces.internal.transport.EntryPacket.serializePacket(EntryPacket.java:328) ... 42 more

asked 2018-04-10 10:13:06 -0500

andreasb gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

Hi,

It appears that the value of the String property "fault" can't be serialized and cause the write operation to fail. Is it a nested property you need to implement serializable. Like mentioned here:https://docs.gigaspaces.com/xap/12.2/dev-java/query-nested-properties.html

"The type of the nested object must be a class - querying interfaces is not supported. Nested properties’ classes should be Serializable, otherwise the entry will not be accessible from remote clients."

answered 2018-04-11 03:58:21 -0500

inbarc gravatar image
edit flag offensive delete link more

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: 2018-04-10 10:13:06 -0500

Seen: 81 times

Last updated: Apr 11