3 Replies Latest reply on Dec 23, 2008 9:04 AM by Yong Hao Gao

    Examples failed on JB-4.2.3.GA and JB-Messaging-1.4.0.SP3

    Srinivas Retneni Newbie

      Hi

      I am integrated the JBM-1.4.0.sp3 with JB-4.2.3.GA clustered environment.

      Some of the Examples failed while testing.

      Bridge Example


      Buildfile: build.xml

      identify:
      [echo] ####################################################################
      #######
      [echo] # Running the BRIDGE example
      #
      [echo] ####################################################################
      #######
      [echo] The queue: ${example.queue.name}
      [echo] The client jar: ../..//jboss-messaging-client.jar

      sanity-check:

      init:

      compile:

      deploy:
      [copy] Copying 1 file to D:\JBoss-4.2.3.GA\server\messaging-node0\deploy

      sleep:
      [echo] Sleeping for 5 seconds ...

      run:
      [java] Queue JBossQueue[A] exists
      [java] Queue JBossQueue[B] exists
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] The message was successfully sent to the A queue
      [java] java.lang.NullPointerException
      [java] at org.jboss.example.jms.bridge.BridgeExample.example(BridgeExam
      ple.java:98)
      [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
      t.java:147)
      [java] at org.jboss.example.jms.bridge.BridgeExample.main(BridgeExample
      .java:147)
      [java]
      [java] #####################
      [java] ### FAILURE! ###
      [java] #####################

      Distrubuted Queue Example




      identify:
      [echo] ####################################################################
      #######
      [echo] # Running the DISTRIBUTED QUEUE example
      #
      [echo] ####################################################################
      #######
      [echo] The queue: testDistributedQueue
      [echo] The client jar: ../..//jboss-messaging-client.jar

      sanity-check:

      init:
      [mkdir] Created dir: D:\softwares\jboss-messaging-1.4.0.SP3\examples\distrib
      uted-queue\output\classes

      compile:
      [javac] Compiling 2 source files to D:\softwares\jboss-messaging-1.4.0.SP3\e
      xamples\distributed-queue\output\classes

      run:
      [java] Distributed queue /queue/testDistributedQueue exists
      [java] java.lang.RuntimeException: Assertion failed, 0 == 0
      [java] at org.jboss.example.jms.common.ExampleSupport.assertNotEquals(E
      xampleSupport.java:85)
      [java] at org.jboss.example.jms.distributedqueue.DistributedQueueExampl
      e.example(DistributedQueueExample.java:83)
      [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
      t.java:147)
      [java] at org.jboss.example.jms.distributedqueue.DistributedQueueExampl
      e.main(DistributedQueueExample.java:167)
      [java]
      [java] #####################
      [java] ### FAILURE! ###
      [java] #####################



      Distributed Topic Example



      identify:
      [echo] ####################################################################
      #######
      [echo] # Running the DISTRIBUTED TOPIC example
      #
      [echo] ####################################################################
      #######
      [echo] The topic: testDistributedTopic
      [echo] The client jar: ../..//jboss-messaging-client.jar

      sanity-check:

      init:
      [mkdir] Created dir: D:\softwares\jboss-messaging-1.4.0.SP3\examples\distrib
      uted-topic\output\classes
      [mkdir] Created dir: D:\softwares\jboss-messaging-1.4.0.SP3\examples\output\
      classes

      compile:
      [javac] Compiling 2 source files to D:\softwares\jboss-messaging-1.4.0.SP3\e
      xamples\distributed-topic\output\classes

      run:
      [java] Distributed topic /topic/testDistributedTopic exists
      [java] java.lang.RuntimeException: Assertion failed, 0 == 0
      [java] at org.jboss.example.jms.common.ExampleSupport.assertNotEquals(E
      xampleSupport.java:85)
      [java] at org.jboss.example.jms.distributedtopic.DistributedTopicExampl
      e.example(DistributedTopicExample.java:82)
      [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
      t.java:147)
      [java] at org.jboss.example.jms.distributedtopic.DistributedTopicExampl
      e.main(DistributedTopicExample.java:180)
      [java]
      [java] #####################
      [java] ### FAILURE! ###
      [java] #####################


      Queue Failover Example


      identify:
      [echo] ####################################################################
      #######
      [echo] # Running the QUEUE FAILOVER example
      #
      [echo] ####################################################################
      #######
      [echo] The queue: testDistributedQueue
      [echo] The client jar: ../..//jboss-messaging-client.jar

      sanity-check:

      init:

      compile:

      jar:

      deploy:

      sleep:
      [echo] Sleeping for 5 seconds ...

      run:
      [java] Distributed queue /queue/testDistributedQueue exists
      [java] The messages were successfully sent to the distributed queue
      [java] Received message: Hello2!
      [java] java.lang.RuntimeException: Assertion failed, Hello1! != Hello2!
      [java] at org.jboss.example.jms.common.ExampleSupport.assertEquals(Exam
      pleSupport.java:65)
      [java] at org.jboss.example.jms.failover.QueueFailoverExample.example(Q
      ueueFailoverExample.java:106)
      [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
      t.java:147)
      [java] at org.jboss.example.jms.failover.QueueFailoverExample.main(Queu
      eFailoverExample.java:160)
      [java]
      [java] #####################
      [java] ### FAILURE! ###
      [java] #####################

      Web Services Example


      identify:
      [echo] ####################################################################
      #######
      [echo] # Running the WebServices example
      #
      [echo] ####################################################################
      #######
      [echo] The queue: testQueue
      [echo] The client jar: ../..//jboss-messaging-client.jar

      sanity-check:

      init:

      compile:

      war:

      deploy:

      sleep:
      [echo] Sleeping for 10 seconds ...

      run-wsdl-client:
      [get] Getting: http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?
      wsdl
      [get] To: D:\softwares\jboss-messaging-1.4.0.SP3\examples\web-service\outp
      ut\service.wsdl
      [get] Error getting http://127.0.0.1:8080/jms-web-service/JMSWebServiceExa
      mple?wsdl to D:\softwares\jboss-messaging-1.4.0.SP3\examples\web-service\output\
      service.wsdl

      BUILD FAILED
      java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.Socket.connect(Socket.java:519)
      at java.net.Socket.connect(Socket.java:469)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
      at sun.net.www.http.HttpClient.(HttpClient.java:233)
      at sun.net.www.http.HttpClient.New(HttpClient.java:306)
      at sun.net.www.http.HttpClient.New(HttpClient.java:323)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
      onnection.java:788)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
      ction.java:729)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
      .java:654)
      at org.apache.tools.ant.taskdefs.Get.doGet(Get.java:145)
      at org.apache.tools.ant.taskdefs.Get.execute(Get.java:78)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
      a:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
      cutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
      at org.apache.tools.ant.Main.runBuild(Main.java:758)
      at org.apache.tools.ant.Main.startAnt(Main.java:217)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


      Why it is not running the some of the Example provided along with the JBM-1.4.0.sp3

      Any suggestions to overcome this problem welcome.

      thanks in advance

      Srinivas