How do I resolve this Weblogic intermittent java.lang.LinkageError? What are the steps to understanding what it means and fix it?

前端 未结 2 430
囚心锁ツ
囚心锁ツ 2021-01-15 02:50

I have an intermittent linkage error thrown: (That\'s basically all the information I have)

java.lang.LinkageError loader constraint violation: 
  when resol         


        
2条回答
  •  自闭症患者
    2021-01-15 03:20

    Does this mean that I have 2 versions of java.xml.rpc.Service loaded? Is that so?

    Yes.

    How can that happen?

    It happens when you have two classloaders both loading the same class. In your case, the classloaders are instances of different ClassLoader classes:

        java.net.FactoryURLClassLoader
    

    and

        weblogic.utils.classloaders.ChangeAwareClassLoader
    

    what is the way to resolve it?

    I'm not a Weblogic user, but the theoretical solution is to put the JAR file containing the classes in question into the classpath of an common ancestor classloader of the two above.

提交回复
热议问题