Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

Uniface 8: XMLTRANSFORM

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

26 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

Does the control returns to uniface in +/- the same amount of time it took using the Altova way?

Or is it faster (which may point to a problem during conversion) w/o proper error reporting?

 

And using the pragmatic way: would it be possible to do the transformation via Altova and just load the output in Uniface?


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

I already did using Altova to check the xml_input and the xsl. It took a lot of time but it worked.


Author: None (None)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

Just to exclude some causes:

is it possible for you to run this transformation outside of uniface without these problems?
just launch this XML-Transformation and check the results.

Uli

 

 


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

Well, I am really confusing. Firstly, thank you for help me to everyone. The problem is I have no idea about what kind of problem is happening because when I am executing xmltransform operation I get a null value in status parameter and the output is empty. At the beggining we got an error, -5, java runtime error and we resolved changing the java virtual machine version. After that, we got our new strange error and I thought changing the JVM memory size using something like "JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=1024m" but it didn?t work. Any idea!? Best regards.


Author: None (None)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

Hi rafa,

what we need to find out is if there is something in HIS very special environment
stopping the processing of THIS special file regardless if inside or outside of uniface.

May be memory, processor, disk space, ...you-name-it....

If it's only a problem when started inside uniface, (synchronous) launching processing outside with a script may help.


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

With uniface I don´t know, I don´t tried it; with java or C++ it´s possible.
I´working with Uniface 9.4 if this weekend I have time I´ll test it and I tell you.


Regards,Rafa.


Author: uniface8 (spanish_uniface@hotmail.es)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

let me be more specifc: is it possible ... FOR Antmartinr in his environment?


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

Yes, it´s possible, a larger file could take a lot of minutes (maybe hours).
PD: always appears some problems, but it´s our work to solve them :) .
 

Regards, Rafa.


 


Author: uniface8 (spanish_uniface@hotmail.es)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

is it possible to run the XML transformation of that big file outside of uniface w/o problems?


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:46 AM UTC

XMLTRANSFORM

Author: None (None)

Hi! I?ve tried to convert a file bigger than 5mg using the XMLTRANSFORM operation in Uniface 8.2 but I got an error (-5), what it means Java Runtime Error. I suppose there is not enough memory avalaible in the Java Virtual Machine. I know that your can configure in Uniface 9 with JVM_OPTIONS = -Xmx512m, but in my case I don?t know how to find out a solution. Thanks in advance.

Hi, you upgraded the JVM, maybe a possible solution it´s upgrade the xalan libraries.

Regards, Rafa.


Author: uniface8 (spanish_uniface@hotmail.es)