openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-680) Flush followed by refresh on a new instance returns an instance with all fields but id cleared
Date Tue, 12 Aug 2008 21:41:45 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621995#action_12621995
] 

Albert Lee commented on OPENJPA-680:
------------------------------------

This patch has regressed the TCK in trunk and 1.2.x branch. The errors reported in openjpa-tck.log
are:

------------------------------------------
********************************************************************************
Beginning Test:  com.sun.ts.tests.ejb30.persistence.callback.listener.Client.postLoadMultiTest_from_standalone
********************************************************************************
08-12-2008 04:52:05:  Harness - harness.executeMode is set to "0"
08-12-2008 04:52:05:  Harness - sClassPathFromExecProps = 
command: com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH=../classes:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/classes:/root/.m2/repository/org/apache/derby/derby/10.2.1.6/derby-10.2.1.6.jar:/root/.m2/repository/javax/persistence/persistence-api/1.0b/persistence-api-1.0b.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-kernel/target/classes:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-lib/target/openjpa-lib-1.3.0-SNAPSHOT.jar:/root/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/root/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar:/root/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/root/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar:/root/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar:/root/.m2/repository/net/sourceforge/serp/serp/1.13.1/serp-1.13.1.jar:/root/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.0.1/geronimo-jms_1.1_spec-1.0.1.jar:/root/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar:/root/.m2/repository/commons-pool/commons-pool/1.3/commons-pool-1.3.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/ant_sun.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/apiCheck.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/javatest.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/jaxen-core.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/jaxen-jdom.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/jdom.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/saxpath.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/sigtest.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/tsharness.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/tspackager.jar:/opt/jetbrains/TeamCity/plugins/maven-2.0.8/boot/classworlds-1.1.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/:../lib/tsharness.jar:../lib/sigtest.jar:../classes:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/classes:/root/.m2/repository/org/apache/derby/derby/10.2.1.6/derby-10.2.1.6.jar:/root/.m2/repository/javax/persistence/persistence-api/1.0b/persistence-api-1.0b.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-kernel/target/classes:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-lib/target/openjpa-lib-1.3.0-SNAPSHOT.jar:/root/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/root/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar:/root/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/root/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar:/root/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar:/root/.m2/repository/net/sourceforge/serp/serp/1.13.1/serp-1.13.1.jar:/root/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.0.1/geronimo-jms_1.1_spec-1.0.1.jar:/root/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar:/root/.m2/repository/commons-pool/commons-pool/1.3/commons-pool-1.3.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/ant_sun.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/apiCheck.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/javatest.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/jaxen-core.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/jaxen-jdom.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/jdom.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/saxpath.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/sigtest.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/tsharness.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/lib/tspackager.jar:/opt/jetbrains/TeamCity/plugins/maven-2.0.8/boot/classworlds-1.1.jar:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/:../lib/javatest.jar:../tools/ant/lib/ant.jar:/opt/jetbrains/jdk/sun/jdk5/jre/../lib/tools.jar:DISPLAY=:0.0:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-integration/tck/target/tck/jpatck/src/../dist/com/sun/ts/tests/ejb30/persistence/callback/listener/ejb3_pm_callback_listener.jar
HOME=/root windir= SYSTEMROOT= /opt/jetbrains/jdk/sun/jdk5/jre/bin/java -Dcts.tmp=../tmp -Djava.security.policy=../bin/harness.policy
-Ddeliverable.class=com.sun.ts.lib.deliverable.jpa.JPADeliverable -javaagent:/opt/jetbrains/TeamCity/work/98561997f875f84e/openjpa-all/target/openjpa-1.3.0-SNAPSHOT.jar
-Dopenjpa.MetaDataFactory=jpa(DefaultAccessType=PROPERTY) com.sun.ts.tests.common.vehicle.VehicleClient
-p ../tmp/tstest.jte -t postLoadMultiTest -vehicle standalone
************************************************************
* props file set to "/tmp/root-cts-props.txt"
************************************************************
setup
platform.mode is set to standalone, so tests are running in J2SE environment standalone mode.persistence.unit.name
is set to JPATCK
persistence unit properites from user: {openjpa.jdbc.DBDictionary=StoreCharsAsNumbers=false,
openjpa.FetchBatchSize=-1, openjpa.Compatibility=StrictIdentityValues=true, javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl,
openjpa.ConnectionURL=jdbc:derby:derby-database;create=true, openjpa.Sequence=time, openjpa.ConnectionDriverName=org.apache.derby.jdbc.EmbeddedDriver,
openjpa.Log=DefaultLevel=WARN, openjpa.ConnectionUserName=nousername, openjpa.jdbc.SchemaFactory=native(ForeignKeys=true),
openjpa.ConnectionPassword=nopassword}
persistence unit properites verified: {openjpa.jdbc.DBDictionary=StoreCharsAsNumbers=false,
openjpa.FetchBatchSize=-1, openjpa.Compatibility=StrictIdentityValues=true, javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl,
openjpa.ConnectionURL=jdbc:derby:derby-database;create=true, openjpa.Sequence=time, openjpa.ConnectionDriverName=org.apache.derby.jdbc.EmbeddedDriver,
openjpa.Log=DefaultLevel=WARN, openjpa.ConnectionUserName=nousername, openjpa.jdbc.SchemaFactory=native(ForeignKeys=true),
openjpa.ConnectionPassword=nopassword}
Product: In prePersist in class com.sun.ts.tests.ejb30.persistence.callback.common.ListenerA@c8c7d6
Product: In prePersist in class com.sun.ts.tests.ejb30.persistence.callback.common.ListenerB@18c5e67
Product: In prePersist in class com.sun.ts.tests.ejb30.persistence.callback.common.ListenerC@89c116
Product: In postPersist.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerA@1c79dfc
Product: In postPersist.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerB@553763
Product: In postPersist.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerC@a75737
Product: In postLoad.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerA@7f3b8a
Product: In postLoad.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerB@11e1bbf
Product: In postLoad.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerC@1afd9cc
Product: In postLoad.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerA@3e926
Product: In postLoad.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerB@bfd66a
Product: In postLoad.com.sun.ts.tests.ejb30.persistence.callback.common.ListenerC@95f290
org.apache.openjpa.kernel.DelegatingResultList@1566a6c
08-12-2008 04:52:11:  ERROR: Expecting result list: [ListenerA, ListenerB, ListenerC], but
actual: [ListenerA, ListenerB, ListenerC, ListenerA, ListenerB, ListenerC]
08-12-2008 04:52:11:  ERROR: Exception at: 
08-12-2008 04:52:11:  ERROR: com.sun.ts.lib.harness.EETest$Fault: Expecting result list: [ListenerA,
ListenerB, ListenerC], but actual: [ListenerA, ListenerB, ListenerC, ListenerA, ListenerB,
ListenerC]
	at com.sun.ts.tests.ejb30.common.helper.Helper.compareResultList(Helper.java:30)
	at com.sun.ts.tests.ejb30.common.helper.Helper.compareResultList(Helper.java:36)
	at com.sun.ts.tests.ejb30.persistence.callback.listener.Client.postLoadMultiTest(Client.java:565)
	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 com.sun.ts.lib.harness.EETest.run(EETest.java:495)
	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:112)
	at com.sun.ts.tests.common.vehicle.EmptyVehicleRunner.run(EmptyVehicleRunner.java:30)
	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:102)
	at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:392)
	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
	at com.sun.ts.lib.harness.EETest.run(EETest.java:204)
	at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:27)
Find All Products
Find All Orders
Find All LineItems
Cleanup done, calling super.cleanup
STATUS:Failed.Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Expecting result
list: [ListenerA, ListenerB, ListenerC], but actual: [ListenerA, ListenerB, ListenerC, ListenerA,
ListenerB, ListenerC]
********************************************************************************
Finished Test:  FAILED........com.sun.ts.tests.ejb30.persistence.callback.listener.Client.postLoadMultiTest_from_standalone
********************************************************************************
Number of tests completed:  22 (21 passed, 1 failed, 0 with errors)


There are 3 more similar failures in:

Finished Test:  FAILED........com.sun.ts.tests.ejb30.persistence.callback.listeneroverride.Client.postLoadMultiTest_from_standalone
Finished Test:  FAILED........com.sun.ts.tests.ejb30.persistence.callback.method.Client.postLoadMultiTest_from_standalone
Finished Test:  FAILED........com.sun.ts.tests.ejb30.persistence.callback.methodoverride.Client.postLoadMultiTest_from_standalone

I have verified this by removing the patch in both trunk and 1.2.x and TCK is passing again.

I am going revert the change out of trunk and 1.2.x.

Albert Lee.

> Flush followed by refresh on a new instance returns an instance with all fields but id
cleared
> ----------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-680
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-680
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.2.0, 1.2.1, 1.3.0
>            Reporter: Srinivasa
>            Priority: Minor
>         Attachments: testcase.zip
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message