Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java.net.ConnectException: Connection refused: Connect #6

Open
docker156 opened this issue Nov 9, 2020 · 8 comments
Open

Java.net.ConnectException: Connection refused: Connect #6

docker156 opened this issue Nov 9, 2020 · 8 comments

Comments

@docker156
Copy link

Hi,
W10, Eclipse, SBCL, 2.0.0

If I try to evaluate my Lisp-Code, the following error message appears:

Java.net.ConnectException: Connection refused: Connect

Kind regards,
Martin

@Ragnaroek
Copy link
Owner

Do you have more of the error message? If you open the Error Log in Eclipse there should be more details on what went wrong.

@docker156
Copy link
Author

Hi,
it is really amazing to get such an fast answer. Thank you very much. I hope, my English is good enough to answer in the right manner.

The following i found in the error log

  1. Error

Missing requirement: Marketplace Client Core 1.3.1.v20140820-1706 (org.eclipse.epp.mpc.core 1.3.1.v20140820-1706) requires 'osgi.bundle; org.eclipse.equinox.util 1.0.500' but it could not be found
An exception stack trace is not available.

  1. Error Initialising Connection

de.defmacro.dandelion.internal.core.connection.ConnectionException: java.net.ConnectException: Connection refused: connect
at de.defmacro.dandelion.internal.core.connection.LispConnection.connect(LispConnection.java:122)
at de.defmacro.dandelion.internal.core.connection.AbstractJob.ensureConnected(AbstractJob.java:134)
at de.defmacro.dandelion.internal.core.connection.InitializationJob.run(InitializationJob.java:83)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.net.ConnectException: Connection refused: connect
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:503)
at java.base/sun.nio.ch.Net.connect(Net.java:492)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
at java.base/java.net.Socket.connect(Socket.java:648)
at java.base/java.net.Socket.connect(Socket.java:597)
at java.base/java.net.Socket.(Socket.java:520)
at java.base/java.net.Socket.(Socket.java:294)
at de.defmacro.dandelion.internal.core.connection.LispConnection.connect(LispConnection.java:110)
... 3 more

Session Data:
eclipse.buildId=4.17.0.I20200902-1800
java.version=14.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data file:/C:/Users/.../Eclipse/

  1. Error in background evaluation

de.defmacro.dandelion.internal.core.connection.ConnectionException: java.net.ConnectException: Connection refused: connect
at de.defmacro.dandelion.internal.core.connection.LispConnection.connect(LispConnection.java:122)
at de.defmacro.dandelion.internal.core.connection.AbstractJob.ensureConnected(AbstractJob.java:134)
at de.defmacro.dandelion.internal.core.connection.EvaluationJob.run0(EvaluationJob.java:124)
at de.defmacro.dandelion.internal.core.connection.AbstractEvaluationJob.run(AbstractEvaluationJob.java:108)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.net.ConnectException: Connection refused: connect
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:503)
at java.base/sun.nio.ch.Net.connect(Net.java:492)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
at java.base/java.net.Socket.connect(Socket.java:648)
at java.base/java.net.Socket.connect(Socket.java:597)
at java.base/java.net.Socket.(Socket.java:520)
at java.base/java.net.Socket.(Socket.java:294)
at de.defmacro.dandelion.internal.core.connection.LispConnection.connect(LispConnection.java:110)
... 4 more

Session Data:
eclipse.buildId=4.17.0.I20200902-1800
java.version=14.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data file:/C:/Users/.../Eclipse/

@Ragnaroek
Copy link
Owner

Ok, looks the lisp environment isn't up or cannot be reached. Let's debug:
Can you start the lisp environment in a terminal? It should be located in your home folder under .p2/pool/plugins/de.defmacro.dandelion.env.sbcl.xxxxxx/binary/environment_sbcl_x_x_x. Could you please execute the binary with the command `./environment_sbcl_x_x_x 30666 NIL DEBUG" and report the output?

@super-tomcat
Copy link

Ok, looks the lisp environment isn't up or cannot be reached. Let's debug:
Can you start the lisp environment in a terminal? It should be located in your home folder under .p2/pool/plugins/de.defmacro.dandelion.env.sbcl.xxxxxx/binary/environment_sbcl_x_x_x. Could you please execute the binary with the command `./environment_sbcl_x_x_x 30666 NIL DEBUG" and report the output?

I got this:

debugger invoked on a TYPE-ERROR in thread
#<THREAD "main thread" RUNNING {1001400523}>:
The value
#<SB-KERNEL:UNKNOWN-TYPE LOG4CL-IMPL:APPENDER>
is not of type
SB-KERNEL:CLASSOID

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit from the current thread.

(SB-KERNEL:CLASSOID-TYPEP #<SB-KERNEL:LAYOUT for LOG4CL-IMPL:DAILY-FILE-APPENDER {1002D82013}> #<SB-KERNEL:UNKNOWN-TYPE LOG4CL-IMPL:APPENDER> #<LOG4CL-IMPL:DAILY-FILE-APPENDER {1002F50E83}>)
0]

@docker156
Copy link
Author

Hi,

I found .p2\pool\plugins\de.defmacro.dandelion.env.sbcl.win32.x86_2.0.0\binary\environment_sbcl_2.0.0.exe

I got exactly the same output:

debugger invoked on a TYPE-ERROR in thread
#<THREAD "main thread" RUNNING {1001400523}>:
The value
#<SB-KERNEL:UNKNOWN-TYPE LOG4CL-IMPL:APPENDER>
is not of type
SB-KERNEL:CLASSOID

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit from the current thread.

(SB-KERNEL:CLASSOID-TYPEP #<SB-KERNEL:LAYOUT for LOG4CL-IMPL:DAILY-FILE-APPENDER {1002D82013}> #<SB-KERNEL:UNKNOWN-TYPE LOG4CL-IMPL:APPENDER> #<LOG4CL-IMPL:DAILY-FILE-APPENDER {1002F50E83}>)
0]

Thanks.

@Ragnaroek
Copy link
Owner

Yes, something is broken in the windows build. I can also confirm this on my windows installation.
Will take a look.

@Ragnaroek
Copy link
Owner

@docker156 @super-tomcat I tried to reproduce this error on windows. Just compiled the binary again and now it seems to work. Maybe something in the dependencies was updated. I uploaded the new Windows version as 2.0.1. Can you check if this is working for you now?

@super-tomcat
Copy link

Unfortunately having just changed computers i no longer use Eclipse or have it installed so i am not able to test

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

No branches or pull requests

3 participants