J2ME - Tomcat Server

Hello,

I am using a Tomcat Server for a J2ME app that sends an HTTP Post request to the Tomcat Server. The Tomcat Server does some back end-processing and prints a response to the J2ME app.

However,occaisionally on my phone I get an error message: Error 500 with the following details:

HTTP Status 500

Exception Report Message Description

The server encountered an internal error that prevented it from fulfilling this reqest.

Exception: java.io.EOFException

java.io.DataInputStream.readUnsignedShort(DataInputStream.java:400)

java.io.DataInputStream.readUTF(DataInputStream.java:633)

java.io.DataInputStream.readUTF(DataInputStream.java:610)

trans.doPost(trans.java:85)

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

filters.ExampleFilter.doFilter(ExampleFilter.java:101)

Any help on this will be most appreciated.

[990 byte] By [Ujwal_Phonona] at [2007-10-3 3:20:18]
# 1
Please, post some of the relevant midlet code...
deepspacea at 2007-7-14 21:12:31 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
I got it working. The inputstream on midlet was not closed causing the problem.
Ujwal_Phonona at 2007-7-14 21:12:31 > top of Java-index,Java Mobility Forums,Java ME Technologies...