Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327254

Summary: 2 tests in CustomFeaturesJUnitTestSuite failed on Oracle database 11.2.0.2
Product: z_Archived Reporter: Edwin Tang <edwin.tang>
Component: EclipselinkAssignee: Project Inbox <eclipselink.orm-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: andrei.ilitchev
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=395478
Whiteboard:

Description Edwin Tang CLA 2010-10-07 12:03:01 EDT
There are two tests (testBatchUpdates, testNamedStoredProcedureCursorQuery) in CustomFeaturesJUnitTestSuite failed on Oracle database 11.2.0.2.

Stack Trace:
============
tried to access class oracle.xml.binxml.BinXMLDecoderImpl from class oracle.xdb.XMLType

java.lang.IllegalAccessError: tried to access class oracle.xml.binxml.BinXMLDecoderImpl from class oracle.xdb.XMLType
at oracle.xdb.XMLType.getStringFromBinXMLStream(XMLType.java:4080)
at oracle.xdb.XMLType.getStringVal(XMLType.java:1471)
at oracle.jdbc.driver.OracleSQLXML.getString(OracleSQLXML.java:325)
at org.eclipse.persistence.internal.helper.JDK16Platform.getStringAndFreeSQLXML(JDK16Platform.java:36)
at org.eclipse.persistence.internal.helper.JavaPlatform.getStringAndFreeSQLXML(JavaPlatform.java:103)
at org.eclipse.persistence.platform.database.oracle.Oracle9Platform.getObjectFromResultSet(Oracle9Platform.java:172)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:1133)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:926)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:649)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:526)
at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:529)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:206)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:192)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:263)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:644)
at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2537)
at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2496)
at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:407)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1075)
at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:736)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1035)
at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:380)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1121)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2908)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1291)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1273)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1247)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:479)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:714)
at org.eclipse.persistence.testing.tests.jpa.customfeatures.CustomFeaturesJUnitTestSuite.testBatchUpdates(CustomFeaturesJUnitTestSuite.java:137)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:466)
Comment 1 Andrei Ilitchev CLA 2010-10-18 10:35:01 EDT
It's a configuration error: exception is due to wrong version of xmlparserv2.jar.

ojdbc6.jar used in the test is copied from JAVAVM_11.2.0.2.0_LINUX_100812.1 (mentioned in ojdbc.jar manifest file)

Copy xmlparserv2.jar from this label and the problem will be gone.

Though other jars don't contain manifest files or don't have useful version info there, xml.jar and xmlparserv2.jar both have index.list files that contains:
xml.jar:                xdk_version_11.2.0.2.0_production
xmlparserv2.jar:   xdk_version_11.1.1.3.0_production

xmlparserv2.jar copied from JAVAVM_11.2.0.2.0_LINUX_100812.1 in its index.list has xdk_version_11.2.0.2.0_production
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:09:48 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:15:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink