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

Ask Your Question
0

error while saving entity in partitioned space

I've created very small application with GigaSpaces, using partitioned space and deployed on 2 nodes

During interaction with spaces we got an exception an exception:

Caused by:

org.openspaces.core.EntrySerializationException: Failed to deserialize Entry com.giga.nis.feed.model.ProductFeed; nested exception is com.j_spaces.core.EntrySerializationException: Failed to deserialize Entry com.giga.nis.feed.model.ProductFeed
        at org.openspaces.core.exception.DefaultExceptionTranslator.internalTranslate(DefaultExceptionTranslator.java:163)
        at org.openspaces.core.exception.DefaultExceptionTranslator.translate(DefaultExceptionTranslator.java:47)
        at org.openspaces.core.DefaultGigaSpace.readIfExists(DefaultGigaSpace.java:316)
        at org.openspaces.core.DefaultGigaSpace.readIfExists(DefaultGigaSpace.java:308)
        at com.giga.nis.feed.GigaSpacesFeedHarvester.consume(GigaSpacesFeedHarvester.java:55)
        at com.giga.nis.feed.ImportServlet.handleRequest(ImportServlet.java:107)
        at com.giga.nis.feed.ImportServlet.doPost(ImportServlet.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: com.j_spaces.core.EntrySerializationException: Failed to deserialize Entry com.giga.nis.feed.model.ProductFeed
        at com.j_spaces.core.EntryPacket.readExternal(EntryPacket.java:663)
        at com.j_spaces.core.TemplatePacket.readExternal(TemplatePacket.java:149)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.gigaspaces.io.IOUtils.unmarshalValue(IOUtils.java:231)
        at com.gigaspaces.lrmi.nio.RequestPacket.readExternal(RequestPacket.java:139)
        at com.gigaspaces.lrmi.nio.Reader.unmarshall(Reader.java:461)
        at com.gigaspaces.lrmi.nio.Reader.unmarshallRequest(Reader.java:375)
        at com.gigaspaces.lrmi.nio.ChannelEntry.unmarshall(ChannelEntry.java:125)
        at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:142)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
        at com.j_spaces.core.introspect.PojoIntrospector.init(PojoIntrospector.java:351)
        at com.j_spaces.core.introspect.PojoIntrospector.readExternal(PojoIntrospector.java:344)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.j_spaces.core.AbstractTypeDescriptor.readExternalV1(AbstractTypeDescriptor.java:382)
        at com.j_spaces.core.AbstractTypeDescriptor.readExternal(AbstractTypeDescriptor.java:366)
        at com.j_spaces.core.client.TypeTableEntry.readExternalV1(TypeTableEntry.java:116)
        at com.j_spaces.core.client.TypeTableEntry.readExternal(TypeTableEntry.java:102)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.j_spaces.core.EntryPacket.readExternal(EntryPacket.java:645)
        ... 17 more

Caused by:

com.j_spaces.core.EntrySerializationException: Failed to deserialize Entry com.giga.nis.feed.model.ProductFeed
        at com.j_spaces.core.EntryPacket.readExternal(EntryPacket.java:663)
        at com.j_spaces.core.TemplatePacket.readExternal(TemplatePacket.java:149)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.gigaspaces.io.IOUtils.unmarshalValue(IOUtils.java:231)
        at com.gigaspaces.lrmi.nio.RequestPacket.readExternal(RequestPacket.java:139)
        at com.gigaspaces.lrmi.nio.Reader.unmarshall(Reader.java:461)
        at com.gigaspaces.lrmi.nio.Reader.unmarshallRequest(Reader.java:375)
        at com.gigaspaces.lrmi.nio.ChannelEntry.unmarshall(ChannelEntry.java:125)
        at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:142)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
        at com.j_spaces.core.introspect.PojoIntrospector.init(PojoIntrospector.java:351)
        at com.j_spaces.core.introspect.PojoIntrospector.readExternal(PojoIntrospector.java:344)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.j_spaces.core.AbstractTypeDescriptor.readExternalV1(AbstractTypeDescriptor.java:382)
        at com.j_spaces.core.AbstractTypeDescriptor.readExternal(AbstractTypeDescriptor.java:366)
        at com.j_spaces.core.client.TypeTableEntry.readExternalV1(TypeTableEntry.java:116)
        at com.j_spaces.core.client.TypeTableEntry.readExternal(TypeTableEntry.java:102)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.j_spaces.core.EntryPacket.readExternal(EntryPacket.java:645)
        ... 17 more

Caused by:

java.lang.NullPointerException
        at com.j_spaces.core.introspect.PojoIntrospector.init(PojoIntrospector.java:351)
        at com.j_spaces.core.introspect.PojoIntrospector.readExternal(PojoIntrospector.java:344)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java ...
(more)

asked 2009-01-23 06:36:05 -0500

gridify's avatar

updated 2013-08-08 09:52:00 -0500

jaissefsfex's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Are you sure ProductFeed and all its fields are serializable?

Edited by: Shay Hassidim on Jan 23, 2009 8:20 AM

answered 2009-01-23 06:43:19 -0500

shay hassidim's avatar
edit flag offensive delete link more

Comments

Thanks, I thinks that's it.

gridify's avatar gridify  ( 2009-01-23 07:23:50 -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: 2009-01-23 06:36:05 -0500

Seen: 90 times

Last updated: Jan 23 '09