on 2022 Jun 08 10:48 AM
We are using SA 17 (before 12,16) with our product Application Server based on Java Application Server wildfly-23.0.0(formerly known as JBoss)
Trying update jconnect jar-files from jconn3(4).jar to new one jconn42.jar. We download jconn42,jar from SAP portal as part of 'SDK for SAP ASE 20.0'
But encounter with problem use jconn42.jar due clash in usage Logger class in jconn42.jar and wildfly-23.0.0.
Problem in jconn42.jar LogUtil.class - createLoggerInstance method is using Logger setParent() method which clash Logger.java setParent() method in wildfly caused SecurityException - "setParent() disallowed"
Have anyone encountred with problem?
How this problem can be solved - required open issue on jconn42.jar ?!?
Thanks in advance , Hanan Brener
Request clarification before answering.
The problem persists in WildFly 35:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sybase.jdbc42.jdbc.SybConnection Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.SecurityException: setParent() disallowed
and we believe it's an issue with the jconn42.jar driver because https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html#setParent-java.util.logging.... explicitly states:
setParent public void setParent(Logger parent) Set the parent for this Logger. This method is used by the LogManager to update a Logger when the namespace changes. It should not be called from application code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
60 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.