Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #26407

    any ideas about this exception?

    java.net.ConnectException: Connection timed out<br /> <br /> at java.net.PlainSocketImpl.socketConnect(Native Method)<br /> <br /> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)<br /> <br /> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)<br /> <br /> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)<br /> <br /> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)<br /> <br /> at java.net.Socket.connect(Socket.java:529)<br /> <br /> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)<br /> <br /> at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)<br /> <br /> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)<br /> <br /> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)<br /> <br /> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)<br /> <br /> at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)<br /> <br /> at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)<br /> <br /> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)<br /> <br /> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)<br /> <br /> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)<br /> <br /> at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)<br /> <br /> at org.zefer.cache.f.getResourceAsBytes(Unknown Source)<br /> <br /> at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)<br /> <br /> at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> <br /> at questionario.GestioneQuestionarioPageAdvanced.generaQuestionarioNuovo(GestioneQuestionarioPageAdvanced.java:827)<br />
    Line 827 is pd4ml render invocation!
    <br /> at questionario.GestioneQuestionarioPageAdvanced$3.onClick(GestioneQuestionarioPageAdvanced.java:308)<br /> <br /> at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214)<br /> <br /> at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)<br /> <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> <br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> <br /> at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)<br /> <br /> at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)<br /> <br /> at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)<br /> <br /> at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1220)<br /> <br /> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1297)<br /> <br /> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399)<br /> <br /> at org.apache.wicket.RequestCycle.request(RequestCycle.java:529)<br /> <br /> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)<br /> <br /> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)<br /> <br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br /> <br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br /> <br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br /> <br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br /> <br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br /> <br /> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br /> <br /> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)<br /> <br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br /> <br /> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br /> <br /> at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)<br /> <br /> at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)<br /> <br /> at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2018)<br /> <br /> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br /> <br /> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br /> <br /> at java.lang.Thread.run(Thread.java:619)<br /> <br /> java.lang.NullPointerException<br /> <br /> at org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> <br /> at questionario.GestioneQuestionarioPageAdvanced.generaQuestionarioNuovo(GestioneQuestionarioPageAdvanced.java:827)<br />
    Line 827 is pd4ml render invocation
    <br /> at questionario.GestioneQuestionarioPageAdvanced$3.onClick(GestioneQuestionarioPageAdvanced.java:308)<br /> <br /> at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214)<br /> <br /> at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)<br /> <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> <br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> <br /> at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)<br /> <br /> at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)<br /> <br /> at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)<br /> <br /> at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1220)<br /> <br /> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1297)<br /> <br /> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399)<br /> <br /> at org.apache.wicket.RequestCycle.request(RequestCycle.java:529)<br /> <br /> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)<br /> <br /> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)<br /> <br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br /> <br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br /> <br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br /> <br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br /> <br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br /> <br /> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br /> <br /> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)<br /> <br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br /> <br /> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br /> <br /> at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)<br /> <br /> at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)<br /> <br /> at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2018)<br /> <br /> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br /> <br /> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br /> <br /> at java.lang.Thread.run(Thread.java:619)<br />

    Thanks

    #28068

    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

    #28069

    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.

    #28070

    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?

    #28071

    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.

    #28072

    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

    #28073

    It should write debug info to the same log, where you found the exceptions.
    Which version of PD4ML do you use?

    #28074

    the latest pd4ml.prof.361b1.zip!

    #28075

    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.

    #28076

    You are right! ^^’

    I’ll move it!

    #28077

    Ok!

    I find this problem:
    version: PD4ML 360fx1b1 Pro
    https://193.204.6.37:30443/…/..cc65a0acd.xml not found.
    java.net.ConnectException: Connection timed out

    the file in not available for https via 30443 port! 🙁

    Why?

    Thanks

    #28078

    Maybe I find the solution, but I have another issue for you!

    I can access to the file also in this way:

    https://127.0.0.1/…/..cc65a0acd.xml

    but only without check certificate.

    For example, this work:

    wget –no-check-certificate https://127.0.0.1/…/..cc65a0acd.xml

    and this doesn’t work:

    wget https://127.0.0.1/…/..cc65a0acd.xml

    How can I tell to pd4ml to access to the file with something like “–no-check-certificate” option?

    Thanks
    Mk

    #28079

    mmm…
    can’t I access to the file with a localPath and not with a url?
    Thanks
    Mk

    #28080

    Oficially PD4ML does not support HTTPS, however on practice it tries to load HTTPS resources with Java’s standard SSL classes.

    WebSphere and Weblogic, for example, and may be some others implement their own SSL libraries, not derived from Java’s standard one. As a result it causes ClassCastException. As I see, it is not your case, but there may be other SSL protocol related issues, specific for your environment.

    The best workaround for the HTTPS issue is not to use HTTPS for CSS or image references. It is expensive from the performance perspective and causes undesired network transactions. A better approach is to reference the resources with relative links.

    If your source HTML documents are read-only and you are not allowed to change HTTPS URLs there, there is also a solution with custom resource loaders. You may implement your own one and to use any SSL library you like:

    pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html

    Also http://pd4ml.com/examples.zip include source codes of SSL servlet, where you could borrow some ideas from (for example how to suppress a certificate check).

Viewing 14 posts - 1 through 14 (of 14 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.