Bug 358919 - Eight tests within cacheable test suite failed on all application servers
Summary: Eight tests within cacheable test suite failed on all application servers
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2011-09-26 11:45 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2011-09-26 11:45:34 EDT
EL: trunk (2.4)
The following are all 8 tests failed on all application servers, the stack trace are from WLS 10.3.5 (with jpa2.0 supported patch):

1.) org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTestDisableSelective.testEmbeddableProtectedCaching and testDerivedIDProtectedRead:
=========================================================================
javax.transaction.NotSupportedException: Another transaction is associated with this thread. Existing transaction Xid=BEA1-026AE7A8103D7F28EDB9(1054745237),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,activeThread=Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads],XAServerResourceInfo[EclipseLinkDS_mydomain]=(ServerResourceInfo[EclipseLinkDS_mydomain]=(state=started,assigned=none),xar=weblogic.jdbc.wrapper.JTSEmulateXAResourceImpl@69b08471,re-Registered = false),SCInfo[mydomain+myserver]=(state=active),properties=({weblogic.jdbc.remote.EclipseLinkDS=t3://10.156.51.8:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+10.156.51.8:7001+mydomain+t3+, XAResources={EclipseLinkDS_mydomain, WSATGatewayRM_myserver_mydomain},NonXAResources={})],CoordinatorURL=myserver+10.156.51.8:7001+mydomain+t3+)

2.) org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTestDisableSelective.testMergeNonCachedWithRelationship:
===============================================
Entity must be managed to call remove: org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity@429fdb4a, try merging the detached and try the remove again.

3.) org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTestAll.testCachingOnALL, org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTestNone.testCachingOnNONE, org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTestEnableSelective.testCachingOnENABLE_SELECTIVE, org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTestDisableSelective.testCachingOnDISABLE_SELECTIVE, org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTestUnspecified.testCachingOnUNSPECIFIED:
================================
java.lang.NullPointerException
at org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTest.usesNoCache(CacheableModelJunitTest.java:1790)
at org.eclipse.persistence.testing.tests.jpa.cacheable.CacheableModelJunitTest.testCachingOnUNSPECIFIED(CacheableModelJunitTest.java:993)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:652)
at org.eclipse.persistence.testing.framework.server.TestRunner5Bean.runTest(TestRunner5Bean.java:87)
at org.eclipse.persistence.testing.framework.server.TestRunner5_42jnxs_TestRunner5Impl.__WL_invoke(Unknown Source)
at org.eclipse.persistence.testing.framework.server.TestRunner5_42jnxs_TestRunner5Impl.runTest(Unknown Source)
at org.eclipse.persistence.testing.framework.server.TestRunner5_42jnxs_TestRunner5Impl_WLSkel.invoke(Unknown Source)
Comment 1 Kevin Yuan CLA 2011-09-28 14:35:38 EDT
James has fixed this issues with his transaction (revision 10175), and verified by running these tests on WAS 8 and Glassfish v3.*.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:04:15 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:08:39 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink