MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2014

Re: Upgrading from V5R4 to 7.1. Java Classic to IT4J



fixed

Hi Vernon

I think I've changed the software to point at the 7.1 JVM. It works after the system.defaults IFS file has been removed and the JAVA_HOME etc has been set.

The problem I have is for example

 Java exception "java.lang.StringIndexOutOfBoundsException:" when calling   
  method "createCell" with signature                                         
  "(S)Lorg.apache.poi.hssf.usermodel.HSSFCell;" in class                     
  "org.apache.poi.hssf.usermodel.HSSFRow".      

The 'createcell' method will be called over 600.000 times then it fails, This did not happen running the classic machine. The program has been tested with
10,000,000 plus cells.

Regards,
Mark.

                                 


________________________________
From: Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Thursday, 20 February 2014, 19:32
Subject: Re: Upgrading from V5R4 to 7.1. Java Classic to IT4J


Hi Mark

As others have suggested, recompiling RPG will do nothing to fix this.
The error is coming from Java, not from RPG.

I know, I'm not a real Java programmer, either.

It would help to know what are the prototypes you have for your Java
calls. Are you using one of Scott Klement's APIs, such as the JDBC one
or the Excel one?

If you still have the old version of Java on your machine - and I'm not
sure how many are still supported at 7.1 - the old one will no longer be
the default JVM - you'd need to modify something to get that old one in
place before your calls in RPG.

Also, there is a Java list here at MIDRANGE.COM - you'll likely get a
better answer over there.

HTH
Vern

On 2/20/2014 12:46 PM, MARK GOLDEN wrote:
Hi Luis,

I am going to take all source from the V5R4 machine and recompile on the 7.1 machine. Would that possibly solve the problem?
I am not a JAVA programmer.

Regards,
Mark.



________________________________
  From: Luis Rodriguez <luisro58@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Thursday, 20 February 2014, 18:33
Subject: Re: Upgrading from V5R4 to 7.1. Java Classic to IT4J
 

Mark,

IIRC, Is it possible that your old program(s) need the 64-bit version of
Java and right now (under the new release) they are pointing to the "new"
32-bit version?

Regards,
Luis

Luis Rodriguez
IBM Certified Systems Expert -- eServer i5 iSeries






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact