Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO 4.1] Get an exception when try to commit an EObject created from uml.ecore to CDO Server(Get an exception when try to commit an EObject created from uml.ecore(Eclipse UML ecore) to CDO Server)
[CDO 4.1] Get an exception when try to commit an EObject created from uml.ecore to CDO Server [message #893418] Wed, 04 July 2012 04:27 Go to next message
Apirom Na Nakorn is currently offline Apirom Na NakornFriend
Messages: 14
Registered: July 2012
Junior Member
Hi,

When I tried to commit EObject which was created from uml.ecore (Eclipse UML ecore), I got the following exception:

org.eclipse.emf.cdo.util.CommitException: java.lang.IllegalStateException: Package 'http://www.eclipse.org/uml2/2.1.0/UML' contains unresolved proxy 'platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EModelElement'
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1148)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1154)
at my.test.model.uml.UMLDataGenerator.loadData_1(UMLDataGenerator.java:112)
at my.test.model.uml.UMLDataGenerator.main(UMLDataGenerator.java:29)
Caused by: java.lang.IllegalStateException: Package 'http://www.eclipse.org/uml2/2.1.0/UML' contains unresolved proxy 'platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EModelElement'
at org.eclipse.emf.cdo.common.model.CDOModelUtil.checkCrossResourceURIs(CDOModelUtil.java:553)
at org.eclipse.emf.cdo.common.model.CDOModelUtil.writePackage(CDOModelUtil.java:528)
at org.eclipse.emf.cdo.internal.common.model.CDOPackageUnitImpl.write(CDOPackageUnitImpl.java:281)
at org.eclipse.emf.cdo.internal.common.protocol.CDODataOutputImpl.writeCDOPackageUnit(CDODataOutputImpl.java:89)
at org.eclipse.emf.cdo.internal.net4j.protocol.CommitTransactionRequest.requestingCommit(CommitTransactionRequest.java:150)
at org.eclipse.emf.cdo.internal.net4j.protocol.CommitTransactionRequest.requesting(CommitTransactionRequest.java:120)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequestWithMonitoring.requesting(CDOClientRequestWithMonitoring.java:91)
at org.eclipse.net4j.signal.RequestWithMonitoring.requesting(RequestWithMonitoring.java:163)
at org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedOutput(RequestWithConfirmation.java:117)
at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:296)
at org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(RequestWithConfirmation.java:102)
at org.eclipse.net4j.signal.RequestWithMonitoring.doExecute(RequestWithMonitoring.java:233)
at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.java:51)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:251)
at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:433)
at org.eclipse.net4j.signal.RequestWithConfirmation.doSend(RequestWithConfirmation.java:87)
at org.eclipse.net4j.signal.RequestWithConfirmation.send(RequestWithConfirmation.java:73)
at org.eclipse.net4j.signal.RequestWithMonitoring.send(RequestWithMonitoring.java:108)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:512)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.commitTransaction(CDOClientProtocol.java:387)
at org.eclipse.emf.internal.cdo.transaction.CDOSingleTransactionStrategyImpl.commit(CDOSingleTransactionStrategyImpl.java:72)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1134)
... 3 more

How to solve this problem ?

Thanks in advance.

Neung

[Updated on: Wed, 04 July 2012 04:48]

Report message to a moderator

Re: [CDO] Get an exception when try to commit an EObject created from uml.ecore to CDO Server [message #893421 is a reply to message #893418] Wed, 04 July 2012 04:58 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Am 04.07.2012 06:27, schrieb Apirom Na Nakorn:
> Hi,
>
> When I tried to commit EObject which was created from uml.ecore (Eclipse UML ecore), I got the following exception:
>
> org.eclipse.emf.cdo.util.CommitException: java.lang.IllegalStateException: Package
> 'http://www.eclipse.org/uml2/2.1.0/UML' contains unresolved proxy
> 'platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EModelElement'
> at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1148)
> at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1154)
> at my.test.model.uml.UMLDataGenerator.loadData_1(UMLDataGenerator.java:112)
> at my.test.model.uml.UMLDataGenerator.main(UMLDataGenerator.java:29)
I assume you're running a stand-alone Java application?
I doubt, but I'm not sure, that it can resolve platform:/plugin/ URIs out of the box. Ed?

Cheers
/Eike

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



> Caused by: java.lang.IllegalStateException: Package 'http://www.eclipse.org/uml2/2.1.0/UML' contains unresolved proxy
> 'platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EModelElement'
> at org.eclipse.emf.cdo.common.model.CDOModelUtil.checkCrossResourceURIs(CDOModelUtil.java:553)
> at org.eclipse.emf.cdo.common.model.CDOModelUtil.writePackage(CDOModelUtil.java:528)
> at org.eclipse.emf.cdo.internal.common.model.CDOPackageUnitImpl.write(CDOPackageUnitImpl.java:281)
> at org.eclipse.emf.cdo.internal.common.protocol.CDODataOutputImpl.writeCDOPackageUnit(CDODataOutputImpl.java:89)
> at
> org.eclipse.emf.cdo.internal.net4j.protocol.CommitTransactionRequest.requestingCommit(CommitTransactionRequest.java:150)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CommitTransactionRequest.requesting(CommitTransactionRequest.java:120)
> at
> org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequestWithMonitoring.requesting(CDOClientRequestWithMonitoring.java:91)
> at org.eclipse.net4j.signal.RequestWithMonitoring.requesting(RequestWithMonitoring.java:163)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedOutput(RequestWithConfirmation.java:117)
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:296)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(RequestWithConfirmation.java:102)
> at org.eclipse.net4j.signal.RequestWithMonitoring.doExecute(RequestWithMonitoring.java:233)
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.java:51)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:251)
> at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:433)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doSend(RequestWithConfirmation.java:87)
> at org.eclipse.net4j.signal.RequestWithConfirmation.send(RequestWithConfirmation.java:73)
> at org.eclipse.net4j.signal.RequestWithMonitoring.send(RequestWithMonitoring.java:108)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:512)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.commitTransaction(CDOClientProtocol.java:387)
> at
> org.eclipse.emf.internal.cdo.transaction.CDOSingleTransactionStrategyImpl.commit(CDOSingleTransactionStrategyImpl.java:72)
> at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1134)
> ... 3 more
>
> How to solve this problem ?
>
> Thanks in advance.
>
> Neung
>
>


Re: [CDO] Get an exception when try to commit an EObject created from uml.ecore to CDO Server [message #893424 is a reply to message #893421] Wed, 04 July 2012 06:30 Go to previous message
Apirom Na Nakorn is currently offline Apirom Na NakornFriend
Messages: 14
Registered: July 2012
Junior Member
Thank you.

I change my java program to OSGi and run again successfully.

Neung Smile
Previous Topic:[CDO/Hibernate] Auditing/Revisions support in hibernate store
Next Topic:[CDO] Migration
Goto Forum:
  


Current Time: Wed Aug 21 05:15:14 GMT 2019

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

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

Back to the top