PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Connection timed out ...
   PostPosted: 22 Jun 2010, 10:44 
any ideas about this exception?



Code:
java.net.ConnectException: Connection timed out

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:529)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)

at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)

at sun.net.NetworkClient.doConnect(NetworkClient.java:163)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)

at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)

at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)

at org.zefer.cache.f.getResourceAsBytes(Unknown Source)

at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)

at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)

at org.zefer.pd4ml.PD4ML.super(Unknown Source)

at org.zefer.pd4ml.PD4ML.render(Unknown Source)

at org.zefer.pd4ml.PD4ML.render(Unknown Source)

at questionario.GestioneQuestionarioPageAdvanced.generaQuestionarioNuovo(GestioneQuestionarioPageAdvanced.java:827)

Line 827 is pd4ml render invocation!
Code:
at questionario.GestioneQuestionarioPageAdvanced$3.onClick(GestioneQuestionarioPageAdvanced.java:308)

at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214)

at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)

at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)

at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)

at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1220)

at org.apache.wicket.RequestCycle.step(RequestCycle.java:1297)

at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399)

at org.apache.wicket.RequestCycle.request(RequestCycle.java:529)

at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)

at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)

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.valves.AccessLogValve.invoke(AccessLogValve.java:567)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)

at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2018)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

java.lang.NullPointerException

at org.zefer.pd4ml.PD4ML.super(Unknown Source)

at org.zefer.pd4ml.PD4ML.render(Unknown Source)

at org.zefer.pd4ml.PD4ML.render(Unknown Source)

at questionario.GestioneQuestionarioPageAdvanced.generaQuestionarioNuovo(GestioneQuestionarioPageAdvanced.java:827)

Line 827 is pd4ml render invocation
Code:
at questionario.GestioneQuestionarioPageAdvanced$3.onClick(GestioneQuestionarioPageAdvanced.java:308)

at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214)

at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)

at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)

at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)

at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1220)

at org.apache.wicket.RequestCycle.step(RequestCycle.java:1297)

at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399)

at org.apache.wicket.RequestCycle.request(RequestCycle.java:529)

at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)

at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)

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.valves.AccessLogValve.invoke(AccessLogValve.java:567)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)

at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2018)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)


Thanks


  Subject: Re: Connection timed out ...
   PostPosted: 22 Jun 2010, 11:58 
I find this

http://forums.sun.com/thread.jspa?threadID=450114

It seems like a proxy problem, but we have no proxy!

Does pd4ml use something like this?

Tnx


  Subject: Re: Connection timed out ...
   PostPosted: 22 Jun 2010, 13:24 
It is not necessarily a problem with a proxy. Another possible problem is an invalid routing from one server to another.

Make sure the server where PD4ML is located is able to ping/traceroute the server where HTML source is.


  Subject: Re: Connection timed out ...
   PostPosted: 22 Jun 2010, 13:40 
there is not routing, file xml/html and pd4ml are in same server.

if xml/html is not visible, I think I have a file not found exception.

Am I wrong?


  Subject: Re: Connection timed out ...
   PostPosted: 22 Jun 2010, 13:49 
It does not seem so.

Actually it tries to load via SSL/HTTPS. Is the protocol (and the corresponding port) enabled on the server?

Also even if everything is on the same server, the server may have a number of DNS names. And some of them are external (not known in the intranet). So try to enable debug on (pd4ml.enableDebugInfo()) and check in server's log what exactly it tries to connect.


  Subject: Re: Connection timed out ...
   PostPosted: 15 Jul 2010, 12:27 
Hi!
We used pd4ml.enableDebugInfo() but in tomcat log we see the same messages.
There are no changes if we use or don't use pd4ml.enableDebugInfo() in the code.
Do I ahve to see to another log?
Thanks


  Subject: Re: Connection timed out ...
   PostPosted: 15 Jul 2010, 12:31 
It should write debug info to the same log, where you found the exceptions.
Which version of PD4ML do you use?


  Subject: Re: Connection timed out ...
   PostPosted: 15 Jul 2010, 12:35 
the latest pd4ml.prof.361b1.zip!


  Subject: Re: Connection timed out ...
   PostPosted: 15 Jul 2010, 12:42 
If debug mode is switched on, it should at least output its version number. If there is no such output, please make sure, that your Java code with pd4ml.enableDebugInfo() call is not ignored because of cached older stuff.


  Subject: Re: Connection timed out ...
   PostPosted: 15 Jul 2010, 16:07 
You are right! ^^'

I'll move it!



[Reply]     [ 14 posts ]  Go to page 1, 2  Next

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share