Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Multiple resource creation bug ?
[CDO] Multiple resource creation bug ? [message #425833] Tue, 09 December 2008 16:16 Go to next message
David Bonneau is currently offline David BonneauFriend
Messages: 28
Registered: July 2009
Junior Member
Hi all,

I have an unexpected behavior with CDO 2.0.0M3.

I have one transaction, and I create several resource between two
commit. After close/open the session, when I try to load a ressource I
have the following exception :

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.cdo.util.InvalidURIException: Invalid URI:
cdo://repository/root/folder1/resource2
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
....
Caused by: org.eclipse.emf.cdo.util.InvalidURIException: Invalid URI:
cdo://repository/root/folder1/resource2
at
org.eclipse.emf.internal.cdo.CDOViewImpl.registerProxyResour ce(CDOViewImpl.java:1066)
....
Caused by: org.eclipse.emf.cdo.common.util.CDOException: Node resource2
not found
at
org.eclipse.emf.internal.cdo.CDOViewImpl.getResourceNodeID(C DOViewImpl.java:537)

I take a look in the MEMStore, it seems that there is several time the
same CDOResource with different ids.

If I commit after each resource creation everything works fine !

Eike, Simon, I should create a Bugzilla ?

David
Re: [CDO] Multiple resource creation bug ? [message #425838 is a reply to message #425833] Tue, 09 December 2008 18:31 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
David,

Yes, please file a Bugzilla and ideally attach a small test case to
reproduce the problem (have a look at the various subclasses of
AbstractCDOTest for examples).

Cheers
/Eike

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



David Bonneau schrieb:
> Hi all,
>
> I have an unexpected behavior with CDO 2.0.0M3.
>
> I have one transaction, and I create several resource between two
> commit. After close/open the session, when I try to load a ressource I
> have the following exception :
>
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
> org.eclipse.emf.cdo.util.InvalidURIException: Invalid URI:
> cdo://repository/root/folder1/resource2
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>
> ....
> Caused by: org.eclipse.emf.cdo.util.InvalidURIException: Invalid URI:
> cdo://repository/root/folder1/resource2
> at
> org.eclipse.emf.internal.cdo.CDOViewImpl.registerProxyResour ce(CDOViewImpl.java:1066)
>
> ....
> Caused by: org.eclipse.emf.cdo.common.util.CDOException: Node
> resource2 not found
> at
> org.eclipse.emf.internal.cdo.CDOViewImpl.getResourceNodeID(C DOViewImpl.java:537)
>
>
> I take a look in the MEMStore, it seems that there is several time the
> same CDOResource with different ids.
>
> If I commit after each resource creation everything works fine !
>
> Eike, Simon, I should create a Bugzilla ?
>
> David


Previous Topic:eSet in multiple (parent/child) models
Next Topic:Re: Support of EJB3/JPA OR mapping by TENEO
Goto Forum:
  


Current Time: Tue Apr 23 10:59:39 GMT 2024

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

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

Back to the top