× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.