Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO/Net4J] InterruptedException during a lock
[CDO/Net4J] InterruptedException during a lock [message #1781522] Thu, 08 February 2018 08:14 Go to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 221
Registered: July 2009
Senior Member
Hi,

In our application based on CDO 4.4, we have sometimes an InterruptedException during the lock of an object. We have not steps to reproduce. Have you some idea of what can cause this exception to help us to find a reliable steps to reproduce and finally fix the problem?

org.eclipse.net4j.util.WrappedException: java.lang.InterruptedException
at org.eclipse.net4j.util.WrappedException.wrap(WrappedException.java:54)
at org.eclipse.net4j.buffer.BufferInputStream.ensureBuffer(BufferInputStream.java:211)
at org.eclipse.net4j.buffer.BufferInputStream.read(BufferInputStream.java:130)
at org.eclipse.net4j.signal.SignalProtocol$SignalInputStream.read(SignalProtocol.java:655)
at java.io.DataInputStream.readBoolean(Unknown Source)
at org.eclipse.net4j.util.io.ExtendedDataInput$Delegating.readBoolean(ExtendedDataInput.java:67)
at org.eclipse.emf.cdo.internal.net4j.protocol.LockObjectsRequest.confirming(LockObjectsRequest.java:79)
at org.eclipse.emf.cdo.internal.net4j.protocol.LockObjectsRequest.confirming(LockObjectsRequest.java:1)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequest.confirming(CDOClientRequest.java:97)
at org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedInput(RequestWithConfirmation.java:125)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:362)
at org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(RequestWithConfirmation.java:105)
at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.java:53)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:266)
at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:469)
at org.eclipse.net4j.signal.RequestWithConfirmation.doSend(RequestWithConfirmation.java:89)
at org.eclipse.net4j.signal.RequestWithConfirmation.send(RequestWithConfirmation.java:75)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.lockObjects2(CDOClientProtocol.java:284)
at org.eclipse.emf.internal.cdo.session.DelegatingSessionProtocol.lockObjects2(DelegatingSessionProtocol.java:705)
at org.eclipse.emf.internal.cdo.view.CDOViewImpl.lockObjects(CDOViewImpl.java:332)
at org.eclipse.emf.internal.cdo.view.CDOViewImpl.lockObjects(CDOViewImpl.java:296)
...
Caused by: java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(Unknown Source)
at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(Unknown Source)
at java.util.concurrent.LinkedBlockingQueue.poll(Unknown Source)
at org.eclipse.net4j.buffer.BufferInputStream.ensureBuffer(BufferInputStream.java:206)
... 98 more

Regards,

Laurent


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [CDO/Net4J] InterruptedException during a lock [message #1781545 is a reply to message #1781522] Thu, 08 February 2018 11:13 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6380
Registered: July 2009
Senior Member
There's nothing that immediately rings a bell. I haven't heard of such a problem before. Something seems to interrupt your threads, but I know too little about your application to guess what that could be. You could try to set a breakpoint in Thread.interrupt() and see if that gives some clue. From a CDO/Net4j point of view I can only recommend to update to a newer version and see if the problem vanishes. But I have my doubts that CDO causes the interrupt, but there are two places where that method is called:

org.eclipse.net4j.util.concurrent.Worker.doActivate()
org.eclipse.net4j.util.concurrent.Worker.doDeactivate()

You could set breakpoints there, too.
Previous Topic:Build EMF project
Next Topic:Mint tool, where can I find it?
Goto Forum:
  


Current Time: Thu May 24 14:10:38 GMT 2018

Powered by FUDForum. Page generated in 0.21830 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top