2 Replies Latest reply on Nov 23, 2009 10:46 PM by gaohoward

    Another Exception

      I'm getting the following exception when running a simple queue example. The problem is that the code is trying to invoke a constructor in org.jboss.remoting.Client that does not exist. I'm running jboss messaging 1.4.5.GA and jboss 4.2.3GA.




      org.jboss.jms.exception.MessagingJMSException: Failed to invoke Does the queue exist?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.createTopicConnection(JBossConnectionFactory.java:115)
      at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)
      at com.gdit.listener.JMSExample.testMessage(JMSExample.java:36)
      at com.gdit.listener.JMSExample.main(JMSExample.java:20)
      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

        • 1. Re: Another Exception

          This problem apparently is caused by the use of the jar files from jboss-messaging 1.45. I went back to 1.42 and I no longer get the error and my program run farther. Though another exception occurs:

          javax.jms.JMSException: The consumer has a MessageListener set, cannot call receive(..)
          at org.jboss.jms.client.container.ClientConsumer.receive(ClientConsumer.java:490)
          at org.jboss.jms.client.container.ConsumerAspect.handleReceive(ConsumerAspect.java:194)
          at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect52.invoke(ConsumerAspect52.java)
          at org.jboss.jms.client.delegate.ClientConsumerDelegate$receive_N8299950230150603585.invokeNext(ClientConsumerDelegate$receive_N8299950230150603585.java)
          at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
          at org.jboss.jms.client.delegate.ClientConsumerDelegate$receive_N8299950230150603585.invokeNext(ClientConsumerDelegate$receive_N8299950230150603585.java)
          at org.jboss.jms.client.delegate.ClientConsumerDelegate.receive(ClientConsumerDelegate.java)
          at org.jboss.jms.client.JBossMessageConsumer.receive(JBossMessageConsumer.java:86)
          at com.gdit.listener.JMSExample.testMessage(JMSExample.java:49)
          at com.gdit.listener.JMSExample.main(JMSExample.java:20)

          • 2. Re: Another Exception
            gaohoward

            You need to update jboss-remoting.jar to the correct version. See the user guide in 1.4.5.GA for it.

            Howard