Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SocketException ??

 
yogesh somavanshi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using HttpUrlConnection object and then stream I/O for making a
connection to url and then reading the complete Html Page.
Does stream I/O or Socketing has to do anything with the personal settings
because when I am logging into my friends Machine with my ID and Password
the java Class which works fine with his ID throws the below exception.
java.net.SocketException: JVM_SetSockOpt() TCP_NODELAY (code=10055)
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(Unknown Source)
at java.net.Socket.setTcpNoDelay(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
Source)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
So waiting for help.
Regards
Yogesh
java.net.SocketException: JVM_SetSockOpt() TCP_NODELAY (code=10055)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic