Page 1 of 1

error generating xml files

Posted: 31 May 2022, 16:06
by lspagnoli
i was using icedtea-next e on an old computer and never had any problems generating xml files. with openwebstart, open the program in java, I can fill in all the fields and save them, but when I have to generate the xml file for sending the system gives an error, I tried to give 777 permissions in the destination folders, but the problem has not been solved, I am attaching some files that I hope will be useful to solve the anomaly

Re: error generating xml files

Posted: 31 May 2022, 16:50
by Janak Mulani
OWS is starting your application but your application is crashing because it cannot find an class javax.activation.DataHandler.

May be the JRE that was chosen to run the application does not have this class.

Please send the openwebstart log files by enabling logging as described here: https://openwebstart.com/docs/OWSGuide.html#_logging

Re: error generating xml files

Posted: 31 May 2022, 17:17
by Andreas Ehret
Really looks like your javax class is not longer included in the JVM you are using. In this case you have to add the javax activation jar to your jnlp.

Re: error generating xml files

Posted: 31 May 2022, 22:11
by lspagnoli
Andreas Ehret wrote: 31 May 2022, 17:17 Really looks like your javax class is not longer included in the JVM you are using. In this case you have to add the javax activation jar to your jnlp.
how do i add the javax activation jar to my jnlp

Re: error generating xml files

Posted: 31 May 2022, 22:14
by lspagnoli
Janak Mulani wrote: 31 May 2022, 16:50 OWS is starting your application but your application is crashing because it cannot find an class javax.activation.DataHandler.

May be the JRE that was chosen to run the application does not have this class.

Please send the openwebstart log files by enabling logging as described here: https://openwebstart.com/docs/OWSGuide.html#_logging
as requested I send the logs

Re: error generating xml files

Posted: 07 Jun 2022, 17:48
by Janak Mulani
HI

Your Jnlp specifies JRE version "requested: JRE with version string '1.7+"

OWS finds adn uses "using java runtime at '/home/leonardo/.cache/icedtea-web/jvm-cache/adoptium_11.0.15_x64'"

Your application is using class javax.activation.DataHandler:

Code: Select all

it.finanze.entrate.sfe.xmlconverter.beanutils.exceptions.ConverterMapToXmlException: java.lang.NoClassDefFoundError: javax/activation/ DataHandler
This class is not present in the JRE 11. You need to specify JVM args in Jnlp file to add the appropriate module or find a library that has this class and include its jar in the jnlp.