Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » ArrayIndexOutOfBoundsException when generating EMF-JDO/JPOX OR mapping
ArrayIndexOutOfBoundsException when generating EMF-JDO/JPOX OR mapping [message #59108] Tue, 24 October 2006 19:59 Go to next message
Eclipse UserFriend
Originally posted by: oliveros.cpqd.com.br

Hi there,
I've been trying to use Teneo EMF Persistence (SDK 0.7.5.v200610190709) to
generate the EMF-JDO/JPOX OR mapping, but I am getting the following
exception:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 at
org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:74)

Any guess ?

FYI I've added the following jar files to my classpath:
jdo2-api-2.0.jar
jpox-1.1.2.jar
jpox-enhancer-1.1.2.jar
org.eclipse.emf.teneo_0.7.5.v200610190709.jar
org.eclipse.emf.teneo.annotations_0.7.5.v200610190709.jar"
org.eclipse.emf.teneo.jpox.enhanced.jar
org.eclipse.emf.teneo.jpox.jar
mysql-connector-java-5.0.3-bin.jar
log4j-1.2.8.jar
bcel-5.2.jar

I would appreciate any help.
Dário
Re: ArrayIndexOutOfBoundsException when generating EMF-JDO/JPOX OR mapping [message #59186 is a reply to message #59108] Wed, 25 October 2006 08:25 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Dário,
This error (a bug) actually hides another error. The generation step is not able to instantiate the
EPackage instance. Are the ecore file and the sources of the model in the same project (they should be)?
I'll improve the error reporting, this will be in the next build (this week).

You can also programmatically create a jdo mapping by calling:
JpoxHelper.generateMapping(EPackage[] epackages, Properties props)

gr. Martin

Dário wrote:
> Hi there,
> I've been trying to use Teneo EMF Persistence (SDK 0.7.5.v200610190709)
> to generate the EMF-JDO/JPOX OR mapping, but I am getting the following
> exception:
>
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
> 3 at
> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:74)
>
> Any guess ?
>
> FYI I've added the following jar files to my classpath:
> jdo2-api-2.0.jar
> jpox-1.1.2.jar
> jpox-enhancer-1.1.2.jar
> org.eclipse.emf.teneo_0.7.5.v200610190709.jar
> org.eclipse.emf.teneo.annotations_0.7.5.v200610190709.jar"
> org.eclipse.emf.teneo.jpox.enhanced.jar
> org.eclipse.emf.teneo.jpox.jar
> mysql-connector-java-5.0.3-bin.jar
> log4j-1.2.8.jar
> bcel-5.2.jar
>
> I would appreciate any help.
> Dário
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: ArrayIndexOutOfBoundsException when generating EMF-JDO/JPOX OR mapping [message #59237 is a reply to message #59186] Wed, 25 October 2006 11:29 Go to previous message
Eclipse UserFriend
Originally posted by: oliveros.cpqd.com.br

Hi Martin,
Both ecore and source files are in the same project indeed.
I will generate the mapping as you suggested until next build is available.
Thanks a lot,
Dário
Re: ArrayIndexOutOfBoundsException when generating EMF-JDO/JPOX OR mapping [message #594785 is a reply to message #59108] Wed, 25 October 2006 08:25 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Dário,
This error (a bug) actually hides another error. The generation step is not able to instantiate the
EPackage instance. Are the ecore file and the sources of the model in the same project (they should be)?
I'll improve the error reporting, this will be in the next build (this week).

You can also programmatically create a jdo mapping by calling:
JpoxHelper.generateMapping(EPackage[] epackages, Properties props)

gr. Martin

Dário wrote:
> Hi there,
> I've been trying to use Teneo EMF Persistence (SDK 0.7.5.v200610190709)
> to generate the EMF-JDO/JPOX OR mapping, but I am getting the following
> exception:
>
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
> 3 at
> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:74)
>
> Any guess ?
>
> FYI I've added the following jar files to my classpath:
> jdo2-api-2.0.jar
> jpox-1.1.2.jar
> jpox-enhancer-1.1.2.jar
> org.eclipse.emf.teneo_0.7.5.v200610190709.jar
> org.eclipse.emf.teneo.annotations_0.7.5.v200610190709.jar"
> org.eclipse.emf.teneo.jpox.enhanced.jar
> org.eclipse.emf.teneo.jpox.jar
> mysql-connector-java-5.0.3-bin.jar
> log4j-1.2.8.jar
> bcel-5.2.jar
>
> I would appreciate any help.
> Dário
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: ArrayIndexOutOfBoundsException when generating EMF-JDO/JPOX OR mapping [message #594804 is a reply to message #59186] Wed, 25 October 2006 11:29 Go to previous message
Eclipse UserFriend
Originally posted by: oliveros.cpqd.com.br

Hi Martin,
Both ecore and source files are in the same project indeed.
I will generate the mapping as you suggested until next build is available.
Thanks a lot,
Dário
Previous Topic:ArrayIndexOutOfBoundsException when generating EMF-JDO/JPOX OR mapping
Next Topic:Support EMF custom EDataTypes
Goto Forum:
  


Current Time: Fri Apr 26 10:28:23 GMT 2024

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

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

Back to the top