1 Reply Latest reply on Jun 14, 2005 5:36 PM by genman

    Hey Need Help

    anupama

      Hey JBoss gurus,

      I finally able to make 2 standalone java classes to send messages to each other through JBoss MQ Topic,it's working fine but since when sender sends message in Pub/Sub client has to be online that means clients that are active when publisher publish message to Topic will receive message(I am using default JNDI name topic/testTopic).....CORRECT ME IF I AM WRONG.

      I found this unreasonable for my specification so tried to use Queue instead of Topic that means I changefd from Pub/Sub to point to point where receiver can get massages even when he is offline during sender send messages to Queue. It worked fine for couple of times but getting weird exception if I run applications multiple times. I am using default JNDI name for Queue which is queue/testQueue.

      Here is the exception log I am getting

      Publishing message: Hello World no. 1
      An exception occured while testing HelloPublisher: org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested throwable: (java.lang.ClassNotFoundException: com.jnetdirect.jsql.x)
      org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested throwable: (java.lang.ClassNotFoundException: com.jnetdirect.jsql.x)
       at org.jboss.mq.Connection.sendToServer(Connection.java:1028)
       at org.jboss.mq.SpySession.sendMessage(SpySession.java:1005)
       at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:265)
       at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:204)
       at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:59)
       at HelloPublisher.publish(HelloPublisher.java:103)
       at HelloPublisher.main(HelloPublisher.java:134)
      Caused by: java.lang.ClassNotFoundException: com.jnetdirect.jsql.x
       at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:219)
       at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:558)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
       at org.jboss.mq.il.uil2.msgs.BaseMsg.read(BaseMsg.java:367)
       at org.jboss.mq.il.uil2.msgs.AddMsg.read(AddMsg.java:53)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:307)
       at java.lang.Thread.run(Thread.java:534)


      Any help will be greatly appreciated. I hope will get response quick.

      I am not guru in J2EE development so my problem may sound silly for gurus I guess.

      Thanks

      Hope get something soon..........

      bye
      takecare


        • 1. Re: Hey Need Help
          genman

          Caused by: java.lang.ClassNotFoundException: com.jnetdirect.jsql.x

          It appears JBoss can't serialize your message. Do you know if this class is in your classpath?