My Oracle Support Banner

Configure the data-source for SQLServer using DataDirect driver (Doc ID 342200.1)

Last updated on OCTOBER 20, 2017

Applies to:

Oracle Containers for J2EE - Version: 10.1.2.0.2
This problem can occur on any platform.

Symptoms

You are using the the 10.1.2 version of Oracle Containers for J2EE (OC4J) where you have defined a data-source accessing a Microsoft SQLServer database using DataDirect JDBC drivers. However, when you use the JDBC driver at runtime you encounter the following error:

java.lang.IllegalArgumentException: The constructor's connection cannot be null.
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.DriverManagerPooledConnection.<init>(DriverManagerPooledConnection.java:43)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.DriverManagerXAConnection.<init>(DriverManagerXAConnection.java:33)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.DriverManagerXADataSource.getXAConnection(DriverManagerXADataSource.java:120)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.OrionCMTDataSource.getPooledConnection(OrionCMTDataSource.java:197)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.PooledConnectionUsage.getPooledConnection(PooledConnectionUsage.java:39)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.OrionPooledDataSource.getTheConnection(OrionPooledDataSource.java:254)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.OrionPooledDataSource.getOPDSConnection(OrionPooledDataSource.java:329)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.OrionCMTConnection.getConnection(OrionCMTConnection.java:202)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.OrionCMTConnection.<init>(OrionCMTConnection.java:123)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].util.ClassOptimizerFactory.getOrionCMTConnection(ClassOptimizerFactory.java:82)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:246)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:217)


Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
  Symptoms
  Cause
  Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.