ERR_CONNECTION_REFUSED

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Lukas Kaiser
Posts: 3
Joined: Mon Feb 11, 2019 2:09 am

ERR_CONNECTION_REFUSED

Post by Lukas Kaiser » Mon Feb 11, 2019 8:13 am

Hi guys,

I just tried to install OpenSim on my mac and get the following error in the visualizer window:
ERR_CONNECTION_REFUSED
Connection to 127.0.0.1 refused.
I already tried to disable the firewall what didn't help.

Any ideas?

Thanks for the help!

Lukas

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: ERR_CONNECTION_REFUSED

Post by Ayman Habib » Mon Feb 11, 2019 3:35 pm

Hi Lukas,

Considering the fact that this is the first time this issue is reported, I would think one of two things is the reason:
1. The server launched by OpenSim failed to start or is refusing connections from the application. This would likely be due to permissions issues specific to the machine/network where either you don't have permission to run a server (consult your IT) or some institutional security protocol that prevents running a server. You should try a different machine on the network or a different network to pinpoint the issue.
2. There's another server running on the machine (by another application), resulting that OpenSim launched server fails, and later connections produce the error. You may be able to find out which application by launching a separate browser window and typing http://localhost in the url and see what you get.

Keep an eye for a red stop sign at the bottom right corner of the application as low level errors are reported there and can easily be missed.

Please let us know what you find out.

Best regards,
-Ayman

User avatar
Lukas Kaiser
Posts: 3
Joined: Mon Feb 11, 2019 2:09 am

Re: ERR_CONNECTION_REFUSED

Post by Lukas Kaiser » Tue Feb 12, 2019 1:50 am

Hi Ayman

I indeed missed the red stop sign...
java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
at org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:619)
at org.eclipse.jetty.util.log.JettyAwareLogger.info(JettyAwareLogger.java:314)
at org.eclipse.jetty.util.log.Slf4jLog.info(Slf4jLog.java:74)
at org.eclipse.jetty.util.log.Log.initialized(Log.java:186)
at org.eclipse.jetty.util.log.Log.getLogger(Log.java:298)
at org.eclipse.jetty.util.log.Log.getLogger(Log.java:288)
at org.eclipse.jetty.util.component.AbstractLifeCycle.<clinit>(AbstractLifeCycle.java:35)
at org.eclipse.jetty.JettyMain.startServer(JettyMain.java:76)
at org.eclipse.jetty.JettyMain.main(JettyMain.java:68)
at org.opensim.view.pub.ViewDB$1VizWorker.construct(ViewDB.java:1305)
at org.opensim.swingui.SwingWorker$2.run(SwingWorker.java:130)
[catch] at java.lang.Thread.run(Thread.java:748)
After some googling, it seems to be a mismatch between library versions.
But I have no idea how to fix it...

Any hints?

Thanks!!!!

User avatar
Lukas Kaiser
Posts: 3
Joined: Mon Feb 11, 2019 2:09 am

Re: ERR_CONNECTION_REFUSED

Post by Lukas Kaiser » Mon Feb 18, 2019 3:59 am

I was thinking about the problem and remembered, that I additionally have an older version of Java installed as I have an older version of Photoshop.

https://support.apple.com/kb/DL1572?vie ... cale=de_DE

Might that be the source of the problem?

POST REPLY