Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (no subject)
(no subject) [message #722372] Mon, 05 September 2011 14:32 Go to next message
Ronald Krijgsheld is currently offline Ronald KrijgsheldFriend
Messages: 41
Registered: November 2010
Member
Hello all,

We are occasionally seeing the exception below. I tried google but that
did give any meaningful results.

Is the reason that another client removed the same object and that the
server cannot execute the detach?

Hopefully can anyone give me some pointers.

- Ronald

java.lang.NullPointerException
at
org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.detachObjects(DBStoreAccessor.java:597)
at
org.eclipse.emf.cdo.spi.server.StoreAccessor.write(StoreAccessor.java:182)
at
org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:405)
at
org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:40)
at
org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
at
org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
at
org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:244)
at
org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:92)
at
org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
at
org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:84)
at
org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:90)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:326)
at
org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:63)
at
org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:63)
(no subject) [message #722417 is a reply to message #722372] Mon, 05 September 2011 17:16 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Ronald,

An NPE is probably an indication for a problem within CDO, although I can not immediately see what it could be. What
exact version of CDO are you using?


Am 05.09.2011 16:32, schrieb Ronald Krijgsheld:
> java.lang.NullPointerException
> at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.detachObjects(DBStoreAccessor.java:597)
In the trunk this line corresponds to:

InternalCDORevisionManager revisionManager = getStore().getRepository().getRevisionManager();

That doesn't look like a potential place for severe programming errors.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> at org.eclipse.emf.cdo.spi.server.StoreAccessor.write(StoreAccessor.java:182)
> at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:405)
> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:40)
> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
> at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:244)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:92)
> at
> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
> at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:84)
> at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:90)
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:326)
> at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:63)
> at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:63)


(no subject) [message #722930 is a reply to message #722417] Wed, 07 September 2011 08:07 Go to previous messageGo to next message
Ronald Krijgsheld is currently offline Ronald KrijgsheldFriend
Messages: 41
Registered: November 2010
Member
Hi Eike,


We are still on an older version.
the line DBStoreAccessor.detachObjects(DBStoreAccessor.java:597) in our
CDO version is:

int version = ObjectUtil.equals(branch, revision.getBranch()) ?
revision.getVersion()

This corresponds to line 608 in the trunk.

it looks like that there is no revision anymore for the CDOID.



Thanks,

Ronald
(no subject) [message #723700 is a reply to message #722930] Fri, 09 September 2011 08:16 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 07.09.2011 10:07, schrieb Ronald Krijgsheld:
>
> Hi Eike,
>
>
> We are still on an older version.
Please submit a bugzilla and mention the exact version (older is not enough).

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> the line DBStoreAccessor.detachObjects(DBStoreAccessor.java:597) in our CDO version is:
>
> int version = ObjectUtil.equals(branch, revision.getBranch()) ? revision.getVersion()
>
> This corresponds to line 608 in the trunk.
>
> it looks like that there is no revision anymore for the CDOID.
>
>
>
> Thanks,
>
> Ronald
>
>


Previous Topic:ManyToOne Lazy loading
Next Topic:conditional constaints
Goto Forum:
  


Current Time: Fri Apr 19 05:17:11 GMT 2024

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

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

Back to the top