Replies: 10 comments
-
@aaaygupta, the stack trace doesn't really make sense to me. I cannot think of a way
|
Beta Was this translation helpful? Give feedback.
-
@vy Sorry, for the wrong error stack before I have updated the stack in the description. Please have a look now. |
Beta Was this translation helpful? Give feedback.
-
@aaaygupta, could you try placing |
Beta Was this translation helpful? Give feedback.
-
My guess is that J9 version 28 can not handle the static initialization cycle that starts with the To initialize which starts the initialization of Most modern JVM handle this cycle correctly (I tested the latest Semuru OpenJ9 8 release), but J9 version 28 must not be among them. @aaaygupta, |
Beta Was this translation helpful? Give feedback.
-
@vy
And this is my code
|
Beta Was this translation helpful? Give feedback.
-
Appologies for silly queries as I am new with IBM java. |
Beta Was this translation helpful? Give feedback.
-
@aaaygupta, Log4j version How do you install IBM DB2 11.1? How do you install J9? |
Beta Was this translation helpful? Give feedback.
-
Hi, But it seems this jdk do not have all the required IBM DB2 specific jars. As I got another classnotfoundexception "com.ibm.xml.xlxp.api.jaxp.impl.SAXParserFactoryImpl" |
Beta Was this translation helpful? Give feedback.
-
Hi @vy As per my last comment the issues got resolved after upgrading to IBM java 8 to its latest updated version of Semuru But it seems this jdk do not have all the required IBM DB2 specific jars. As I got another classnotfoundexception "com.ibm.xml.xlxp.api.jaxp.impl.SAXParserFactoryImpl" |
Beta Was this translation helpful? Give feedback.
-
Since it is confirmed that this is not a Log4j bug, I am converting this ticket to a discussion instead. |
Beta Was this translation helpful? Give feedback.
-
Description
I have created a java sample where I am only initializing the logger using LogManager.
Below is my sample code
When executing this code from inside IBM DB2 11.1 using a procedure, I am getting following exception.
Below is my procedure definition.
CREATE or REPLACE PROCEDURE ING_TEST (IN result VARCHAR(100)) LANGUAGE JAVA PARAMETER STYLE JAVA MODIFIES SQL DATA EXTERNAL NAME 'com.test.TestLog!testlog4j' / GRANT EXECUTE ON PROCEDURE ING_TEST TO PUBLIC WITH GRANT OPTION /
When using log4j2 2.23.0 jar everything works fine. But as I replaced log4j2 2.23.1 it starts giving above exception.
Configuration
log4j2 2.23.1
IBM DB2 version 11.1
IBM Java
java version "1.8.0" Java(TM) SE Runtime Environment (build pwa6480sr2fp10-20160108_01(SR2 FP10)) IBM J9 VM (build 2.8, JRE 1.8.0 Windows Server 2016 Datacenter amd64-64 Compressed References 20160106_284759 (JIT enabled, AOT enabled) J9VM - R28_20160106_1341_B284759 JIT - tr.r14.java_20151209_107110.02 GC - R28_20160106_1341_B284759_CMPRSS J9CL - 20160106_284759) JCL - 20151231_01 based on Oracle jdk8u71-b15
Version: [2.23.1]
Operating system: [Windows Server 2016]
JDK: [java version "1.8.0"
Java(TM) SE Runtime Environment (build pwa6480sr2fp10-20160108_01(SR2 FP10))
IBM J9 VM (build 2.8, JRE 1.8.0 Windows Server 2016 Datacenter amd64-64 Compressed References 20160106_284759 (JIT enabled, AOT enabled)
J9VM - R28_20160106_1341_B284759
JIT - tr.r14.java_20151209_107110.02
GC - R28_20160106_1341_B284759_CMPRSS
J9CL - 20160106_284759)
JCL - 20151231_01 based on Oracle jdk8u71-b15]
Beta Was this translation helpful? Give feedback.
All reactions