Results 1 to 3 of 3
  1. #1
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    11

    Default problem: java.net.SocketException: Unexpected end of file from server

    i using applet to make request...
    the response is a json string

    exception msg are following
    Java Code:
    Catch IO Exception
    java.net.SocketException: Unexpected end of file from server
    	at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    	at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    	at java.net.URL.openStream(Unknown Source)
    	at chart.generate.TimeSeriesChart.refreshDataSet(TimeSeriesChart.java:95)
    	at chart.generate.TimeSeriesChart.refreshChart(TimeSeriesChart.java:274)
    	at transaction.ResiTransChart.createGUI(ResiTransChart.java:257)
    	at transaction.ResiTransChart.access$4(ResiTransChart.java:121)
    	at transaction.ResiTransChart$1.run(ResiTransChart.java:107)
    	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    	at java.awt.EventQueue.dispatchEvent(Unknown Source)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.run(Unknown Source)
    createGUI didn't successfully complete
    occurs in following code
    Java Code:
    BufferedReader in = null;
    in = new BufferedReader(new InputStreamReader(new URL(this.dataFeedURL).openStream()));
    I would like to know is this may caused by sending large size of string?
    and do anyone know how to solve this?
    Thx
    Last edited by mtyoung; 02-12-2009 at 05:06 AM.

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    11

    Default

    do anyone know the reason why?
    or should i move the thread to other area of this forum?

  3. #3
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    11

    Default

    Looks like the server doesn't want to talk to your applet. Can't say anything else from what you've provided.

Similar Threads

  1. Replies: 3
    Last Post: 05-22-2011, 04:16 PM
  2. Replies: 5
    Last Post: 03-13-2009, 01:45 PM
  3. Replies: 2
    Last Post: 01-15-2009, 10:01 PM
  4. Does any file in an FTP server ends up in an HTTP server?
    By islamfunny in forum CLDC and MIDP
    Replies: 4
    Last Post: 08-15-2008, 05:30 PM
  5. Problem in File Handling in Java
    By getbiplab in forum New To Java
    Replies: 6
    Last Post: 03-31-2008, 01:02 PM

Posting Permissions

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