This page last changed on Dec 03, 2013 by rich.sperrin.

Hi - anyone shed some light on this error? "ERROR HTTP\-Thread\-5: SocketCommand could not execute"

Running OpenRemote2 on Windows7
Protocol TCP/IP Port 8080 to ITach IP2IR

thanks for looking

C:\OpenRemote2\bin>openremote run
Using CATALINA_BASE: C:\OpenRemote2
Using CATALINA_HOME: C:\OpenRemote2
Using CATALINA_TMPDIR: C:\OpenRemote2\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.7.0_45
Dec 02, 2013 8:37:04 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\OpenRemo
te2\webapps\controller\WEB-INF\lib\native
Dec 02, 2013 8:37:04 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 02, 2013 8:37:04 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 538 ms
Dec 02, 2013 8:37:04 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 02, 2013 8:37:04 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Dec 02, 2013 8:37:04 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive webconsole.war
Dec 02, 2013 8:37:05 PM org.openremote.controller.bootstrap.Startup redirectJULtoLog4j
INFO: Initialized JUL to LOG4J Redirector.
INFO 2013-12-02 20:37:08,543 :

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

DEPLOYING NEW CONTROLLER RUNTIME...

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

*****************************************************************

The license restrictions Sigma Designs places on Z-Wave
implementations prevents us from distributing Z-Wave with
an Open Source product.

To test Z-Wave, download a freely available binary from
http://download.openremote.org/free/zwave and follow the
installation instructions at http://www.openremote.org/x/xAo4AQ

*****************************************************************

INFO 2013-12-02 20:37:08,870 : No rule definitions found in 'C:\OpenRemote2\webapps\controller\rules'.
INFO 2013-12-02 20:37:08,870 : Initialized event processor : Drools Rule Engine
INFO 2013-12-02 20:37:09,057 : Initialized event processor : RRD4J Data Logger
INFO 2013-12-02 20:37:09,057 : Initialized event processor : EmonCMS Data Logger
INFO 2013-12-02 20:37:09,057 : Startup complete.
INFO 2013-12-02 20:37:09,073 : Controller Definition File Watcher for Default Deployer started.
Dec 02, 2013 8:37:09 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 02, 2013 8:37:09 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4623 ms
ERROR HTTP\-Thread\-5: SocketCommand could not execute
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:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at org.openremote.controller.protocol.socket.TCPSocketCommand.requestSocket(TCPSocketCommand.java:162)
at org.openremote.controller.protocol.socket.TCPSocketCommand.send(TCPSocketCommand.java:156)
at org.openremote.controller.service.impl.ControlCommandServiceImpl.trigger(ControlCommandServiceImpl.java:95)
at org.openremote.controller.rest.ControlCommandRESTServlet.handleRequest(ControlCommandRESTServlet.java:77)
at org.openremote.controller.rest.RESTAPI.doPost(RESTAPI.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(JSONCallbackFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
ERROR HTTP\-Thread\-6: SocketCommand could not execute
java.net.ConnectException: Connection refused: connect

Double-checked IP for iTach in Controller.XML and corrected it in designer. I'm now getting connection timeout
I have double-checked the IP using the iTach iLearn tool. One question arises; If I change the panel design, save and restart OpenRemote2 Controller, should the new XML be picked up or do I zip them up and copy them to the WebApps folder?

Posted by rich.sperrin at Dec 03, 2013 13:13

You should sync your design to the controller.
Easiest way is to go to controller home page and perform an on-line sync.

Posted by ebariaux at Dec 03, 2013 13:31

Thanks Eric - knew that step was there for a reason! Will give it a go this eve.

Posted by rich.sperrin at Dec 03, 2013 14:01

Still getting socket timeout error

Controller (laptop windows7) is running on 192.168.1.71 - check
iTach (IP2IR) is running on 192.168.1.72 - check

clearly I've still got something not quite right

Its very possible I havent got the senddir Command spot on yet but that shouldnt hurt? Is it possible the target is ignoring the command coz it doesnt make any sense? I'm sending this over 8080 using IP protocol in GlobalCache format :-

sendir,1:1,1,37202,1,1,10,74,16,27,15,69,21,63,21,64,21,21,21,3700

One other thought; the GlobalCache iHelp cant find iTach on .72 - think something maybe blocked? (i got the IP from router admin)

Also - took wifi out of equation and connected controller to router ethernet

thoughts please!

c:\OpenRemote2\bin>openremote run
Using CATALINA_BASE: c:\OpenRemote2
Using CATALINA_HOME: c:\OpenRemote2
Using CATALINA_TMPDIR: c:\OpenRemote2\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.7.0_45
Dec 03, 2013 6:17:21 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: c:\OpenRemo
te2\webapps\controller\WEB-INF\lib\native
Dec 03, 2013 6:17:21 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 03, 2013 6:17:21 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 507 ms
Dec 03, 2013 6:17:21 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 03, 2013 6:17:21 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Dec 03, 2013 6:17:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive webconsole.war
Dec 03, 2013 6:17:22 PM org.openremote.controller.bootstrap.Startup redirectJULtoLog4j
INFO: Initialized JUL to LOG4J Redirector.
INFO 2013-12-03 18:17:24,378 :

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

DEPLOYING NEW CONTROLLER RUNTIME...

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

*****************************************************************

The license restrictions Sigma Designs places on Z-Wave
implementations prevents us from distributing Z-Wave with
an Open Source product.

To test Z-Wave, download a freely available binary from
http://download.openremote.org/free/zwave and follow the
installation instructions at http://www.openremote.org/x/xAo4AQ

*****************************************************************

INFO 2013-12-03 18:17:24,565 : No rule definitions found in 'c:\OpenRemote2\webapps\controller\rules'.
INFO 2013-12-03 18:17:24,565 : Initialized event processor : Drools Rule Engine
INFO 2013-12-03 18:17:24,706 : Initialized event processor : RRD4J Data Logger
INFO 2013-12-03 18:17:24,706 : Initialized event processor : EmonCMS Data Logger
INFO 2013-12-03 18:17:24,706 : Startup complete.
INFO 2013-12-03 18:17:24,706 : Controller Definition File Watcher for Default Deployer started.
Dec 03, 2013 6:17:24 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 03, 2013 6:17:24 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3251 ms
INFO 2013-12-03 18:17:34,768 :

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

UNDEPLOYING CURRENT CONTROLLER RUNTIME...

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

INFO 2013-12-03 18:17:34,768 : Stopped event processor : Drools Rule Engine
INFO 2013-12-03 18:17:34,768 : Stopped event processor : RRD4J Data Logger
INFO 2013-12-03 18:17:34,768 : Stopped event processor : EmonCMS Data Logger
INFO 2013-12-03 18:17:34,768 : Shutdown complete.
INFO 2013-12-03 18:17:34,768 :

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

DEPLOYING NEW CONTROLLER RUNTIME...

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

INFO 2013-12-03 18:17:34,814 : No rule definitions found in 'c:\OpenRemote2\webapps\controller\rules'.
INFO 2013-12-03 18:17:34,814 : Initialized event processor : Drools Rule Engine
INFO 2013-12-03 18:17:34,830 : Initialized event processor : RRD4J Data Logger
INFO 2013-12-03 18:17:34,846 : Initialized event processor : EmonCMS Data Logger
INFO 2013-12-03 18:17:34,846 : Startup complete.
ERROR HTTP\-Thread\-2: SocketCommand could not execute
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at org.openremote.controller.protocol.socket.TCPSocketCommand.requestSocket(TCPSocketCommand.java:162)
at org.openremote.controller.protocol.socket.TCPSocketCommand.send(TCPSocketCommand.java:156)
at org.openremote.controller.service.impl.ControlCommandServiceImpl.trigger(ControlCommandServiceImpl.java:95)
at org.openremote.controller.rest.ControlCommandRESTServlet.handleRequest(ControlCommandRESTServlet.java:77)
at org.openremote.controller.rest.RESTAPI.doPost(RESTAPI.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(JSONCallbackFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Posted by rich.sperrin at Dec 03, 2013 18:24

Okay - so i've used GC iLearn & iTest to prove the commands are working okay. I've added the commands to designer and synced.

Still getting same old error (below)

This test takes iTach out of the equation and leaves me with Controller, Java and Network

thoughts?

INFO 2013-12-04 18:31:44,992 : Startup complete.
ERROR [HTTP-Thread-6]: SocketCommand could not execute
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

Posted by rich.sperrin at Dec 04, 2013 18:38

Port 4998 seems to do the trick. my original design uses 8080. not sure where I found that answer now but wasnt immediately obvious. i now have a working panel - yay!

Anybody tell me what different ports do and how a system decides which are enabled/disabled - just a link to more info would be good

Posted by rich.sperrin at Dec 05, 2013 10:49
Document generated by Confluence on Jun 05, 2016 09:39