0 Replies Latest reply on Nov 21, 2001 7:48 AM by parisd

    msg to queue with JDBC persistence

    parisd

      Hi,

      I have set up a jdbc PersistenceManager (using the web interface after the server has started up to avoid problems with finding the pool, etc.) and a queue on JBoss 2.4.3, and I'm trying to send a msg from a stand-alone Java client (using code more or less copied from the HelloSender25 example). However I get the following (not very helpful) exception:

      org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
      org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
      at org.jboss.mq.Connection.sendToServer(Connection.java:516)
      at org.jboss.mq.SpySession.sendMessage(SpySession.java:398)
      at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:103)
      at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:69)
      at jmstest.queue.HelloSender.send(HelloSender.java:100)
      at jmstest.queue.HelloSender.main(HelloSender.java:130)
      linked exception is:
      java.lang.NullPointerException
      <<no stack trace available>>

      I have tried the UIL, OIL and RMI factories (no transactions). The same code, exactly, works for the other persistence methods. I don't know whether the problems at start-up have anything to do with this (although starting then the PM and queue from the web interface doesn't produce any errors).

      Any help will be greatly appreciated.

      paris