2 Replies Latest reply on Sep 24, 2001 10:23 AM by Darrin May

    hello sender example not working

    Darrin May Newbie

      I have successfully run the hello-publisher example, but when attempting to run the "hello sender" example via ant, I get the following error relating to a null pointer exception. Any ideas?:

      validate:

      fail_if_not_valid:

      init:
      [echo] Using JBoss directory=d:\JBoss-2.4.1
      [echo] Using base classpath=D:\JBoss-2.4.1\client\jboss-j2ee.jar;D:\JBoss-2.4.1\client\jaas.jar;D:\JBoss-2.4.1\client\jbosssx-client.jar;D:\JBoss-2.4.1\client\jboss-client.jar;D:\JBoss-2.4.1\client\jnp-client.jar;D:\tomcat\lib\servlet.jar
      [echo] Using Source directory=D:\JBoss-2.4.1\examples
      [echo] Using Build directory=D:\JBoss-2.4.1\examples/build-examples

      jms-hello-sender:

      validate:

      fail_if_not_valid:

      init:
      [echo] Using JBoss directory=d:\JBoss-2.4.1
      [echo] Using base classpath=D:\JBoss-2.4.1\client\jboss-j2ee.jar;D:\JBoss-2.4.1\client\jaas.jar;D:\JBoss-2.4.1\client\jbosssx-client.jar;D:\JBoss-2.4.1\client\jboss-client.jar;D:\JBoss-2.4.1\client\jnp-client.jar;D:\tomcat\lib\servlet.jar
      [echo] Using Source directory=D:\JBoss-2.4.1\examples
      [echo] Using Build directory=D:\JBoss-2.4.1\examples/build-examples

      compile:

      jms-hello-sender:
      [echo] Using resources from: D:\JBoss-2.4.1\examples/resources
      [java] Sending message: Hello World no. 1
      [java] An exception occured while testing HelloSender: org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
      [java] org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
      [java] at org.jboss.mq.Connection.sendToServer(Connection.java:515)
      [java] at org.jboss.mq.SpySession.sendMessage(SpySession.java:398)
      [java] at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:103)
      [java] at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:69)
      [java] at org.jboss.docs.jms.client.HelloSender.send(HelloSender.java:98)
      [java] at org.jboss.docs.jms.client.HelloSender.main(HelloSender.java:129)
      [java] linked exception is:
      [java] java.lang.NullPointerException
      [java] <<no stack trace available>>