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.rmi.ConnectException: Connection refused to host #73

Open
reikjarloekl opened this issue Aug 23, 2022 · 3 comments
Open

java.rmi.ConnectException: Connection refused to host #73

reikjarloekl opened this issue Aug 23, 2022 · 3 comments

Comments

@reikjarloekl
Copy link

ScenicView launches and can find and apparently connect to the running JavaFx-application:

Platform running
Launching ScenicView v11.0.2
Startup done
Creating server
Server done
Number of running Java applications found: 5
Obtaining properties for Java application with PID:714840
Obtaining properties for Java application with PID:501108
Obtaining properties for Java application with PID:590796
Obtaining properties for Java application with PID:640220
1 JavaFX applications found
Loading agent from: C:\Users\Joern\AppData\Local\scenicview\lib\scenicview.jar
Loading agent for:sun.tools.attach.AttachProviderImpl@4f0c1697: 714840 ID:714840 on port:7565 took:115ms using agent defined in C:\Users\Joern\AppData\Local\scenicview\lib\scenicview.jar

However in the console of the JavaFx-application these exceptions start repeating:

TRACE: new Scene: javafx.scene.Scene@360a6f98
Launching agent server on:7559:7558:714840:true
2022-08-23T18:39:24.990169900Z [ INFO] CSS Monitoring is about to start
2022-08-23T18:39:24.991170800Z [ INFO] CSS Monitoring started
2022-08-23T18:39:24.991170800Z [ INFO] starting to monitor physical files
java.rmi.ConnectException: Connection refused to host: 10.71.135.79; nested exception is: 
	java.net.ConnectException: Connection timed out: connect
	at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:626)
	at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)
	at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:204)
	at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
	at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:215)
	at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:160)
	at org.fxconnector.remote.$Proxy1.onAgentStarted(Unknown Source)
	at org.fxconnector.remote.RemoteApplicationImpl.lambda$new$0(RemoteApplicationImpl.java:61)
	at org.fxconnector.remote.RMIUtils$1.run(RMIUtils.java:93)
Caused by: java.net.ConnectException: Connection timed out: connect
	at java.base/sun.nio.ch.Net.connect0(Native Method)
	at java.base/sun.nio.ch.Net.connect(Net.java:579)
	at java.base/sun.nio.ch.Net.connect(Net.java:568)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:633)
	at java.base/java.net.Socket.connect(Socket.java:583)
	at java.base/java.net.Socket.<init>(Socket.java:507)
	at java.base/java.net.Socket.<init>(Socket.java:287)
	at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40)
	at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:620)
	... 8 more

I tried setting -Djava.rmi.server.hostname=localhost on both ends (ScenicView and also the JavaFx-Application) but without any success so far.

I have no clue that the IP address is. It is none that is used by any of the interfaces on my machine. I am not even attached to a network where the IP would fit the netmask.

@aaroncsolomon
Copy link

bump @JonathanGiles

@aaroncsolomon
Copy link

what exactly is attempting to be hosted here? would make it helpful to debug

@adamish
Copy link

adamish commented Aug 8, 2023

I've seen this too when moved the application being inspected up to Java 17.... When I moved it back to Java 11 scenicView worked as expected. This was scenicView 11.0.2

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