Can you post your partial source code ? It's hard to tell what's wrong.
>>> Vikramjit Singh <[EMAIL PROTECTED]> 08/29/02 06:02AM >>>
Hi all,
I am running an example on JMS using weblogic 6.0. I am successfully able to
send messages in a queue without getting any exception.
but when i have to receive them when the while loop runs, when i just get
two messages printed on the console i get the following error
Receiving messages...
Receiving text message: Message # 5
Receiving text message: Message # 6
weblogic.jms.common.IllegalStateException: Consumer is closed
at weblogic.jms.client.JMSConsumer.checkClosed(JMSConsumer.java:336)
at weblogic.jms.client.JMSConsumer.receive(JMSConsumer.java:280)
at
weblogic.jms.client.JMSConsumer.receiveNoWait(JMSConsumer.java:266)
at ejb.jms.bible.SyncQueueReceiver.main(SyncQueueReceiver.java:36)
java.lang.NullPointerException
at ejb.jms.bible.SyncQueueReceiver.main(SyncQueueReceiver.java:50)
Could anybody tell me the reason.
Regards,
Vikramjit Singh,
GTL Ltd.
Ph. 7612929-1059
Albert Pi
Corp IS System Delivery
516-803-3762
==========================================================================To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".