This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SocketException ?  RSS feed

 
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)
One thing is sure that I am able to connect to the respective url, only while reading its content it throws the above Exception ?
Waiting for help.
Regards
Yogesh
 
Laudney Ren
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd better post the source codes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!