Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2, 1.3.0, 2.0.0-M2
    • Fix Version/s: 2.0.0-M2
    • Component/s: jpa
    • Labels:
      None
    • Patch Info:
      Patch Available

      Activity

      Hide
      Tim McConnell added a comment -

      Hi Albert, thanks for reviewing. I agree and have attached a new patch, which I've tested on Derby, DB2, and PostgreSQL. It was only failing on PostgreSQL before but wanted to ensure it didn't break anything.....

      Show
      Tim McConnell added a comment - Hi Albert, thanks for reviewing. I agree and have attached a new patch, which I've tested on Derby, DB2, and PostgreSQL. It was only failing on PostgreSQL before but wanted to ensure it didn't break anything.....
      Hide
      Albert Lee added a comment -

      The spec docuemnt that:

      2.1.1 Persistent Fields and Properties
      Collection-valued persistent fields and properties must be defined in terms of one of the following collection-
      valued interfaces regardless of whether the entity class otherwise adheres to the JavaBeans
      method conventions noted above and whether field or property-based access is used:
      java.util.Collection, java.util.Set, java.util.List[4], java.util.Map.[5]

      [4] Portable applications should not expect the order of lists to be maintained across persistence contexts unless the OrderBy construct
      is used and the modifications to the list observe the specified ordering. The order is not otherwise persistent.
      [5] The implementation type may be used by the application to initialize fields or properties before the entity is made persistent; subsequent
      access must be through the interface type once the entity becomes managed (or detached).

      So you are correct that the test is not quite correct. However the change has negated the intent of the test and become not quite meaningful.
      I would suggest the following:

      1)
      public class ProxiesPC implements Comparable {

      @PersistentCollection
      @OrderBy // <<<<< enforce ordering of the List<String>
      private List<String> list = new ArrayList();

      2)
      public class TestProxies2 extends BaseKernelTest {

      public void testChangeListOrder() {

      // re-retrieve to check ordering
      pm = getPM(false, false);
      pc = pm.find(ProxiesPC.class, _oid);

      list = pc.getList();
      assertEquals(5, list.size());
      assertEquals("val1", list.get(0));
      assertEquals("val1", list.get(1));
      assertEquals("val2", list.get(2)); // <<<< make sure it is in the expected order after remove/add
      assertEquals("val3", list.get(3));
      assertEquals("val3", list.get(4));

      If you think this is correct, can you please erify this patch works against the databases that had problems?

      Thanks,
      Albert Lee.

      Show
      Albert Lee added a comment - The spec docuemnt that: 2.1.1 Persistent Fields and Properties Collection-valued persistent fields and properties must be defined in terms of one of the following collection- valued interfaces regardless of whether the entity class otherwise adheres to the JavaBeans method conventions noted above and whether field or property-based access is used: java.util.Collection, java.util.Set, java.util.List [4] , java.util.Map. [5] [4] Portable applications should not expect the order of lists to be maintained across persistence contexts unless the OrderBy construct is used and the modifications to the list observe the specified ordering. The order is not otherwise persistent. [5] The implementation type may be used by the application to initialize fields or properties before the entity is made persistent; subsequent access must be through the interface type once the entity becomes managed (or detached). So you are correct that the test is not quite correct. However the change has negated the intent of the test and become not quite meaningful. I would suggest the following: 1) public class ProxiesPC implements Comparable { @PersistentCollection @OrderBy // <<<<< enforce ordering of the List<String> private List<String> list = new ArrayList(); 2) public class TestProxies2 extends BaseKernelTest { public void testChangeListOrder() { // re-retrieve to check ordering pm = getPM(false, false); pc = pm.find(ProxiesPC.class, _oid); list = pc.getList(); assertEquals(5, list.size()); assertEquals("val1", list.get(0)); assertEquals("val1", list.get(1)); assertEquals("val2", list.get(2)); // <<<< make sure it is in the expected order after remove/add assertEquals("val3", list.get(3)); assertEquals("val3", list.get(4)); If you think this is correct, can you please erify this patch works against the databases that had problems? Thanks, Albert Lee.
      Hide
      Tim McConnell added a comment -

      Attached patch to validate content of list without assuming certain order upon database retrieval. Tested on Derby, DB2, PostgreSQL.

      Show
      Tim McConnell added a comment - Attached patch to validate content of list without assuming certain order upon database retrieval. Tested on Derby, DB2, PostgreSQL.
      Hide
      Tim McConnell added a comment -

      Running org.apache.openjpa.persistence.kernel.TestProxies2
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      62 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      156 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      187 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4062 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      63 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      157 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      204 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4110 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4078 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4094 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      281 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      281 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      281 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      297 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      328 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4250 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4110 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4047 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4062 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4078 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
      46 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      171 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.
      4109 TestConv INFO [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
      Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 41.765 sec <<< FAILURE!
      testChangeListOrder(org.apache.openjpa.persistence.kernel.TestProxies2) Time elapsed: 4.125 sec <<< FAILURE!
      junit.framework.AssertionFailedError: expected:<val1> but was:<val3>
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.failNotEquals(Assert.java:282)
      at junit.framework.Assert.assertEquals(Assert.java:64)
      at junit.framework.Assert.assertEquals(Assert.java:71)
      at org.apache.openjpa.persistence.kernel.TestProxies2.testChangeListOrder(TestProxies2.java:435)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at org.apache.openjpa.persistence.test.PersistenceTestCase.runBare(PersistenceTestCase.java:443)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:173)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)

      Show
      Tim McConnell added a comment - Running org.apache.openjpa.persistence.kernel.TestProxies2 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 62 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 156 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 187 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4062 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 63 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 157 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 204 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4110 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4078 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4094 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 281 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 281 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 281 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 297 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 328 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4250 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4110 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4047 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4062 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 47 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 141 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 172 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4078 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 0 TestConv INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT 46 TestConv INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 125 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 140 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 171 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. 4109 TestConv INFO [main] openjpa.Enhance - Creating subclass for " [class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC] ". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 41.765 sec <<< FAILURE! testChangeListOrder(org.apache.openjpa.persistence.kernel.TestProxies2) Time elapsed: 4.125 sec <<< FAILURE! junit.framework.AssertionFailedError: expected:<val1> but was:<val3> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:282) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:71) at org.apache.openjpa.persistence.kernel.TestProxies2.testChangeListOrder(TestProxies2.java:435) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at org.apache.openjpa.persistence.test.PersistenceTestCase.runBare(PersistenceTestCase.java:443) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:173) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)

        People

        • Assignee:
          Tim McConnell
          Reporter:
          Tim McConnell
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development