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 connection issue #27

Open
prasuka4 opened this issue Dec 23, 2023 · 0 comments
Open

Java connection issue #27

prasuka4 opened this issue Dec 23, 2023 · 0 comments

Comments

@prasuka4
Copy link

Hi,
I have following issue to run the traci4matlab.
I have installed as per the documentation but java connection issue is not allowing to proceed.

Could not connect to TraCI server at 127.0.0.1:≭. Undefined function 'DataReader' for input arguments of type 'java.io.DataInputStream'.
Error using traci.Socket/connect
Java exception occurred:
java.net.ConnectException: Connection refused: connect

at java.net.DualStackPlainSocketImpl.connect0(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at java.net.Socket.connect(Socket.java:538)

Error in traci.connect (line 44)
c.connect(host, port);

Error in traci.start (line 62)
connections(label) = traci.connect(port, numRetries, host);

Error in inter_palmas_actuated (line 23)
traci.start('sumo-gui -c ./inter_palmas_actuated.sumocfg --start');
Could not connect to TraCI server at 127.0.0.1:≭. Java exception occurred:
java.net.SocketException: Socket is not connected

could you please resolve this

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

1 participant