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

Ask Your Question
0

Exception with Calendar class

GS 6.5, jdk 1.5: SEVERE [com.gigaspaces.query]: java.util.GregorianCalendar java.lang.ClassCastException: java.util.GregorianCalendar at com.j_spaces.obf.pw.a(SourceFile:3377) at com.j_spaces.obf.pw.b(SourceFile:3352) at com.j_spaces.obf.pw.a(SourceFile:3168) at com.j_spaces.obf.pw.a(SourceFile:3211) at com.j_spaces.obf.pw.a(SourceFile:5360) at com.j_spaces.obf.pw.b(SourceFile:5276) at com.j_spaces.obf.pw.a(SourceFile:4800) at com.j_spaces.obf.pw.a(SourceFile:4582) at com.j_spaces.obf.pw.a(SourceFile:4125) at com.j_spaces.obf.pw.readMultiple(SourceFile:1888) at com.j_spaces.core.JSpaceImpl.readMultiple(SourceFile:1528) at com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.readMultiple(SourceFile:208) at com.j_spaces.core.cluster.JSpaceClusteredProxy.internalReadMultiple(SourceFile:2248) at com.j_spaces.core.cluster.JSpaceClusteredProxy.readMultipleBasic(SourceFile:2201) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(SourceFile:75) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:32) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:25) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:583) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:551) at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:282) at com.j_spaces.jdbc.parser.ExpNode.accept(SourceFile:195) at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:244) at com.j_spaces.jdbc.parser.AndNode.accept(SourceFile:74) at com.j_spaces.jdbc.SelectQuery.a(SourceFile:382) at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SourceFile:192) at com.j_spaces.core.client.AbstractDirectSpaceProxy.executeSqlStatment(SourceFile:1136) at com.j_spaces.core.client.AbstractDirectSpaceProxy.executeSQLQuery(SourceFile:1214) at com.j_spaces.core.client.AbstractDirectSpaceProxy.readMultSQLTemplate(SourceFile:1482) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(SourceFile:47) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:32) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:25) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:583) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:566)

Failed to execute readMultiple: java.util.GregorianCalendar at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:294) at com.j_spaces.jdbc.parser.ExpNode.accept(SourceFile:195) at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:244) at com.j_spaces.jdbc.parser.AndNode.accept(SourceFile:74) at com.j_spaces.jdbc.SelectQuery.a(SourceFile:382) at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SourceFile:192) ... 12 more

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

asked 2008-09-19 17:23:48 -0500

wasefmasood 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
0

Can u post the POJO and the query code?

Shay

answered 2008-09-19 17:41:49 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

I fixed that exception by chaiging gs.xml file <reference> attribute. However, I now get exception below when querying the pojo. Any suggestions, the error message doesn't exactly suggest where the problems could be:

StringBuffer queryClause = new StringBuffer(); queryClause.append("nodePath like ? "); queryClause.append(" AND (visibility=? OR visibility=?) "); SQLQuery<node> query = new SQLQuery<node>( "Node", queryClause.toString(), nodePath+"%", true, false); Object[] objects = ijSpace.readMultiple(query, tx, Integer.MAX_VALUE);

SEVERE [com.gigaspaces.core.common]: internal error java.lang.ArrayIndexOutOfBoundsException: 5 at com.j_spaces.obf.pw.b(SourceFile:3348) at com.j_spaces.obf.pw.a(SourceFile:3168) at com.j_spaces.obf.do.a(SourceFile:549) at com.j_spaces.obf.do.a(SourceFile:545) at com.j_spaces.obf.do.j(SourceFile:668) at com.j_spaces.obf.do.w(SourceFile:443) at com.j_spaces.obf.do.H(SourceFile:210) at com.j_spaces.obf.do.next(SourceFile:24) at com.j_spaces.obf.pw.a(SourceFile:4117) at com.j_spaces.obf.pw.readMultiple(SourceFile:1888) at com.j_spaces.core.JSpaceImpl.readMultiple(SourceFile:1528) at com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.readMultiple(SourceFile:208) at com.j_spaces.core.cluster.JSpaceClusteredProxy.internalReadMultiple(SourceFile:2248) at com.j_spaces.core.cluster.JSpaceClusteredProxy.readMultipleBasic(SourceFile:2201) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(SourceFile:75) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:32) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:25) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:583) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:551) at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:282) at com.j_spaces.jdbc.parser.ExpNode.accept(SourceFile:195) at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:244) at com.j_spaces.jdbc.parser.AndNode.accept(SourceFile:74) at com.j_spaces.jdbc.SelectQuery.a(SourceFile:382) at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SourceFile:192) at com.j_spaces.core.client.AbstractDirectSpaceProxy.executeSqlStatment(SourceFile:1136) at com.j_spaces.core.client.AbstractDirectSpaceProxy.executeSQLQuery(SourceFile:1214) at com.j_spaces.core.client.AbstractDirectSpaceProxy.readMultSQLTemplate(SourceFile:1482) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(SourceFile:47) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:32) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:25) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:583) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:566)

Sep 20, 2008 12:01:47 AM SEVERE [com.gigaspaces.query]: 5 java.lang.ArrayIndexOutOfBoundsException: 5 at com.j_spaces.obf.pw.b(SourceFile:3348) at com.j_spaces.obf.pw.a(SourceFile:3168) at com.j_spaces.obf.do.a(SourceFile:549) at com.j_spaces.obf.do.a(SourceFile:545) at com.j_spaces.obf.do.j(SourceFile:668) at com.j_spaces.obf.do.w(SourceFile:443) at com.j_spaces.obf.do.H(SourceFile:210) at com.j_spaces.obf.do.next(SourceFile:24) at com.j_spaces.obf.pw.a(SourceFile:4117) at com.j_spaces.obf.pw.readMultiple(SourceFile:1888) at com.j_spaces.core.JSpaceImpl.readMultiple(SourceFile:1528) at com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.readMultiple(SourceFile:208) at com.j_spaces.core.cluster.JSpaceClusteredProxy.internalReadMultiple(SourceFile:2248) at com.j_spaces.core.cluster.JSpaceClusteredProxy.readMultipleBasic(SourceFile ...(more)

wasefmasood gravatar imagewasefmasood ( 2008-09-19 23:18:52 -0500 )edit

Don't you have a package name for the Node class?

Can you run the following query via the UI: select * from Node where nodePath like 'A%' AND (visibility='true' OR visibility='false')

Shay

shay hassidim gravatar imageshay hassidim ( 2008-09-21 01:53:07 -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: 2008-09-19 17:23:48 -0500

Seen: 14 times

Last updated: Sep 19 '08