Hi,

I am trying to run the traffic light control example using TraCI4Matlab and
I am getting following errors. Actually, I follow the instructions given in
tutorial, I configure the server port in cross.sumocfg file as mentioned in
the tutorial. But, I can not make it work properly
-------------------------------------------------------------------

Error in matlab.internal.lang.fwdSubsref (line 4)
    [varargout{1:nargout}] = subsref(A,s);

Error in traci.init (line 65)
        connections(label).connect(host, port);

Error using traci.Socket/connect (line 25)
Java exception occurred:
java.net.ConnectException: Connection refused: connect

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

 at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

 at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

 at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

 at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

 at java.net.PlainSocketImpl.connect(Unknown Source)

 at java.net.SocksSocketImpl.connect(Unknown Source)

 at java.net.Socket.connect(Unknown Source)

 at java.net.Socket.connect(Unknown Source)


Error in matlab.internal.lang.fwdSubsref (line 4)
    [varargout{1:nargout}] = subsref(A,s);

Error in traci.init (line 65)
        connections(label).connect(host, port);

MATLAB:Java:GenericExceptionJava exception occurred:
java.net.SocketException: Socket is not connected

 at java.net.Socket.getInputStream(Unknown Source)

Struct contents reference from a non-struct array object.

Error in traci.sendExact (line 19)
activeConnection.dos.writeInt(len);

Error in traci.getVersion (line 23)
result = traci.sendExact();

Error in traci.init

--------------------------------------------------

Thanks for your time!

Ankur
------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to