Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Tusk: network is unreachable error #84

Open
alsonkemp opened this issue Dec 25, 2009 · 3 comments
Open

Tusk: network is unreachable error #84

alsonkemp opened this issue Dec 25, 2009 · 3 comments

Comments

@alsonkemp
Copy link

Fix found here: http://www.mail-archive.com/[email protected]/msg07174.html

Error message:

JavaException: java.net.SocketException: Network is unreachable
org.mozilla.javascript.WrappedException: Wrapped java.net.SocketException: Network is unreachable (/home/alson/projects/narwhal/engines/rhino/lib/http-engine.js#5)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1776)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1688)
at script(/home/alson/projects/narwhal/engines/rhino/lib/http-engine.js:5)

@alsonkemp
Copy link
Author

Occurs with Java 6

@alsonkemp
Copy link
Author

Fix:

Add the following to engines/rhino/bin/narwhal-rhino:

NARWHAL_JAVA_ARGUMENTS=-Djava.net.preferIPv4Stack=true

@tlrobinson
Copy link
Owner

Interesting. Do we think this should be included the in narwhal-rhino shell script? Or should it be left up to Linux users having problems?

narwhal-rhino supports an environment variable for these sort of things:

NARWHAL_JAVA_ARGUMENTS="-Djava.net.preferIPv4Stack=true"

should do it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants