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

a guest Feb 22nd, 2012 341 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(
  7.     at org.apache.openjpa.kernel.BrokerImpl.persist(
  8.     at org.apache.openjpa.kernel.BrokerImpl.persist(
  9.     at org.apache.openjpa.kernel.DelegatingBroker.persist(
  10.     at org.apache.openjpa.persistence.EntityManagerImpl.persist(
  11.     at ...
  13. "openjpa.RuntimeUnenhancedClasses" => RuntimeUnenhancedClassesModes.SUPPORTED
RAW Paste Data