Question
Standard Chartered Bank
IN
Last activity: 7 Aug 2023 10:34 EDT
java.lang.LinkageError: loader constraint violation Exception post upgrade to Pega 8.5.1
Hi, After upgrading from Pega 7.3.1 to Pega 8.5.1 we are seeing the below exception while executing an operation involving an external jar file. We have imported all external jars using Pega import . We tried removing/disabling httpclient and any other external jar if present else where in the server to avoid the conflicts but the issue remain. Any help appreciated!!
java.lang.LinkageError: loader constraint violation: loader (instance of com/pega/pegarules/bootstrap/loader/PRAppLoader) previously initiated loading for a different type with name "org/apache/commons/httpclient/HttpClient"
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_252]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_252]
at com.pega.pegarules.bootstrap.loader.PRAppLoader.findClassInternal(PRAppLoader.java:830) ~[prbasejava6.jar:?]
at com.pega.pegarules.bootstrap.loader.PRAppLoader.findClass(PRAppLoader.java:373) ~[prbasejava6.jar:?]
at com.pega.pegarules.bootstrap.loader.PRAppLoader.loadClassInternal(PRAppLoader.java:700) ~[prbasejava6.jar:?]
Hi, After upgrading from Pega 7.3.1 to Pega 8.5.1 we are seeing the below exception while executing an operation involving an external jar file. We have imported all external jars using Pega import . We tried removing/disabling httpclient and any other external jar if present else where in the server to avoid the conflicts but the issue remain. Any help appreciated!!
java.lang.LinkageError: loader constraint violation: loader (instance of com/pega/pegarules/bootstrap/loader/PRAppLoader) previously initiated loading for a different type with name "org/apache/commons/httpclient/HttpClient"
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_252]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_252]
at com.pega.pegarules.bootstrap.loader.PRAppLoader.findClassInternal(PRAppLoader.java:830) ~[prbasejava6.jar:?]
at com.pega.pegarules.bootstrap.loader.PRAppLoader.findClass(PRAppLoader.java:373) ~[prbasejava6.jar:?]
at com.pega.pegarules.bootstrap.loader.PRAppLoader.loadClassInternal(PRAppLoader.java:700) ~[prbasejava6.jar:?]
at com.pega.pegarules.bootstrap.loader.PRAppLoader.loadClass(PRAppLoader.java:625) ~[prbasejava6.jar:?]
at com.pega.pegarules.bootstrap.loader.PRAppLoader.loadClass(PRAppLoader.java:550) ~[prbasejava6.jar:?]
at com.scb.util.CSHTTPClientPool.<init>(CSHTTPClientPool.java:15) ~[CSClient-8.0.jar:?]
at com.scb.util.Communicator.<init>(Communicator.java:70) ~[CSClient-8.0.jar:?]
at com.scb.cs.client.CS.getCommunicator(CS.java:282) ~[CSClient-8.0.jar:?]
at com.scb.cs.client.CS.requestTokenJSON(CS.java:355) ~[CSClient-8.0.jar:?]
at com.scb.cs.client.CS.requestToken(CS.java:311) ~[CSClient-8.0.jar:?]