Issue #1396: Exception occurs on Linux during commit

Type: Bug ReoprtVersion: 2.4.0Priority: NormalStatus: ClosedReplies: 3
#1

I wrote and tested my code on Windows 7 in a tomcat environment. When deployed on Linux (under tomcat) I get the following exception during a call to commit.

Code:

pm.currentTransaction().begin();
pm.makePersistent(p);
pm.currentTransaction().commit();

 

Stacktrace:

[ObjectDB 2.4.0] Unexpected exception (Error 990)
  Generated by OpenJDK 64-Bit Server VM 1.7.0_55 (on Linux 3.13.0-24-generic).
Please report this error on http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: java.lang.InterruptedException: null
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.Vb(WSM.java:171)
        at com.objectdb.o.OBM.bK(OBM.java:911)
        at com.objectdb.o.OBM.bI(OBM.java:816)
        at com.objectdb.o.OBM.bG(OBM.java:722)
        at com.objectdb.jpa.EMImpl.commit(EMImpl.java:276)
        at com.golocal.places.PlacesProvider.addPlaceToSearch(PlacesProvider.java:182)
        at com.golocal.places.PlacesProvider.nextBusiness(PlacesProvider.java:139)
        at com.golocal.MiningTask.run(MiningTask.java:65)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
#2

A bug that caused a similar exception was fixed in version 2.5.2.

You are using an old version, 2.4.0, please try the last version.

ObjectDB Support
#3

Yes, I've just seen that. Will give it a try. Thanks

#4

This has resolved the issue. Thanks for the speedy response.

Reply