JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
  #1  
Old 24.12.2009, 16:34
don_ousian
Guest
 
Posts: n/a
Default Net problem: java.net.SocketException: Invalid argument

24/12/09 14:05:43 - JDClassLoader-> Look and Feel JAR loaded: /home/enrgar/Dropbox/jdownloader/libs/laf/syntheticaBlackEye.jar
EXCEPTION 24/12/09 14:05:43 - JDLogger-> SEVERE Exception occurred
java.lang.RuntimeException: Unexpected IOException while starting JUnique/Server for id "jd.Main"
at it.sauronsoftware.junique.Server.start(Server.java:120)
at it.sauronsoftware.junique.JUnique.acquireLock(JUnique.java:149)
at jd.Main.main(Unknown Source)
Caused by: java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
at java.net.ServerSocket.bind(ServerSocket.java:336)
at java.net.ServerSocket.bind(ServerSocket.java:294)
at it.sauronsoftware.junique.Server.start(Server.java:110)
... 2 more
24/12/09 14:05:43 - Main-> Instance Handling not possible!
24/12/09 14:05:43 - DatabaseConnector-> Loading database
24/12/09 14:05:43 - DatabaseConnector-> Checking database
24/12/09 14:05:44 - Main-> init Splash

JD-0.9.579

/etc/hosts
127.0.0.1 localhost
127.0.1.1 jack-sparrow

Anyone nows why jd is not resolving localhost?

Last edited by don_ousian; 25.12.2009 at 12:11.
  #2  
Old 25.12.2009, 12:09
don_ousian
Guest
 
Posts: n/a
Default OK Solved

Ok, somehow my system had changed behavior from IPv4 to IPv6.
I've forced java to use IPv4 and it works again.

/usr/bin/java -Djava.net.preferIPv4Stack=true -jar "YOUR_PATH/jdownloader/JDownloader.jar"
  #3  
Old 25.12.2009, 15:58
WinDev
Guest
 
Posts: n/a
Thumbs up Thnx

Thanks for your solution.
I had the same problem the last days. Does anybody know where this problem comes from?
I still have some problems with other programs running on my machine.

Best regards
  #4  
Old 12.01.2010, 11:22
don_ousian
Guest
 
Posts: n/a
Default

If you're debian related take a look at /etc/sysctl.d/bindv6only.conf
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 02:22.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.