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

Ask Your Question

Failed to convert entry to pojo exception

Hello all, seem to be getting an exception below...

My setup is as follows. I have two spaces, one default and one persistent with an external hibernate datasource. The webapp writes into the default space and then a separate worker gets the entry out of the space. It then, based on info contained in the entry queries the persistent space for an object and attaches it to the original entry, which is then written back into the event space. So the object which is originally received from the persistent space is now attached to the entry in the default space. The error below is generated. Any ideas?

SEVERE [com.gigaspaces.pojo]: Failed to convert the Entry to POJO :com.bazumedia.race.domain.Person due to : java.lang.ArrayIndexOutOfBoundsException: 0 at com.gigaspaces.converter.pojo.Pojo2ExternalEntryConverter.toPojoFromIGSEntry(SourceFile:726) at com.j_spaces.obf.z.toObject(SourceFile:59) at com.j_spaces.sadapter.datasource.EntryAdapter.toObject(SourceFile:99) at com.j_spaces.sadapter.datasource.DataAdapter.makeEntriesIter(SourceFile:861) at com.j_spaces.obf.cj.E(SourceFile:242) at com.j_spaces.obf.cj.next(SourceFile:27) at com.j_spaces.obf.ko.a(SourceFile:4157) at com.j_spaces.obf.hj.a(SourceFile:667) at com.j_spaces.obf.ko.b(SourceFile:1528) at com.j_spaces.obf.ko.a(SourceFile:1408) at com.j_spaces.core.JSpaceImpl.read(SourceFile:493) 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.j_spaces.obf.iw.a(SourceFile:333) at com.j_spaces.obf.fh.b(SourceFile:292) at com.j_spaces.obf.fh.a(SourceFile:358) at com.j_spaces.obf.jk.dispatch(SourceFile:118) at com.j_spaces.obf.ca.run(SourceFile:62) 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:613)

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

asked 2008-03-11 20:45:48 -0600

isterin gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Do you have a mapping file or fields mapped to com.bazumedia.race.domain.Person ? Somehow the POJO converter can?t find space fields declared for this class.

How exactly you ?attach? these 2 entries?

I suggest you to use the enhanced HibernateDataSource. Drop me an email for the location of this implementation.


answered 2008-03-11 21:01:01 -0600

shay hassidim gravatar image
edit flag offensive delete link more


In case you implement the Entry interface please note the annotations/gs.xml are ignored! GigaSpaces treat as JavaSpaces Entry.

Annotations/gs.xml are used only with classes that do not implement the Entry interface.

Space class inner classes should be serilized and part of the space classpath. If you use open spaces this means these classes should be part of the shared-lib pu folder.


Edited by: Shay Hassidim on Mar 12, 2008 9:53 AM

shay hassidim gravatar imageshay hassidim ( 2008-03-12 08:19:46 -0600 )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: 2008-03-11 20:45:48 -0600

Seen: 22 times

Last updated: Mar 11 '08