Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003

    SocketException: Connection reset in MMSender.send()... pls. help...

    Hi all,
    My company applied a MMSC from Nokia for testing. I use the
    "OriginatingApp.java" provided by Nokia MMS Java Library sample to test out the connection.

    I have set the url to point to the testing MMSC using the
    "sender.setMMSCURL(<test mmsc url>" method inside the OriginatingApp.java. I got below error when I run the OriginatingApp.java

    "java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:741)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:702)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:712)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream
    at java.net.HttpURLConnection.getResponseCode
    at com.nokia.mms.MMSender.send(MMSender.java:172)
    at com.nokia.mms.MMSender.send(MMSender.java:99)
    at OriginatingApp.<init>(OriginatingApp.java:32)
    at OriginatingApp.main(OriginatingApp.java:133)
    Connection reset"

    Its seem like the error come from the MMSender.java - responseCode = connection.getResponseCode(); and the MMSC didnt give any response back to the application. Please advice...

    Thanks for your time.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Texas, USA

    RE: SocketException: Connection reset in MMSender.send()... pls. help...


    I have tried to re-create your error, but was not able to get a similar error message.
    Usually, when there is something wrong with the connection (not activated, configured incorrectly, etc.), you will get this kind of error:
    "java.net.ConnectException: Connection refused: connect"

    Which Nokia Lab are you using for testing (US, Europe, or Asia)?

    Here are things you can check:

    -- Have you run this Application with the EAIF Emulator and gotten an OK Response? But I'm sure you've already done this.

    -- Make sure you have ordered and are using the correction configuration for the MMSC Connection from the Nokia Developer Hub Service... Originating, correct Port#, etc. (This is unlikely problem, but good to check anyway.)

    -- Maybe this error is due to the closing of the connection by the lab's firewall. Have you informed the Nokia Lab of your Application Server IP Address? You need to be using the same IP Address that you gave in the "Nokia Developer Hub Service Order Form".

    Good Luck and have fun!

Posting Permissions

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