Hi,
Is there any specific way I should package an external jar?
I added an external jar to a Java operator as described in http://ibmstreams.github.io/streamsx.documentation/docs/4.1/java/java-op-dev-guide/#referencing-external-libraries
It compiled fine. But I get a runtime error like following.
/opt/ibm/streams/4.2.1.3/java/bin/java -jar /home/xxxxxx/workspace/TestPPPPDataFetchOp/output/application.TestPPPPDataFetchOp/BuildConfig/applicatio
n.TestPPPPDataFetchOp.sab -c
/home/xxxxxx/workspace/TestPPPPDataFetchOp12 Oct 2020 10:58:14.134 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_javaop M[?:com.ibm.streams.operator.internal.
jni.JNIBridge.<init>:-1] - com.ttt.bbbb.PPPP.dao.PPPPDataAccessLayer
12 Oct 2020 10:58:14.135 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_javaop M[?:?:0] - java.lang.NoClassDefFoundError: com.ttt.bbbb.PPPP.dao.PPPPDataAcces
sLayer
12 Oct 2020 10:58:14.135 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_javaop M[?:?:0] - com.ttt.bbbb.PPPP.dao.PPPPDataFetcher.initialize(PPPPDataFetcher.ja
va:70)
12 Oct 2020 10:58:14.136 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_javaop M[?:?:0] - com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initia
lize(OperatorAdapter.java:736)
12 Oct 2020 10:58:14.136 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_javaop M[?:?:0] - com.ibm.streams.operator.internal.jni.JNIBridge.<init>(JNIBridge.jav
a:274)
Exception in thread "Thread-14" java.lang.NoClassDefFoundError: com.ttt.bbbb.PPPP.dao.PPPPDataAccessLayer
at com.ttt.bbbb.PPPP.dao.PPPPDataFetcher.initialize(PPPPDataFetcher.java:70)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:736)
at com.ibm.streams.operator.internal.jni.JNIBridge.<init>(JNIBridge.java:274)
Caused by: java.lang.ClassNotFoundException: com.ttt.bbbb.PPPP.dao.PPPPDataAccessLayer
at java.net.URLClassLoader.findClass(URLClassLoader.java:609)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:850)
at java.lang.ClassLoader.loadClass(ClassLoader.java:829)
at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
... 3 more
12 Oct 2020 10:58:14.142 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_function M[JavaOp.cpp:newBridge:1425] - CDISR5126E: A Java exception occurred at Opera
tor.initialize() during the JavaOp invocation.
12 Oct 2020 10:58:14.148 [119656] ERROR #splapplog,J[0],P[0],PPPPDataFetcher_3,spl_pe M[PEImpl.cpp:logTerminatingException:1994] - CDISR5033E: An exception occurred duri
ng the execution of the PPPPDataFetcher_3 operator. Processing element number 0 is terminating.
12 Oct 2020 10:58:14.149 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_operator M[PEImpl.cpp:handleOperatorFailure:602] - CDISR5030E: An exception occurred d
uring the execution of the PPPPDataFetcher_3 operator. The exception is: A Java exception occurred at Operator.initialize() during the JavaOp invocation.
12 Oct 2020 10:58:14.152 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_pe M[PEImpl.cpp:process:1342] - CDISR5079E: An exception occurred during the processin
g of the processing element. The error is: A Java exception occurred at Operator.initialize() during the JavaOp invocation..
12 Oct 2020 10:58:14.191 [119656] ERROR #splapptrc,J[0],P[0],PPPPDataFetcher_3,spl_operator M[PEImpl.cpp:process:1373] - CDISR5053E: Runtime failures occurred in the fol
lowing operators: PPPPDataFetcher_3.
#OpenSourceOfferings#Streams#Support#SupportMigration