Hi folks.
I am developing one app along the last year and this error never happens.
All times that I test my app outside my local network, the app starts and
run fine.
So I continue to develop using the same method calls, classes, etc... And
the tests that I done in application (locally), works fine.
So my father in his job tryed to test the app. It loads fine, no problem.
But when he try get data from the server, the DEBUG prints the exception
below:
ERROR: Connection refusedjava.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.openlaszlo.data.HTTPDataSource.getDataOnce(HTTPDataSource.java:515)
at
org.openlaszlo.data.HTTPDataSource.getHTTPData(HTTPDataSource.java:205)
at org.openlaszlo.data.HTTPDataSource.getData(HTTPDataSource.java:159)
at org.openlaszlo.data.DataSource.getAsSWF(DataSource.java:112)
at
org.openlaszlo.servlets.responders.ResponderXMLDATA.respondImpl(ResponderXMLDATA.java:200)
at
org.openlaszlo.servlets.responders.Responder.respond(Responder.java:265)
at org.openlaszlo.servlets.LZServlet._doGet(LZServlet.java:441)
at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:355)
at org.openlaszlo.servlets.LZServlet.doPost(LZServlet.java:522)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:163)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
My method that calls the server is something like: (Very normal thing...)
dts.clearRequestHeaderParams()
dts.setQueryParams(null)
dts.setQueryType( 'GET' )
dts.setQueryParam( 'XXX' , someVariable )
dts.setSrc( 'myBean!method.action' ) //I´m using Spring & Webwork to call
the method in a java class
dts.doRequest()
Anyone already get this error ?
I´m, stuck in this error sinc 2 months ago, and I do not find nothing in the
web that tells me how to solve =/
I´m using OpenLaszlo 4.0.7 and Tomcat 5.5.20.
If you wants to run the app, access: http://www.minha.com.br:8080/ds001
NOTE: After the splash do its work, wait all the snipets load to start using
the app.
you can see the error happens per example in the menu CADASTROS -> CLIENTE
In the CODIGO field enter a number and then use the TAB KEY to perform the
request. The database use in this server is empty, so a message with the
text 'Cliente não encontrado' (Client not found.) should appear in the
success case.
Thanks in advance.
Rodrigo Kerkhoff