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.

Hello, I got a new problem using XMLTRANSFORM. This operation is not working when I try to convert a file around 13M in Uniface 8.2.03.01. Thanks in advance. PS:I didn?t get any error in the status parameter


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.

At the beginning I tried to do it using this options but it didn?t work with Uniface 8.2.03. Thanks, anyway.


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.

Some additional information regarding this topic.

Instead of changing the PATH you can also tell Uniface where to locate the jvm DLL.
I think this is more solid.
 

Like:

[USER_3GL]

;D:\\USYS94\\common\\jre\\bin\\client\\jvm.dll(JNI_CreateJavaVM)

C:\\Progra~1\\Java\\jre1.5.0_12\\bin\\client\\jvm.dll(JNI_CreateJavaVM)

 And also you can overrule default options for JVM, e.g. heap size:

 [LOGICALS]

JVM_OPTIONS = -Xss4m -Xnoclassgc -Xmx90000000

 Sjaak


Author: sjaak (sjaak.van.schie@uniface.com)
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.

Exactly. At least it is a possible solution.


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.

So it was a problem solved with a new JAVA version

(AKA nothing-we-have-to-change-inside-our-uniface-realm)?

Uli

P.S: Thanks for sharing your findings with us


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.

Finally I got the solution for Unifave 8.2.03 updating the Java Virtual Machine and changing the environment variable $PATH with the lastest installed version.


Author: None (None)