Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] NullPointerException(CDO NPE during concurrent locking attempts (I think))
[CDO] NullPointerException [message #533177] Wed, 12 May 2010 13:48 Go to next message
Greg Sutton is currently offline Greg SuttonFriend
Messages: 2
Registered: July 2009
Junior Member
I get this error when multiple concurrent jobs attempt to lock the same object. The code completes successfully and there are no issues functionally apart from these messages.

Does anyone have any suggestions for how I might be able to fix this or even where to start looking?

[ERROR] NullPointerException
java.lang.NullPointerException
        at org.eclipse.emf.cdo.internal.common.protocol.CDODataInputImpl.readCDOBranch(CDODataInputImpl.java:170)
        at org.eclipse.emf.cdo.internal.common.protocol.CDODataInputImpl.readCDOCommitInfo(CDODataInputImpl.java:240)
        at org.eclipse.emf.cdo.internal.net4j.protocol.CommitNotificationIndication.indicating(CommitNotificationIndication.java:36)
        at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientIndication.indicating(CDOClientIndication.java:56)
        at org.eclipse.net4j.signal.Indication.doExtendedInput(Indication.java:55)
        at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
        at org.eclipse.net4j.signal.Indication.execute(Indication.java:49)
        at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
        at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Re: [CDO] NullPointerException [message #533304 is a reply to message #533177] Thu, 13 May 2010 06:43 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Greg,

That's weird as it suggests that your local session has no branch
manager associated or the used CDODataInputImpl does not return it
properly. At least if your stack trace still matches CVS HEAD. Can you
try to set a breakpoint in CDODataInputImpl.readCDOBranch() and find out
what's going on there?

Note that a CommitNotificationIndication is sent asynchronously by the
server, so it can happen that the client session is in the process of
being deactivated at the same time. In this case all kinds of exceptions
can appear in the log that can be safely ignored. Please try to find out
if this is the situation in which you see this exception.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 12.05.2010 15:48, schrieb Greg Sutton:
> I get this error when multiple concurrent jobs attempt to lock the
> same object. The code completes successfully and there are no issues
> functionally apart from these messages.
>
> Does anyone have any suggestions for how I might be able to fix this
> or even where to start looking?
>
>
> [ERROR] NullPointerException
> java.lang.NullPointerException
> at
> org.eclipse.emf.cdo.internal.common.protocol.CDODataInputImp l.readCDOBranch(CDODataInputImpl.java:170)
>
> at
> org.eclipse.emf.cdo.internal.common.protocol.CDODataInputImp l.readCDOCommitInfo(CDODataInputImpl.java:240)
>
> at
> org.eclipse.emf.cdo.internal.net4j.protocol.CommitNotificati onIndication.indicating(CommitNotificationIndication.java:36 )
>
> at
> org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientIndicat ion.indicating(CDOClientIndication.java:56)
>
> at
> org.eclipse.net4j.signal.Indication.doExtendedInput(Indicati on.java:55)
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
> at org.eclipse.net4j.signal.Indication.execute(Indication.java: 49)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:619)
>


Re: [CDO] NullPointerException [message #533409 is a reply to message #533304] Thu, 13 May 2010 17:55 Go to previous messageGo to next message
Greg Sutton is currently offline Greg SuttonFriend
Messages: 2
Registered: July 2009
Junior Member

Eike,

ok, that makes sense now. It appears this only happens when my processes are closing down.

I'd really rather not have ignored exceptions, but I can filter them out if I know they are expected.

Thanks for the quick response.

Regards, Greg.
Re: [CDO] NullPointerException [message #533411 is a reply to message #533409] Thu, 13 May 2010 18:08 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Greg,

When we have time we can try to reduce the number of log entries for
unimportant exceptions like this one. Please file an enhancement request.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 13.05.2010 19:55, schrieb Greg Sutton:
>
> Eike,
>
> ok, that makes sense now. It appears this only happens when my
> processes are closing down.
>
> I'd really rather not have ignored exceptions, but I can filter them
> out if I know they are expected.
>
> Thanks for the quick response.
>
> Regards, Greg.


Previous Topic:[CDO] New error "No meta ID mapped ..."
Next Topic:eClass.getFeatureCount()
Goto Forum:
  


Current Time: Fri Apr 26 14:25:10 GMT 2024

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

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

Back to the top