NullpointerException in setupClassPath when applying absolute path for jdbcDriverLib
Closed this issue · 1 comments
Operator parameter is using getThisToolkitDir() as prefix since the toolkit provides the jars and toolkit opt dir is different than application directory.
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
Exception in thread "Thread-13" java.lang.NullPointerException
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.setupClassPath(AbstractJDBCOperator.java:480)
at com.ibm.streamsx.jdbc.AbstractJDBCOperator.initialize(AbstractJDBCOperator.java:320)
at com.ibm.streamsx.jdbc.JDBCRun.initialize(JDBCRun.java:417)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:745)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:277)
(stream<Data> dummy; stream <tuple<Data> inTuple, JdbcSqlStatus_T error> errors) = JDBCRun(Data) {
param
jdbcDriverLib: getThisToolkitDir() + "/opt/db2jcc4.jar";
jdbcClassName: "com.ibm.db2.jcc.DB2Driver";
...