IllegalStateException

Hello,

When I am trying to send data from mobile to server data is successfully transfer to server but it gives an error message on mobile side that "Uncaught exception: IllegalStateException"

This exception is occured on line,

connection.openDataInputStream();

I write this code in try catch block but after that, it gives the same error message.

Can anybody know, what is the reason behind that?

[434 byte] By [Smita_Jadhava] at [2007-11-27 11:47:01]
# 1

You probably try to reopen the stream after you already opened it. That is not possible due to the nature of http.

deepspacea at 2007-7-29 18:10:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Yes, you are write I am trying to reopen the inputStream. But it doesn't given an error message for all records, it only gives an error while receiving last records acknowlegement.

Smita_Jadhava at 2007-7-29 18:10:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...