Path

ez projects / paradoxpdf / forum / general / rebuild paradoxpdf.jar?


rebuild paradoxpdf.jar?

You need to be logged in to post messages in the forums. New users may register here.

Carlos Revillo

Member since:
31 January 2007

Posts: 53

Wednesday 08 April 2009 1:23:48 pm

Hi. I'm testing your extensiong. Reading the install file it says



(FIXME: rebuild paradoxpdf.jar and make it 1.5 compatible (for ezFind users))




Could you please explain this a little more? In my first test, i get pdf with 0 bytes. i don't know if this could be the problem. i'm usign ezfind.

Thank you.

Twitter: @crevillo
Skype ID: crevillo1976
http://www.tantacom.com
eZ Diff Squad member

Up

Karnichi Mohamed

Member since:
09 October 2006

Posts: 78

Wednesday 08 April 2009 3:31:39 pm

Hi Carlos,

Please, first make sure that the paradoxpdf/tmp folder is writable.

If still not working, please:
- checkout the latest version of extension
- enable debug in paradox/settings/paradoxpdf.ini
- cleare the cache (with --purge option)
- regenerate pdf throw content/view/pdf/<node_id>
- check files on paradox/tmp
- get the command on log file : var/log/paradoxpdf.log
- execute the command manually at the root folder of your ezpublish installation
- post the output here.

Thanks

http://www.amiralweb.com Certified eZPublish Expert

Up

Carlos Revillo

Member since:
31 January 2007

Posts: 53

Wednesday 08 April 2009 11:43:28 pm

Thanks for your time. i followed the steps and get these java errors executing the command




/usr/bin/java -Djava.awt.headless=true -jar /var/www/extension/paradoxpdf/bin/paradoxpdf.jar /var/www/extension/paradoxpdf/tmp/61ffd1a678c5c43c72fdfe911071f31d.xhtml /var/www/extension/paradoxpdf/tmp/61ffd1a678c5c43c72fdfe911071f31d.pdf




Ouput.




Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file


       at java.lang.ClassLoader.defineClass1(Native Method)


       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)


       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)


       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)


       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)


       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)


       at java.security.AccessController.doPrivileged(Native Method)


       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)


       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)


       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)


       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)


       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)




I have ezfind working ok in this project.

Twitter: @crevillo
Skype ID: crevillo1976
http://www.tantacom.com
eZ Diff Squad member

Up

Karnichi Mohamed

Member since:
09 October 2006

Posts: 78

Thursday 09 April 2009 1:27:53 pm

Hi Carlos,

As expected, you use a java JRE version prior to 1.6.
I'va rebuild the paradoxpdf.jar, you can now use it with a JRE 1.4 or above.
Update your extension


Hope this will help

http://www.amiralweb.com Certified eZPublish Expert

Up

Carlos Revillo

Member since:
31 January 2007

Posts: 53

Thursday 09 April 2009 2:39:58 pm

Sorry, but just updated the last revision (16), and still same error.

Here's the output of java -version in my server




java version "1.5.0_16"


Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)


Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)


Twitter: @crevillo
Skype ID: crevillo1976
http://www.tantacom.com
eZ Diff Squad member

Up

Karnichi Mohamed

Member since:
09 October 2006

Posts: 78

Friday 10 April 2009 2:10:39 am

Hi Carlos,

Sorry, I've missed some settings on my ant build script.
I've maked a new rebuild, hope this will work now for you.
Could you please update your extension and retest it ?

Please notice some changes on the debug process: you dont have te replay anymore the command line, all outputs are logged now on the var/log/paradoxpdf.log

http://www.amiralweb.com Certified eZPublish Expert

Up

Carlos Revillo

Member since:
31 January 2007

Posts: 53

Friday 10 April 2009 10:44:07 am

Ok. All is working perfectly now. pdfs are correctly generated. Thanks for your time.

Twitter: @crevillo
Skype ID: crevillo1976
http://www.tantacom.com
eZ Diff Squad member

Up

You need to be logged in to post messages in the forums. New users may register here.