Skip to main content



      Home
Home » Modeling » EMF » [CDO] NPE from CDOResourceFolder conflict?
[CDO] NPE from CDOResourceFolder conflict? [message #1060233] Thu, 23 May 2013 11:58 Go to next message
Eclipse UserFriend
Hello again!

I was in desperate need of some conflict resolving mechanisms, so I updated to the RC's of EMF and CDO. Before I start, thanks for all of the updates in that area! Smile

I'm running into a NPE using the CDOMergingConflictResolver. The thing that confuses me about this situation is that I'm not modifying the same objects on either client. The situation that causes this is as follows:

1. Client 1 modifies an object a.
2. Client 2 modifies an object b.
3. Client 1 commits.
4. Client 2 receives the NPE.
5. Client 2 upon trying to commit cannot due to a conflict on the "CDOResourceFolder".

Am I doing something incorrectly? I have never seen reference to a CDOResourceFolder object before. This is the stacktrace, line 139 is "remoteDelta.apply(newCleanRevision);".

java.lang.NullPointerException
	at org.eclipse.emf.spi.cdo.CDOMergingConflictResolver.resolveConflicts(CDOMergingConflictResolver.java:139)
	at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.handleConflicts(CDOTransactionImpl.java:743)
	at org.eclipse.emf.internal.cdo.view.CDOViewImpl.doInvalidate(CDOViewImpl.java:883)
	at org.eclipse.emf.internal.cdo.view.CDOViewImpl$InvalidationRunnable.run(CDOViewImpl.java:1661)
	at org.eclipse.net4j.util.concurrent.QueueRunner.work(QueueRunner.java:26)
	at org.eclipse.net4j.util.concurrent.QueueRunner.work(QueueRunner.java:1)
	at org.eclipse.net4j.util.concurrent.QueueWorker.doWork(QueueWorker.java:88)
	at org.eclipse.net4j.util.concurrent.QueueWorker.work(QueueWorker.java:79)
	at org.eclipse.net4j.util.concurrent.Worker$WorkerThread.run(Worker.java:206)


Thanks in advance!
Re: [CDO] NPE from CDOResourceFolder conflict? [message #1060479 is a reply to message #1060233] Sat, 25 May 2013 02:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jack,

I'm still working on the CDOMergingConflictResolver because it's not fully implemented, yet. I know it's late in the
cycle but please wait until all the related bugzillas are resolved and then try again. If exception do still occur then,
please submit a bugzilla, so that I can handle it quickly.

Cheers
/Eike

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


Am 23.05.2013 17:58, schrieb Jack Lechner:
> Hello again!
>
> I was in desperate need of some conflict resolving mechanisms, so I updated to the RC's of EMF and CDO. Before I
> start, thanks for all of the updates in that area! :)
>
> I'm running into a NPE using the CDOMergingConflictResolver. The thing that confuses me about this situation is that
> I'm not modifying the same objects on either client. The situation that causes this is as follows:
>
> 1. Client 1 modifies an object a.
> 2. Client 2 modifies an object b.
> 3. Client 1 commits.
> 4. Client 2 receives the NPE.
> 5. Client 2 upon trying to commit cannot due to a conflict on the "CDOResourceFolder".
>
> Am I doing something incorrectly? I have never seen reference to a CDOResourceFolder object before. This is the
> stacktrace, line 139 is "remoteDelta.apply(newCleanRevision);".
>
> java.lang.NullPointerException
> at org.eclipse.emf.spi.cdo.CDOMergingConflictResolver.resolveConflicts(CDOMergingConflictResolver.java:139)
> at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.handleConflicts(CDOTransactionImpl.java:743)
> at org.eclipse.emf.internal.cdo.view.CDOViewImpl.doInvalidate(CDOViewImpl.java:883)
> at org.eclipse.emf.internal.cdo.view.CDOViewImpl$InvalidationRunnable.run(CDOViewImpl.java:1661)
> at org.eclipse.net4j.util.concurrent.QueueRunner.work(QueueRunner.java:26)
> at org.eclipse.net4j.util.concurrent.QueueRunner.work(QueueRunner.java:1)
> at org.eclipse.net4j.util.concurrent.QueueWorker.doWork(QueueWorker.java:88)
> at org.eclipse.net4j.util.concurrent.QueueWorker.work(QueueWorker.java:79)
> at org.eclipse.net4j.util.concurrent.Worker$WorkerThread.run(Worker.java:206)
>
> Thanks in advance!
Re: [CDO] NPE from CDOResourceFolder conflict? [message #1062085 is a reply to message #1060233] Wed, 05 June 2013 15:44 Go to previous message
Eclipse UserFriend
I found that this was actually not the conflict resolver's problem. It ended up that another part of my code was accessing a resource manager.

Thank you for your help though!
Previous Topic:Reuse of models in a hierarchical way
Next Topic:How to generate both RCP and GWT from the same code base?
Goto Forum:
  


Current Time: Wed Jul 30 16:01:30 EDT 2025

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

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

Back to the top