| Author |
Socket Exception Error
|
balaji rangan
Greenhorn
Joined: May 30, 2006
Posts: 3
|
|
Dear All, Issue:- When applet sends POST data via browser, the server does not receive the same. On checking the Java Console, the following error is displayed. "java.net.SocketException: Unexpected end of file from server" O.S :- Win XP, Service Pack 2 Browser:- I.E 6, Service Pack 2 Applet :- Signed Applet VM :- Sun VM (1.4.2_06) Note:- When MS VM is used, there is no issue, this is only happening with SUN VM. Java Console details given below. Using JRE version 1.4.2_06 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\PKJFinst ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging p: reload proxy configuration q: hide console r: reload policy configuration s: dump system properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to ---------------------------------------------------- save failure counter:0 oldversion = false read failure counter: 0 connectKeyStore: load disk genkey: connect genkey: login clearkeystore: delete item 0 clearkeystore: delete item 1 clearkeystore: delete item 2 clearkeystore: delete item 3 genkey: clear save failure counter:0 genkey: genkey genkey: stop oldversion = false read failure counter: 0 connectKeyStore: load disk genCertReq: connect genCertReq: login genCertReq: getpubkey before restoreprivatekey. failure counter=0 genCertReq: sign req genCertReq: stop 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.doTunneling(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.setProxiedClient(Unknown Source) at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.superConnect(Unknown Source) at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source) at com.arch.carbon.pki.app.a.a(Unknown Source) at com.arch.carbon.pki.app.a.a(Unknown Source) at com.arch.carbon.pki.app.PKIApplet.createCertificates(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source) at sun.plugin.com.MethodDispatcher.invoke(Unknown Source) at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source) at sun.plugin.com.DispatchImpl$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.com.DispatchImpl.invoke(Unknown Source) stop: null obj Appreciate if somebody could let me know why this is happening. TIA. Balaji Rangan
|
 |
Alfonso Franco
Greenhorn
Joined: Jun 03, 2006
Posts: 20
|
|
Hello dear friend java programmer. I think so that you applet need have a port number or socket number specifically to this server that you are describing please tell me more details what is the name server your . I will recompile this again with applet and the html post server to see something different Ok. My Great Alfonso User: francojava e-mail: developfranco@yahoo.com .Thanks. :roll:
|
Alfonso
|
 |
balaji rangan
Greenhorn
Joined: May 30, 2006
Posts: 3
|
|
Hello Alfonso, I have the following scenarios, 1. The connection seems to have been dropped by the server. 2. A non-suuported HTTP version or format was used. - HTTP 1.0 does not issue Status Lines that begin with "HTTP/1.1", so if you expect a different version and it is not there, then this would be an Exception (to the rule). 3. Packets are being dropped without retransmission from the server. 4. Non-Implemented Method (GET, HEAD, POST, TRACE, DELETE, PUT), if you expect to get a POST and in reality get a TRACE, then the line will be different and could possibly cause an error (but an exception?). 5. A timeout or connection was reset. But i have not been able to get to the root cause. Would be great if you could suggest.
|
 |
 |
|
|
subject: Socket Exception Error
|
|
|