EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB483945: Failed to Connect to IPS with the IBM Netezza 7.2.1 JDBC Driver in MicroStrategy 2019 and 2020


Ivy Lin

Quality Engineer, Senior • MicroStrategy


This article explains why you get an error when connecting to IPS with the IBM Netezza 7.2.1 JDBC driver. This article also provides a workaround to the error.

Description

Users may be unable to connect to IPS with the IBM Netezza 7.2.1 JDBC driver in Strategy 2019 and 2020. The following error appears when trying to connect:
"Database error <3>: JdbcConnectionWrapper::Connect failed. Disconnected. Error type: Unknown exception. Jdbc operation attempted: Connect."

ka02R000000g5WVQAY_0EM2R000000nJdB.jpeg

In the logs, the error reads:
2019-12-23 02:23:43.044-05:00 [HOST:IP-0AF41444][SERVER:][PID:4820][THR:6704][JdbcWrapper][Error][UID:0][SID:0][OID:0] JdbcUnknowException occur. Error Message: , Java Trace: java.lang.NullPointerException
   at org.netezza.sql.NzConnection$Initializer.handshake(NzConnection.java:2163)
   at org.netezza.sql.NzConnection$Initializer.init(NzConnection.java:2091)
   at org.netezza.sql.NzConnection.open(NzConnection.java:298)
   at org.netezza.datasource.NzDatasource.getConnection(NzDatasource.java:719)
   at org.netezza.datasource.NzDatasource.getConnection(NzDatasource.java:706)
   at org.netezza.Driver.connect(Driver.java:155)
   at com.Strategy.database.Jdbc.JdbcConnection.createConnection(Unknown Source)
   at com.Strategy.database.Jdbc.JdbcConnection.connect(Unknown Source)

Steps to Reproduce

  1. Copy IBM Netezza/IPS JDBC (nzjdbc.jar) driver to the Strategy Installation path.
  2. Establish connection through the Strategy IBM Netezza connector. An error appears.

Why is this happening?


The driver (release 7.2.1.9) depends on the System Property sun.java.command. However, the application is started with JNI calls without that specific system property. This is why you get an exception when establishing connection.

Solution


It's recommended that you replace the driver with a different version, preferably the IPS JDBC driver.
However, if you would like to use the driver with version 7.2.1.9, use the following workaround.

Workaround


Since the error is appearing because the driver depends on the missing System Property sun.java.command, you can add the property configuration in the registry.

Windows 

  1. Open the registry 
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Strategy\JNI Bridge\Config for DataServices\JVM Options].
  2. Load the configuration by downloading the attached .reg file. This file contains the missing configuration.


 

Linux

  1. Edit the registry file MSIReg.reg located at
    <Strategy Install Path>
    \MSIReg.reg
    .
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Strategy\JNI Bridge\Config for DataServices\JVM Options]

  2. Add the configuration
     "OtherOptions"="-Drefine.verbosity=error;-Dsun.java.command=mstr".

Strategy Workstation (Mac)


Edit the registry file (MSIReg.reg) directory located at

/Applications/Strategy Workstation.app/Contents/Frameworks/OneTierDashboardsWindow.framework/Resources/MSIReg.reg
.


Comment

0 comments

Details

Knowledge Article

Published:

December 30, 2019

Last Updated:

December 30, 2019