Posted: Mon Feb 21, 2005 6:29 am Post subject: Exception in Message.readFully(byte [])
Newbie
Joined: 02 Feb 2005 Posts: 6 Location: Mumbai
Hi,
I am working on java Cryptoserver in which we need to exchange messages from OS/390 and WIN NT. The requirement is like i should write and read message as bytes from the queue.
The same worked when i wrote message into the queue using Message.write(byte []). but when i try to read the same message using Message.readFully(byte []) i am getting NullPointerException. i want to know whether the message is converted to ascii after writing into the queue or is there any other reason for me getting the exception.
please tell me is there any other way for the same. i am using websphere MQ. please find the exception below.
Exception in thread "main" java.lang.NullPointerException
at java.io.ByteArrayInputStream.read(Unknown Source)
at java.io.DataInputStream.readFully(Unknown Source)
at com.ibm.mq.MQMessage.readFully(MQMessage.java:410)
at J_MQ1.read(J_MQ1.java:85)
at Cntrl.main(Cntrl.java:17)
Thanks in advance! _________________ With Regards,
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum