My Oracle Support Banner

"Java Unresolved: Java.lang.NullPointerException" Connecting To SQLSERVER 2019 From Oracle Database (Doc ID 2690825.1)

Last updated on JULY 16, 2020

Applies to:

JDBC - Version 12.1.0.2.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.0.2.0 version,

There is an error while connecting JDBC  from the Oracle Database 12.1.0.2.0 to SQLSERVER 2019.

Error at line 2
ORA-29532: llamada Java terminada por una excepción Java no resuelta: java.lang.NullPointerException
ORA-06512: en "......", línea 466
ORA-06512: en línea 2

The connection is done as follows:

  conSqlServer = DriverManager.getConnection("jdbc:sqlserver://<IP ADDRESS>:<PORT>;databaseName=" + database ,"<USERNAME>","<PASSWORD>");

This was working with a previous version, but after the upgrade to SQL Server 2019 the error started to be reported.
The same connection from Oracle Gateway for SQL Server works fine. The problem is with  the Java Connection.



Changes

 

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
Changes
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.