PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Re: Connection timed out ...
   PostPosted: 19 Jul 2010, 12:26 
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


  Subject: Re: Connection timed out ...
   PostPosted: 19 Jul 2010, 14:12 
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


  Subject: Re: Connection timed out ...
   PostPosted: 19 Jul 2010, 14:59 
mmm...
can't I access to the file with a localPath and not with a url?
Thanks
Mk


  Subject: Re: Connection timed out ...
   PostPosted: 20 Jul 2010, 11:57 
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).



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

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