This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

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

By: a guest on Feb 22nd, 2012  |  syntax: None  |  size: 1.20 KB  |  views: 261  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data