0 Replies Latest reply on Nov 29, 2001 11:34 AM by Pedro

    Problem creating a new queue

    Pedro Newbie

      Hi ,

      I'm stuck in this problem:

      jboss.xml:

      <?xml version="1.0" encoding="Cp1252"?>

      <enterprise-beans>
      <message-driven>
      <ejb-name>CrmQueueSAX</ejb-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>queue/saxQueue</destination-jndi-name>
      </message-driven>
      </enterprise-beans>


      jboss.jcml:

      (...)





      (...)


      When starting jboss from run.sh:

      (...)
      [PersistenceManager] Starting
      [PersistenceManager] Stopped
      java.lang.NullPointerException:
      at org.jboss.mq.pm.rollinglogged.PersistenceManager.restore(PersistenceManager.java:375)
      at org.jboss.mq.pm.rollinglogged.PersistenceManager.startService(PersistenceManager.java:218)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:221)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      [Configuration] java.lang.NullPointerException:
      [Configuration] at org.jboss.mq.pm.rollinglogged.PersistenceManager.restore(PersistenceManager.java:375)
      [Configuration] at org.jboss.mq.pm.rollinglogged.PersistenceManager.startService(PersistenceManager.java:218)
      [Configuration] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Configuration] at java.lang.reflect.Method.invoke(Native Method)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Configuration] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Configuration] at $Proxy0.start(Unknown Source)
      [Configuration] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Configuration] at java.lang.reflect.Method.invoke(Native Method)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Configuration] at org.jboss.Main.(Main.java:221)
      [Configuration] at org.jboss.Main$1.run(Main.java:127)
      [Configuration] at java.security.AccessController.doPrivileged(Native Method)
      [Configuration] at org.jboss.Main.main(Main.java:123)
      [JVMServerILService] Starting
      [JVMServerILService] Started
      [RMIServerILService] Starting
      [RMIServerILService] Started
      [OILServerILService] Starting
      [OILServerILService] JBossMQ OIL service available at : 0.0.0.0/0.0.0.0:19770
      [OILServerILService] Started
      [UILServerILService] Starting
      [UILServerILService] JBossMQ UIL service available at : 0.0.0.0/0.0.0.0:40857
      [UILServerILService] Started


      (...)

      Now , when i send a new message to the queue i get this error on Jboss:

      [Container factory] Deployed application: file:/usr/local/jdk1.3.1-linux/JBoss-2.4.3/tmp/deploy/Default/CrmSAX.jar
      [J2EE Deployer Default] J2EE application: file:/usr/local/jdk1.3.1-linux/JBoss-2.4.3/deploy/CrmSAX.jar is deployed.



      [OILServerILService] Client request resulted in a server exception:
      java.lang.NullPointerException:
      at org.jboss.mq.pm.rollinglogged.PersistenceManager.add(PersistenceManager.java:240)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:36)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:100)
      at org.jboss.mq.server.JMSServer.addMessage(JMSServer.java:250)
      at org.jboss.mq.server.JMSServer.addMessage(JMSServer.java:237)
      at org.jboss.mq.il.oil.OILServerILService.run(OILServerILService.java:225)
      at java.lang.Thread.run(Thread.java:484)

      And this error in the client:
      crm-sender-sax:
      [echo] Using resources from: /home/pedro/jazznet/crm/resources
      [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 jazztel.jboss.crm.client.CrmSender.send(CrmSender.java:98)
      [java] at jazztel.jboss.crm.client.CrmSenderSax.main(CrmSenderSax.java:142)
      [java] linked exception is:
      [java] java.lang.NullPointerException:


      ...
      If i don't define any queue , i got only this warning:
      [Container factory] Deploying CrmQueueSAX
      [JMSContainerInvoker] destination not found: queue/saxQueue reason: javax.naming.NameNotFoundException: saxQueue not bound
      [JMSContainerInvoker] creating a new temporary destination: queue/saxQueue

      And everything works fine...

      Please help...

      Regards
      Pedro