6 Replies Latest reply on Jun 9, 2009 12:00 PM by gaohoward

    5.1.0.GA and Messaging 1.4.4 samples doesn't works

    goodidea

      Buildfile: build.xml

      identify:
      [echo] ###########################################################################
      [echo] # Running the TOPIC example #
      [echo] ###########################################################################
      [echo] The topic: testTopic
      [echo] The client jar: ../../../output/lib/jboss-messaging-client.jar

      sanity-check:

      init:

      compile:

      run:
      [java] Topic /topic/testTopic exists
      [java] 17:30:40,744 WARN @main [MicroSocketClientInvoker] numberOfRetries is no longer used
      [java] org.jboss.jms.exception.MessagingJMSException: Failed to invoke
      [java] at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)
      [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:198)
      [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
      [java] at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:80)
      [java] at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_24216257.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_24216257.java)
      [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
      [java]
      [java] Please verify if you have access to the server. If you are using JBossEAP maybe you don't have security access
      [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
      [java] at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
      [java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
      [java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
      [java] at org.jboss.example.jms.topic.TopicExample.example(TopicExample.java:67)
      [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:147)
      [java] at org.jboss.example.jms.topic.TopicExample.main(TopicExample.java:132)
      [java] Caused by: java.lang.NoSuchMethodError: org.jboss.remoting.Client.connect(Lorg/jboss/remoting/ConnectionListener;Ljava/util/Map;)V
      [java] at org.jboss.jms.client.remoting.JMSRemotingConnection$1.run(JMSRemotingConnection.java:362)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:356)
      [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:165)
      [java] ... 11 more
      [java]
      [java] #####################
      [java] ### FAILURE! ###
      [java] #####################

      BUILD FAILED

        • 1. Re: 5.1.0.GA and Messaging 1.4.4 samples doesn't works
          rnicholson10

          5.1.0.GA comes with Messaging 1.3. It's probably why the 1.4 examples fail to work.

          • 2. Re: 5.1.0.GA and Messaging 1.4.4 samples doesn't works
            gaohoward

            5.1.0.GA has 1.4.3.GA pre-installed. 1.4.4.GA is release for JBoss AS 4.x.

            • 3. Re: 5.1.0.GA and Messaging 1.4.4 samples doesn't works
              goodidea

              Where to get src for messaging 1.4.3? I tested 1.4.2 src approach it doesn't work.
              I've got error:

              java.lang.RuntimeException: Failed to download and/or install client side AOP stack
              at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:199)
              at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:101)
              at ru.goodidea.client.jms.ConnectionFactory.connect(ConnectionFactory.java:140)
              at ru.goodidea.client.jms.Main.process(Main.java:39)
              at ru.goodidea.client.jms.Main.main(Main.java:29)
              Caused by: org.jboss.jms.exception.MessagingNetworkFailureException: Failed to connect client
              at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:313)
              at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:232)
              at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java)
              at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:75)
              at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192)
              ... 4 more
              Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:453)
              at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:352)
              at org.jboss.remoting.Client.connect(Client.java:512)
              at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:309)
              ... 8 more
              Caused by: java.lang.NoSuchMethodError: org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(Ljava/lang/Object;Ljava/util/Properties;Z)V
              at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.mapJavaBeanProperties(MicroSocketClientInvoker.java:1280)
              at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:496)
              at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.(MicroSocketClientInvoker.java:275)
              at org.jboss.remoting.transport.socket.SocketClientInvoker.(SocketClientInvoker.java:78)
              at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.(BisocketClientInvoker.java:164)
              at org.jboss.remoting.transport.bisocket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:44)
              ... 16 more
              END!!!

              • 5. Re: 5.1.0.GA and Messaging 1.4.4 samples doesn't works
                goodidea

                Thanks a lot!
                Queue sample works for me, except discrepancy in build.xml.
                Please rewrite all build.xml in sample to match with JBOSS 5 file structure.

                • 6. Re: 5.1.0.GA and Messaging 1.4.4 samples doesn't works
                  gaohoward

                  hi, in order to solve the issue, a jira is created:

                  https://jira.jboss.org/jira/browse/JBMESSAGING-1644