NullPointerException in message queue!!!
I'm using Sun Message Queue 3 3005Q4. I get the following error in one of the queues. The message size and no of messages is evrything in limit. Can anyone tell what this error is about?
[14/Aug/2006:02:53:44 EDT] [B1065]: Accepting: guest@10.1.4.15:51890->jms:59200. Count=545
[14/Aug/2006:02:54:04 EDT] Internal Error Unable to consume [consumer:0, type=CLIENT_ACKNOWLEDGE]:null:
java.lang.NullPointerException
Thanks
[454 byte] By [
j_ray] at [2007-11-26 9:29:29]

# 1
> I'm using Sun Message Queue 3 3005Q4. I get the
> following error in one of the queues. The message
> size and no of messages is evrything in limit. Can
> anyone tell what this error is about?
>
> [14/Aug/2006:02:53:44 EDT] [B1065]: Accepting:
> guest@10.1.4.15:51890->jms:59200. Count=545
> [14/Aug/2006:02:54:04 EDT] Internal Error Unable to
> consume [consumer:0, type=CLIENT_ACKNOWLEDGE]:null:
> java.lang.NullPointerException
>
> Thanks
My interpretation of that errors is that the acknowledgement mode is null.
Could it be that you did not specify an acknowledgment mode? i.e:
subTopic = BusObjectStore.getTopic(jndiTopicName);
ts = tc.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
tsub = ts.createSubscriber(subTopic);
# 3
> But I use the same jndi code for accessing several
> other queues. All the queues work fine except this
> one that throws up an exception.
>
> Thanks.
I am not refering to the JNDI part; do you explicitly create a session with something like:
ts = tc.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
?
That is all I can think of.