ArrayIndexOutOfBoundsException when generating EMF-JDO/JPOX OR mapping [message #59108] |
Tue, 24 October 2006 15:59  |
Eclipse User |
|
|
|
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 #594785 is a reply to message #59108] |
Wed, 25 October 2006 04:25  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03400 seconds