Bug 362592 - DCNTestSuite failed with OCI driver and thin drivers prior to version 11.2
Summary: DCNTestSuite failed with OCI driver and thin drivers prior to version 11.2
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks: 454799
  Show dependency tree
 
Reported: 2011-11-01 15:16 EDT by Edwin Tang CLA
Modified: 2022-06-09 10:04 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Tang CLA 2011-11-01 15:16:11 EDT
The DCNTestSuite(for Database Change Notification) failed with OCI driver and thin drivers prior to version 11.2.

Error Message:
==============
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20111027-r10284): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Unsupported feature Error Code: 17023

javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20111027-r10284): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Unsupported feature
Error Code: 17023
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:518)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:272)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.getDatabaseSession(JUnitTestCase.java:434)
at org.eclipse.persistence.testing.tests.jpa.dcn.DCNTestSuite.testSetup(DCNTestSuite.java:76)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:584)
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20111027-r10284): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Unsupported feature
Error Code: 17023
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
at org.eclipse.persistence.platform.database.oracle.dcn.OracleChangeNotificationListener.register(OracleChangeNotificationListener.java:147)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:723)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:653)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:208)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:489)
Caused by: java.sql.SQLException: Unsupported feature
at oracle.jdbc.driver.PhysicalConnection.doRegisterDatabaseChangeNotification(PhysicalConnection.java:10535)
at oracle.jdbc.driver.PhysicalConnection.registerDatabaseChangeNotification(PhysicalConnection.java:10417)
at oracle.jdbc.driver.T2CConnection.registerDatabaseChangeNotification(T2CConnection.java:47)
at org.eclipse.persistence.platform.database.oracle.dcn.OracleChangeNotificationListener.register(OracleChangeNotificationListener.java:104)
Comment 1 Edwin Tang CLA 2011-11-01 15:20:55 EDT
OCI driver and thin driver prior to version 11.2 don't support this feature. The  DCNTestSuite needs to detect driver type and version, and skip the tests if necessary.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:04:14 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink