2 Replies Latest reply on Dec 10, 2011 10:23 AM by psychok7

    org.jboss.jms.exception.MessagingJMSException: Failed to invoke

    psychok7 Newbie

      hi there, i am trying to create a simple java application creating   an   example   with   two   programs   that   exchange   a   pair   of 

      text  messages. i am using Jboss Developer and JbossESB server. i am following the tutorial that i attached here.

       

      i installed this libraries :

      client/javassist.jar

      client/jbossall-client.jar

      client/log4j.jar

      client/trove.jar

      client/jboss-messaging-client.jar

      deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar

       

      but i get this error:

       

      log4j:WARN No appenders could be found for logger (org.jboss.remoting.transport.socket.MicroSocketClientInvoker).

      log4j:WARN Please initialize the log4j system properly.

      Exception in thread "main" org.jboss.jms.exception.MessagingJMSException: Failed to invoke

                at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)

                at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:198)

                at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)

                at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:80)

                at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)

                at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)

                at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)

                at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)

                at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)

                at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)

                at code.Agent.<init>(Agent.java:24)

                at RunNonTransacted1.main(RunNonTransacted1.java:9)

      Caused by: java.lang.NoSuchMethodError: org.jboss.remoting.Client.connect(Lorg/jboss/remoting/ConnectionListener;Ljava/util/Map;)V

                at org.jboss.jms.client.remoting.JMSRemotingConnection$1.run(JMSRemotingConnection.java:374)

                at java.security.AccessController.doPrivileged(Native Method)

                at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:368)

                at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:165)

                ... 10 more