Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » NoSuchMethodError _persistence_propertyChange
NoSuchMethodError _persistence_propertyChange [message #1547723] Mon, 05 January 2015 16:01
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 817
Registered: July 2009
Senior Member
If I upgrade from Eclipselink 2.4.2 to 2.5.2 I get the following error:

Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Deployment of PersistenceUnit [reinders] failed. Close all factories for this PersistenceUnit. Internal Exception: java.lang.NoSuchMethodError: nl.reinders.bm.generated.Task_._persistence_propertyChange(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createDeployFailedPersistenceException(EntityManagerSetupImpl.java:820)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:760)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:204)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:304)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:302)
at nl.reinders.bm.BM.createEntityManagerFactory(BM.java:134)
at nl.reinders.bm.BM.createEntityManagerFactory(BM.java:211)
at nl.reinders.bm.TestUtils.setupEMF(TestUtils.java:23)
at nl.reinders.bm.ArticleStockTest.beforeClass(ArticleStockTest.java:35)
31 lines not shown
Caused by Exception Description: Deployment of PersistenceUnit [reinders] failed. Close all factories for this PersistenceUnit. Internal Exception: java.lang.NoSuchMethodError: nl.reinders.bm.generated.Task_._persistence_propertyChange(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

org.eclipse.persistence.exceptions.EntityManagerSetupException.deployFailed(EntityManagerSetupException.java:238)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createDeployFailedPersistenceException(EntityManagerSetupImpl.java:820)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:760)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:204)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:304)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:302)
at nl.reinders.bm.BM.createEntityManagerFactory(BM.java:134)
at nl.reinders.bm.BM.createEntityManagerFactory(BM.java:211)
at nl.reinders.bm.TestUtils.setupEMF(TestUtils.java:23)
at nl.reinders.bm.ArticleStockTest.beforeClass(ArticleStockTest.java:35)
31 lines not shown
Caused by nl.reinders.bm.generated.Task_._persistence_propertyChange(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V

nl.reinders.bm.generated.Task_._persistence_set_iArtworkInhouse(Task_.java)
at nl.reinders.bm.generated.Task_.setArtworkInhouse(Task_.java:685)
at nl.reinders.bm.Task.defaults(Task.java:49)
at nl.reinders.bm.AbstractBean.defaultsCallThisMethodFromTheConstructor(AbstractBean.java:226)
at nl.reinders.bm.Task.<init>(Task.java:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.eclipse.persistence.descriptors.ClassDescriptor.preInitialize(ClassDescriptor.java:3982)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:649)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:632)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:568)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:799)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:756)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:241)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:685)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:204)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:304)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:302)
at nl.reinders.bm.BM.createEntityManagerFactory(BM.java:134)
at nl.reinders.bm.BM.createEntityManagerFactory(BM.java:211)
at nl.reinders.bm.TestUtils.setupEMF(TestUtils.java:23)
at nl.reinders.bm.ArticleStockTest.beforeClass(ArticleStockTest.java:35)
31 lines not shown


This is a mapped superclass and the method is indeed missing. This happens on all mapped superclasses. These classes are present in the persistence.xml.
Previous Topic:How to configure CacheIndex wirth native ORM project ?
Next Topic:upgrade 2.4.2 to 2.5.2 give NoSuchMethodError _persistence_propertyChange on all mapped superclasses
Goto Forum:
  


Current Time: Tue Feb 27 08:30:26 GMT 2024

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

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

Back to the top