118 words

Getting exception while executing the Query

#1
2013-01-17 11:28

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.

 

 

 

binitbhaskar
binitbhaskar's picture
Joined on 2011-08-02
User Post #40
#2
2013-01-17 11:36

Object DB Bundle-Version: 2.4.3.b06

binitbhaskar
binitbhaskar's picture
Joined on 2011-08-02
User Post #41
#3
2013-01-17 13:44

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,399

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel