aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes SocketException ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "SocketException ?" Watch "SocketException ?" New topic
Author

SocketException ?

yogesh somavanshi
Greenhorn

Joined: Jan 11, 2002
Posts: 6
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

Joined: Jan 06, 2002
Posts: 111
You'd better post the source codes.


" Veni, vidi, vici "<br />" I came, I saw, I conquered "
 
 
subject: SocketException ?
 
Threads others viewed
Simulating browser in a application
java.net.ConnectException
java Scanner
java.net.ConnectException help me
SocketException ??
jQuery in Action, 2nd edition