2 Replies Latest reply on Apr 3, 2014 7:28 AM by Krish Lakshmanan

    NoSuchMethodError : org.hornetq.core.buffers.impl.ChannelBufferWrapper.<init>(Lio/netty/buffer/ByteBuf;)V

    Krish Lakshmanan Newbie

      I am trying to create an hornetQ connection and session which is working fine in my local SYSTEM server.

      But the same configuration is not working under different system, am getting error as java.lang.NoSuchMethodError when I create an hornetq connection by calling the below line.

       

      connection=new HornetQConnectionFactory(false, transportConfiguration).createConnection();

       

      Server versions :

      HornetQ version = hornetq-2.4.0.Final

      Jboss version = jboss-as-7.1.1.Final

       

      Jar version used in application :

      hornetq-core-client = 2.4.1.Final

      hornetq-jms-client = 2.4.1.Final

      hornetq-commons=  2.4.1.Final

      hornetq-jms = 2.2.21.Final

      hornetq-core = 2.2.21.Final

       

      Server log :

       

      07:33:33,016 WARN  [org.atmosphere.cpr.DefaultBroadcaster] (MSC service thread 1-3) org.atmosphere.cpr.BroadcasterCache.strategy is no longer supported. Use BroadcastInterceptor instead. By default the original message will be cached.

      07:33:33,026 ERROR [stderr] (MSC service thread 1-4) 2014-03-29 07:33:33.004 INFO net.spy.memcached.MemcachedConnection:  Added {QA sa=/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue

      07:33:33,027 TRACE [com.notification.broadcaster.EserveJMSBroadcaster] (MSC service thread 1-3) ************JMSBroadcater-setup*****************

      07:33:37,893 ERROR [org.atmosphere.cpr.AtmosphereFramework] (MSC service thread 1-3) Failed to initialize Atmosphere Framework: org.atmosphere.cpr.DefaultBroadcasterFactory$BroadcasterCreationException: java.lang.NoSuchMethodError: org.hornetq.core.buffers.impl.ChannelBufferWrapper.<init>(Lio/netty/buffer/ByteBuf;)V

        at org.atmosphere.cpr.DefaultBroadcasterFactory.createBroadcaster(DefaultBroadcasterFactory.java:147) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.DefaultBroadcasterFactory.lookup(DefaultBroadcasterFactory.java:208) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.DefaultBroadcasterFactory.lookup(DefaultBroadcasterFactory.java:182) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.DefaultBroadcasterFactory.lookup(DefaultBroadcasterFactory.java:177) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.AtmosphereFramework.info(AtmosphereFramework.java:777) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:733) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:614) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:91) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:80) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

      Caused by: java.lang.NoSuchMethodError: org.hornetq.core.buffers.impl.ChannelBufferWrapper.<init>(Lio/netty/buffer/ByteBuf;)V

        at org.hornetq.core.remoting.impl.netty.NettyConnection.createBuffer(NettyConnection.java:139) [hornetq-core-client-2.4.1.Final.jar:]

        at org.hornetq.core.remoting.impl.netty.NettyConnector$Listener.connectionCreated(NettyConnector.java:1041) [hornetq-core-client-2.4.1.Final.jar:]

        at org.hornetq.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:778) [hornetq-core-client-2.4.1.Final.jar:]

        at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1264) [hornetq-core-client-2.4.1.Final.jar:]

        at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:1110) [hornetq-core-client-2.4.1.Final.jar:]

        at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:255) [hornetq-core-client-2.4.1.Final.jar:]

        at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:881) [hornetq-core-client-2.4.1.Final.jar:]

        at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:669) [hornetq-jms-client-2.4.1.Final.jar:]

        at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:112) [hornetq-jms-client-2.4.1.Final.jar:]

        at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:107) [hornetq-jms-client-2.4.1.Final.jar:]

        at com.notification.broadcaster.EserveJMSBroadcaster.setUp(EserveJMSBroadcaster.java:72) [classes:]

        at com.notification.broadcaster.EserveJMSBroadcaster.setID(EserveJMSBroadcaster.java:101) [classes:]

        at org.atmosphere.cpr.DefaultBroadcaster.start(DefaultBroadcaster.java:553) [atmosphere-runtime-2.1.0.jar:2.1.0]

        at org.atmosphere.cpr.DefaultBroadcasterFactory.createBroadcaster(DefaultBroadcasterFactory.java:136) [atmosphere-runtime-2.1.0.jar:2.1.0]

        ... 18 more