P
Peter D.
java.net.ConnectException: Invalid argument
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:
333)
at java.net.PlainSocketImpl.connectToAddress
(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
...
I have a simple program that can send and receive UDP data via sockets
with Java. In windows this app works perfectly but on Ubuntu 8.04 I
get this error. I don't seem to be the only one with this issue as
there are a couple of pages on this from google. No one seems to have
any idea as to why this is happening but from my research there seems
to be a pattern. This seems to be affecting people using the JDK6 and
some sort of UNIX operating system but not everyone. I have tried
suggestions like forcing ipv4 on the jvm and testing small main
classes to see if it's something with my code but this seems to happen
on all socket connections.
In my case I am using:
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
On Ubuntu 8.04.
I would be grateful for any ideas or suggestions.
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:
333)
at java.net.PlainSocketImpl.connectToAddress
(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
...
I have a simple program that can send and receive UDP data via sockets
with Java. In windows this app works perfectly but on Ubuntu 8.04 I
get this error. I don't seem to be the only one with this issue as
there are a couple of pages on this from google. No one seems to have
any idea as to why this is happening but from my research there seems
to be a pattern. This seems to be affecting people using the JDK6 and
some sort of UNIX operating system but not everyone. I have tried
suggestions like forcing ipv4 on the jvm and testing small main
classes to see if it's something with my code but this seems to happen
on all socket connections.
In my case I am using:
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
On Ubuntu 8.04.
I would be grateful for any ideas or suggestions.