6 Replies Latest reply on Jul 21, 2016 1:44 AM by Priyanka Asthana

    Exception in thread "management task-3" java.lang.LinkageError: loader constraint violation

    Priyanka Asthana Newbie

      Hi,

      I need urgent help to fix the following issue.

      I am using Wildfly10 .Final  in domain mode. I downloaded source code of corresponding wildfly-core-2.0.10.Final that is integrated with Wildfly10.0.0.Final

      I added few log messages in controller module in wildfly-core-2.0.10.Final .

      After I swapped wildfly-controller-2.0.10.Final.jar in modules/system/layers/base/org/jboss/as/controller/main/     and  started Wildfly in domain mode , I am getting the following errors while starting servers

      java.lang.LinkageError: loader constraint violation: when resolving meth

      od "org.jboss.as.protocol.mgmt.ManagementChannelHandler.addHandlerFactory(Lorg/j

      boss/as/protocol/mgmt/ManagementRequestHandlerFactory;)V" the class loader (inst

      ance of org/jboss/modules/ModuleClassLoader) of the current class, org/jboss/as/

      host/controller/mgmt/ServerToHostOperationHandlerFactoryService, and the class l

      oader (instance of org/jboss/modules/ModuleClassLoader) for the method's definin

      g class, org/jboss/as/protocol/mgmt/ManagementChannelHandler, have different Cla

      ss objects for the type org/jboss/as/protocol/mgmt/ManagementRequestHandlerFacto

      ry used in the signature

      20:03:42,742 ERROR [stderr] (management task-3)    at org.jboss.as.host.controll

      er.mgmt.ServerToHostOperationHandlerFactoryService.startReceiving(ServerToHostOp

      erationHandlerFactoryService.java:118)

      20:03:42,742 ERROR [stderr] (management task-3)    at org.jboss.as.host.controll

      er.mgmt.ServerToHostOperationHandlerFactoryService.startReceiving(ServerToHostOp

      erationHandlerFactoryService.java:57)

      20:03:42,743 ERROR [stderr] (management task-3)    at org.jboss.as.remoting.mana

      gement.ManagementChannelOpenListenerService.handleChannelOpened(ManagementChanne

      lOpenListenerService.java:58)

      20:03:42,744 ERROR [stderr] (management task-3)    at org.jboss.as.remoting.Abst

      ractChannelOpenListenerService.channelOpened(AbstractChannelOpenListenerService.

      java:175)

      20:03:42,745 ERROR [stderr] (management task-3)    at org.jboss.remoting3.spi.Sp

      iUtils$ServiceOpenTask.run(SpiUtils.java:126)

      20:03:42,746 ERROR [stderr] (management task-3)    at org.jboss.remoting3.Endpoi

      ntImpl$TrackingExecutor$1.run(EndpointImpl.java:717)

      20:03:42,746 ERROR [stderr] (management task-3)    at java.util.concurrent.Threa

      dPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      20:03:42,747 ERROR [stderr] (management task-3)    at java.util.concurrent.Threa

      dPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      20:03:42,748 ERROR [stderr] (management task-3)    at java.lang.Thread.run(

       

      Server logs are attached as well. Guidance to resolve this will be appreciated