Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » NPE on transaction commit
NPE on transaction commit [message #430636] Mon, 01 June 2009 06:09 Go to next message
Rimvydas is currently offline RimvydasFriend
Messages: 47
Registered: July 2009
Member
Hello,

I have migrated my code from CDO version 2.0.0M3 to CDO version
2.0.0M7a. On 2.0.0M3 my test was working fine but on CDO version
2.0.0M7a my test fails. On transaction commit I receive NPE from server:

[ERROR] NullPointerException
java.lang.NullPointerException
at
org.eclipse.emf.cdo.internal.server.TransactionCommitContext Impl$TransactionPackageRegistry.putPackageUnit(TransactionCo mmitContextImpl.java:687)
at
org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicatingCommit(CommitTransactionIndication.ja va:268)
at
org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:197 )
at
org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:140 )
at
org.eclipse.net4j.signal.IndicationWithMonitoring.indicating (IndicationWithMonitoring.java:84)
at
org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn put(IndicationWithResponse.java:90)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:317)


My test is similar to StandaloneContainerExample provided by CDO. I do
register my model's package to package registry. The package has several
subpackages but I register only root package (it was OK on 2.0.0M3).
It seems that these subpackages causes the problem because test with
model which package does not have subpackages works fine.

Any ideas how to solve the problem ?

Thanks in advance.

--
Rimvydas
Re: NPE on transaction commit [message #430637 is a reply to message #430636] Mon, 01 June 2009 06:37 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Rimvydas,

Between M3 and M7 there was a huge refactoring related with package
management (see
http://thegordian.blogspot.com/2009/03/emf-on-server.html ), hence it
could be possible that there's still a minor problem. Please do the
following:

1. Check that the problem persists with the latest release candidate
(RC2, tomorrow is RC3) or the HEAD sources.
2. File a bugzilla, paste up-to-date stack traces and ideally attach the
model you used, so that we can reproduce the problem.

Cheers
/Eike

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



Rimvydas Vaidelis schrieb:
> Hello,
>
> I have migrated my code from CDO version 2.0.0M3 to CDO version
> 2.0.0M7a. On 2.0.0M3 my test was working fine but on CDO version
> 2.0.0M7a my test fails. On transaction commit I receive NPE from server:
>
> [ERROR] NullPointerException
> java.lang.NullPointerException
> at
> org.eclipse.emf.cdo.internal.server.TransactionCommitContext Impl$TransactionPackageRegistry.putPackageUnit(TransactionCo mmitContextImpl.java:687)
>
> at
> org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicatingCommit(CommitTransactionIndication.ja va:268)
>
> at
> org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:197 )
>
> at
> org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:140 )
>
> at
> org.eclipse.net4j.signal.IndicationWithMonitoring.indicating (IndicationWithMonitoring.java:84)
>
> at
> org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn put(IndicationWithResponse.java:90)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:317)
>
>
> My test is similar to StandaloneContainerExample provided by CDO. I do
> register my model's package to package registry. The package has
> several subpackages but I register only root package (it was OK on
> 2.0.0M3). It seems that these subpackages causes the problem because
> test with model which package does not have subpackages works fine.
>
> Any ideas how to solve the problem ?
>
> Thanks in advance.
>
> --
> Rimvydas


Previous Topic:Object simple validation against ecore model
Next Topic:How to turn element name into lowercase using eAnnotations ?
Goto Forum:
  


Current Time: Thu Apr 18 05:32:22 GMT 2024

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

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

Back to the top