My Oracle Support Banner

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

Last updated on OCTOBER 18, 2022

Applies to:

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


On : version,

There is an error while connecting JDBC  from the Oracle Database 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.




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

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