when you receive String across net String index out of range: -17
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   satyendra_adhikari
Posted On:   Thursday, December 27, 2001 10:57 PM

hello!
i am facing above exception the scene is..

String msg//read over network via URLCOnnection

byte b[]=msg.getBytes();
InputStream in=new ByteArrayInputStream(b);

MessageFactory mf =some code here/////
java,util.Collection msgs = mf.generateMessages(in);



the code runs niceley if i run it in a same programme passing string as a argument to some method call

what is the reason for this or any better way doing it

Thanks in advance for your help.

Re: when you receive String across net String index out of range: -17

Posted By:   satyendra_adhikari  
Posted On:   Friday, December 28, 2001 12:25 AM

i will like to add to above quetion that the String i am getting across network is through xml (writing xml at client to server and parsing at server) not through ObjectInputStream..however in case i use OIS it works fine.
About | Sitemap | Contact