Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Problems with upgrade to Eclipselink M6

This looks like a bug.

Do you have any persistence methods that are defined similar to getA? That is, that have a single character after the 'get'?

Cheers,
Guy

----- Original Message ----- From: "fed" <fury123@xxxxxxxxx>
To: "EclipseLink User Discussions" <eclipselink-users@xxxxxxxxxxx>
Sent: Saturday, May 03, 2008 12:03 PM
Subject: [eclipselink-users] Problems with upgrade to Eclipselink M6


Hi,

I have used for my project eclipselink M5, i upgraded to M6 but now i
get an error when i start my application (i use JavaSE) :

the line that cause the problem is :

emf = Persistence.createEntityManagerFactory("default", properties);

the persistence.xml is the same that i used with M5, the classes are
the same, but with this new version i get this error.

If i replace eclipselink.jar and persistence.jar with the ones from M5
all works.

I noted that if i comment all the <class>  </class>  in
persistence.xml  i don't get this error, i also tried the nightly
builds but same problem.

What it can be?   I attach at the end the stacktrace of the exception.

Thanks for the help.
Bye.

Exception in thread "main" java.lang.ExceptionInInitializerError
at presenze.database.Database.getInstance(Database.java:473)
at presenze.Test.main(Test.java:356)
Caused by: Exception [EclipseLink-30005] (Eclipse Persistence Services
- 1.0 (Build SNAPSHOT - 20080409)):
org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for
persistence archives with ClassLoader:
sun.misc.Launcher$AppClassLoader@11b86e7
Internal Exception: javax.persistence.PersistenceException: Exception
[EclipseLink-28018] (Eclipse Persistence Services - 1.0 (Build
SNAPSHOT - 20080409)):
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [default] failed.
Internal Exception: java.lang.StringIndexOutOfBoundsException: String
index out of range: 4
at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:121) at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:87) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at presenze.database.DBTest.<clinit>(DBTest.java:63)
... 2 more
Caused by: javax.persistence.PersistenceException: Exception
[EclipseLink-28018] (Eclipse Persistence Services - 1.0 (Build
SNAPSHOT - 20080409)):
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [default] failed.
Internal Exception: java.lang.StringIndexOutOfBoundsException: String
index out of range: 4
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:806) at org.eclipse.persistence.internal.jpa.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:132) at org.eclipse.persistence.internal.jpa.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:200) at org.eclipse.persistence.internal.jpa.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:215) at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:73)
... 4 more
Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services
- 1.0 (Build SNAPSHOT - 20080409)):
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [default] failed.
Internal Exception: java.lang.StringIndexOutOfBoundsException: String
index out of range: 4
at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:209)
... 9 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: 4
at java.lang.String.substring(String.java:1935)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataMethod.getAttributeNameFromMethodName(MetadataMethod.java:64) at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataMethod.<init>(MetadataMethod.java:49) at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.getMetadataMethod(ClassAccessor.java:322) at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.processAccessorMethods(ClassAccessor.java:465) at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.processAccessors(ClassAccessor.java:526) at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:318) at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:244) at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:272) at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:766)
... 8 more
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users




Back to the top