openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pachler, Uwe" <Uwe.Pach...@datagroup.de>
Subject java.lang.NoSuchMethodError: ....AggregationEntity.pcGetManagedFieldCount()
Date Fri, 03 Feb 2017 19:17:44 GMT
Hi, 

I'm facing a nasty issue with my freshly refactored entity class hierarchy (things did work
before):

openjpa.MetaData - The class "com.mycompany.FamilyAggregationEntity" listed in the openjpa.MetaDataFactory
configuration property could not be loaded by org.apache.openejb.arquillian.openejb.SWClassLoader@5b408dc3;
ignoring.
2091  corbox_appgateway  TRACE  [main] openjpa.MetaData - java.lang.NoSuchMethodError: de.datagroup.corbox.appgateway.bizimpl.db.entities.AggregationEntity.pcGetManagedFieldCount()Ijava.lang.NoSuchMethodError:
de.datagroup.corbox.appgateway.bizimpl.db.entities.AggregationEntity.pcGetManagedFieldCount()I
	at de.datagroup.corbox.appgateway.bizimpl.db.entities.ManagedCustomersFamilyAggregationEntity.<clinit>(ManagedCustomersFamilyAggregationEntity.java)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.apache.openjpa.meta.MetaDataRepository.classForName(MetaDataRepository.java:1559)
	at org.apache.openjpa.meta.MetaDataRepository.loadPersistentTypesInternal(MetaDataRepository.java:1535)
	at org.apache.openjpa.meta.MetaDataRepository.loadPersistentTypes(MetaDataRepository.java:1513)
	at org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:279)
	at org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:235)
	at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:211)
	at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:154)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:226)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:59)
	at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createEntityManager(ReloadableEntityManagerFactory.java:178)
	at org.apache.openejb.persistence.JtaEntityManagerRegistry.getEntityManager(JtaEntityManagerRegistry.java:130)
	at org.apache.openejb.persistence.JtaEntityManager.getEntityManager(JtaEntityManager.java:145)
	at org.apache.openejb.persistence.JtaEntityManager.typedProxyIfNoTx(JtaEntityManager.java:382)
	at org.apache.openejb.persistence.JtaEntityManager.createNamedQuery(JtaEntityManager.java:430)

The entity class in question does appear in the list printed by OpenJPA  as 'persistend type
name' before the exception happens:

2043  corbox_appgateway  TRACE  [main] openjpa.MetaData - parsePersistentTypeNames() found
[... com.mycompany.FamilyAggregationEntity ...]

I have a hierarchy of entity classes, like this:

@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class AggregationEntity implements Aggregation, Serializable {
..
}

@Entity
@Table(name="...")
@NamedQueries({
...
})
public class FamilyAggregationEntity extends AggregationEntity {
..
}

There are other entity subclasses of AggregationEntity, and these were present and working
before adding FamilyAggregationEntity..

I also tried @MappedSuperclass on AggregationEntity instead of @Entity/@Inheritance (which
is probably better JPA-standards-wise), but that didn't help either...

Any ideas greatly appreciated.

Thanks,

Uwe


Mime
View raw message