SHARE
TWEET

Attempt to cast instance to PersistenceCapable failed. Ensure that it's been enhanced

a guest Feb 22nd, 2012 335 Never
  1. 79  WARN   [main] openjpa.Runtime - The configuration property named "openjpa.Id" was not recognized and will be ignored, although the name closely matches a valid property called "openjpa.Id".
  2. 179  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.1
  3. 371  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.4.4 ,PostgreSQL Native Driver PostgreSQL 9.0 JDBC4 (build 801)).
  4. <openjpa-2.0.1-r422266:989424 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: Attempt to cast instance "x.quality.QualityQuery@4c4b11e9" to PersistenceCapable failed.  Ensure that it has been enhanced.
  5. FailedObject: x.quality.QualityQuery@4c4b11e9
  6.     at org.apache.openjpa.kernel.BrokerImpl.assertPersistenceCapable(BrokerImpl.java:4559)
  7.     at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2561)
  8.     at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2423)
  9.     at org.apache.openjpa.kernel.DelegatingBroker.persist(DelegatingBroker.java:1069)
  10.     at org.apache.openjpa.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:706)
  11.     at ...
  12.        
  13. "openjpa.RuntimeUnenhancedClasses" => RuntimeUnenhancedClassesModes.SUPPORTED
RAW Paste Data
Top