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

Ask Your Question

exception in GS 7

org.openspaces.core.ObjectConversionException: net.jini.core.entry.UnusableEntryException; nested exception is com.gigaspaces.internal.metadata.converter.ConversionException: net.jini.core.entry.UnusableEntryException at org.openspaces.core.exception.DefaultExceptionTranslator.internalTranslate(DefaultExceptionTranslator.java:118) at org.openspaces.core.exception.DefaultExceptionTranslator.translate(DefaultExceptionTranslator.java:48) at org.openspaces.core.DefaultGigaSpace.write(DefaultGigaSpace.java:620) at org.openspaces.core.DefaultGigaSpace.write(DefaultGigaSpace.java:612) ...from my classes... Caused by: com.gigaspaces.internal.metadata.converter.ConversionException: net.jini.core.entry.UnusableEntryException at com.gigaspaces.internal.transport.ExternalizableEntryPacket.getFieldValues(ExternalizableEntryPacket.java:164) at com.gigaspaces.internal.server.storage.EntryHolderFactory.createEntryData(EntryHolderFactory.java:94) at com.gigaspaces.internal.server.storage.EntryHolderFactory.createEntryHolder(EntryHolderFactory.java:53) at com.gigaspaces.internal.server.storage.EntryHolderFactory.createEntryHolder(EntryHolderFactory.java:46) at com.gigaspaces.internal.server.space.SpaceEngine.write(SpaceEngine.java:983) at com.gigaspaces.internal.server.space.SpaceEngine.unsafeWrite(SpaceEngine.java:919) at com.gigaspaces.internal.server.space.SpaceEngine.write(SpaceEngine.java:902) at com.gigaspaces.internal.server.space.SpaceImpl.write(SpaceImpl.java:476) 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:585) at com.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:360) at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:402) at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:490) at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:153) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: net.jini.core.entry.UnusableEntryException at com.gigaspaces.internal.metadata.PojoIntrospector.getValues(PojoIntrospector.java:255) at com.gigaspaces.internal.transport.ExternalizableEntryPacket.getFieldValues(ExternalizableEntryPacket.java:155) ... 21 more Caused by: java.lang.ClassCastException: my.package.MyClass at my.package.MyClassGigaspacesProperties.getValues(Unknown Source) at com.gigaspaces.internal.metadata.PojoIntrospector.getValues(PojoIntrospector.java:239) ... 22 more

MyClassGigaspacesProperties is not my class actually, it was generated by GS I think I never had this kind of problem in GS6.6. Most strange is that it runs from about a month now in GS7 (restarted with crontab every midnight) and no changes to MyClass were made, but the exception just appeared today. Any idea why? Thanks, Lucian

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3303]{quote}

asked 2009-11-06 02:35:04 -0500

lukeh gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Can you provide more info how do you deploy? Do you place all your space classes and related dependences within the PU jar lib folder?
How your PU jar looks like?
Are you sure you have getter and setter for all your space classes fields?

answered 2009-11-07 08:50:06 -0500

shay hassidim gravatar image
edit flag offensive delete link more


Hi Shay, Looking over my object I noticed that I did the following in a constructor:

public MyObject(MyData data) { this.data = data; this.spaceId = data.getSpaceId(); }

(MyObject is a wrapper done in order to have FIFO between subclasses of MyData, we discussed this approach a while ago in another thread)

This is the only thing that I did a little odd. Can this be the cause? Removing this constructor fixed the issue, or at last it worked after restart, as I sayed before it worked with this for days before throwing that exception. I remember when switching to GS7 I had some classes in which I did such thing in setters (with no null check, cause every call was under my control). It worked without problems in GS6.6 but it throw an error in GS7. It might have been the same error but I don't remember, I quickly fixed the setters but I forgot this constructor.

Thanks, Lucian

lukeh gravatar imagelukeh ( 2009-11-09 03:05:45 -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


Asked: 2009-11-06 02:35:04 -0500

Seen: 62 times

Last updated: Nov 07 '09