Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo / JPOX] java.lang.StringIndexOutOfBoundsException
[Teneo / JPOX] java.lang.StringIndexOutOfBoundsException [message #609432] Wed, 08 August 2007 13:33
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

Hello Martin,

I am trying to import content into DB2 database from an xml file.
I initialize jpoxDataStore, then create resource to handle things.

Here is the exception :

Exception in thread "main" java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1088)
at org.jpox.store.OID.<init>(OID.java:105)
at
org.eclipse.emf.teneo.jpox.resource.JPOXResource.getEObjectB yID(JPOXResource.java:302)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:683)
at
org.eclipse.emf.ecore.util.EObjectValidator.validate_UniqueI D(EObjectValidator.java:1095)
at
org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryDe faultConstraint(EObjectValidator.java:195)
at
org.eclipse.emf.ecore.util.EObjectValidator.validate(EObject Validator.java:168)
at
org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:127)
at
org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
at
org.eclipse.emf.teneo.resource.NonLoadingDiagnostician.doVal idateContents(NonLoadingDiagnostician.java:49)
at
org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
at
org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
at
org.eclipse.emf.teneo.resource.NonLoadingDiagnostician.doVal idateContents(NonLoadingDiagnostician.java:49)
at
org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
at
org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
at
org.eclipse.emf.teneo.resource.NonLoadingDiagnostician.doVal idateContents(NonLoadingDiagnostician.java:49)
at
org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
at
org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:87)
at
org.eclipse.emf.teneo.resource.StoreResource.validateObject( StoreResource.java:421)
at
org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:408)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:353)
at DatastoreInstall.importCars(DatastoreInstall.java:116)
at DatastoreInstall.init(DatastoreInstall.java:37)
at DatastoreInstall.main(DatastoreInstall.java:127)



I made a small testcase. I would be nice if you could take a look on it.
I have sent on your mail all the files that you should need.

Regards,

Quentin
Previous Topic:discriminator type
Next Topic:[TENEO] Sequence generation problem
Goto Forum:
  


Current Time: Fri Aug 12 22:19:46 GMT 2022

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

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

Back to the top