Getting exception while executing the Query

#1

I have facing a problem when i am executing the query first time, Please find the stack trace below

java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1301)
at java.util.concurrent.Semaphore.acquire(Semaphore.java:317)
at com.objectdb.o.WSM.U5(WSM.java:110)
at com.objectdb.o.QRR.g(QRR.java:240)
at com.objectdb.o.QRR.b(QRR.java:151)
at com.objectdb.jdo.JdoQuery.execute0(JdoQuery.java:811)
at com.objectdb.jdo.JdoQuery.execute(JdoQuery.java:720)

I am using the following code to execute the same

Query query = pm.newQuery(logQuery.getQueryClass(), "");

query.setOrdering(logQuery.getOrderString());

Collection collection = (Collection)query.execute();

query.execute() is throwing the exception Any idea what might cause this exception to be thrown.

We have release so please try to reply asap.

 

 

 

#2

Object DB Bundle-Version: 2.4.3.b06

#3

The cause of this exception is unclear.

Maybe you should try version 2.4.6, since many bugs have been fixed since build 2.4.3_06.

You can also try changing the value of max-threads in the configuration to 0, in order to avoid using semaphores (since the exception is related to using semaphores).

ObjectDB Support

Reply