×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    7210 HttpConnection problem

    Dear all,

    I have a midlet that use a Timer to initiate a new HttpConnection to get data from a servlet whenever the Timer is activated. after running for a few times, the httpConnection.getResponseCode() method throw an IOException.
    Does anyone have such problem in your application??

    Regards,
    joey829

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    101

    RE: 7210 HttpConnection problem

    How large are your responses? I've found that IOExceptions will occur frequently on the Nokia 7210 unless the response size is limited to about 30000 bytes.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    RE: 7210 HttpConnection problem

    each request is around 145 bytes and each response is around 409 bytes. and i've already initiated a separate thread to send and get the Http request.
    but the IOException still happened occassionally.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    RE: 7210 HttpConnection problem

    Yeah, I met this problem many a times.

    It seems to be ruleless, with error message in client console "read0: ioe Connection aborted by peer: JVM_recv in socket input stream read". The relative error message in in server side is:

    2003-01-24 01:51:14 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:86)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
    at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.java:115)
    at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInputStream.java:106)
    at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputStream.java:128)
    at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
    at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpRequestAdapter.java:129)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:195)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
    at java.lang.Thread.run(Thread.java:484)
    -----------------------------------------------------------------

    I do not think it is because big packages, for the request packages in my midlets are all of small size, only about 20 bytes besides the http head.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •