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

Ask Your Question

classcastexception when upgrading to 6.6.1

hi, i got the new 6.6.1 version and after cleaning and building the project from scratch i got ClassCaseException when making readMultiple().

do you have any idea why? Avi.

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

asked 2008-11-13 07:38:14 -0600

sabag2 gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted


Can u post the full test case?
Does it work woth classes that does not extends other classes?

Does it work with:
Node result = getGigaSpaceLobby().readMultiple(query, null, Integer.MAX_VALUE);


Can u tell what is the class type you get in return that cause this ClassCastException ?


answered 2008-11-16 09:08:53 -0600

shay hassidim gravatar image
edit flag offensive delete link more

When you do read multiple r u reading the objects only from space or from space and DB ???

If possible can you provide more info on what senario you got this exception.

Thanks venkat

answered 2008-11-13 13:32:01 -0600

venkatg gravatar image
edit flag offensive delete link more


its just a multiple read from space:

List<Node> nodes = null;

SQLQuery<Node> query = new SQLQuery<Node>(Node.class, "type=" + type);
Node result = getGigaSpaceLobby().readMultiple(query, 0, Integer.MAX_VALUE);

in 6.5.1 it worked but when upgraded to 6.6.1 i get ClassCastException :(

sabag2 gravatar imagesabag2 ( 2008-11-16 02:33:03 -0600 )edit

1) you can't put null instead of the 0 because it won't compile.
2) it returns Object0 with no data // according to debug.

when changing back to gigaspace 6.5.1 it works like a charm.

sabag2 gravatar imagesabag2 ( 2008-11-16 09:24:05 -0600 )edit

Are you using IJSpace or GigaSpace?

shay hassidim gravatar imageshay hassidim ( 2008-11-16 09:29:16 -0600 )edit


sabag2 gravatar imagesabag2 ( 2008-11-16 09:43:25 -0600 )edit

by the way -
Object o = getGigaSpaceLobby().read(new SQLQuery<Node>(Node.class, ""));

is working,
only the readMultiple doesn't work :(

sabag2 gravatar imagesabag2 ( 2008-11-16 10:06: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-11-13 07:38:14 -0600

Seen: 29 times

Last updated: Nov 13 '08