× 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.



Dear Scott,

I'm Using both POI and xlparse.jar for normal excel file reads when I tried
to read excel with a formula field this error occurred. I have plased all
JAR files by using Operations navigator, is it a must that I should use FTP
in BIN mode?


--
Regards,


Chamara Withanachchi
Owner of www.rpgiv.info

WWW.RPGIV.INFO
Mob: +971 50 5698644
Tel: +971 6 5595887
chamaraw@xxxxxxxxxx
www.rpgiv.info

On Wed, Jan 7, 2009 at 12:12 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>wrote:

Chamara,

"java.lang.NoClassDefFoundError" means that it can't find a Java class.
In particular, it can't find the class named
org/apache/poi/hssf/util/CellReference.

As to WHY it can't find that class, I don't know.

You say you have the JAR files installed, so it should be able to find
them. Do the JAR files work for other purposes, or is this the first
time you've used them? Is it possible that they're corrupt? If you
transferred them from a PC, make sure you used FTP in BINARY mode (or a
similar binary-safe method of transporting them). Make sure the copies
you downloaded are valid. (I'm referring to the POI jar files.. it
sounds like the xlparse.jar file is okay.)

Having them in /QIBM/userdata/java400/ext should work! Though, it's not
a very good practice. This isn't related to the problem you're
experiencing, but I do recommend that you use a CLASSPATH instead of
/QIBM/userdata/java400/ext. The way you're doing it, you can only have
one version of the JAR files on your system at a time, which makes it
hard to test new versions, and if you ever have two apps that require
different versions of the JAR files, you'll be out of luck if you use
/QIBM/userdata/java400/ext. Using CLASSPATH solves both problems, since
each job can specify a different CLASSPATH.



Chamara Withanachchi wrote:
Hi,


I'm using Scott Klement's XLPARSER4 program to read Excel files when
i
tried to read a formula field and i got following error,

CALL CHAMARA/XLPDEMOF Printer device PRT01 not found. Output queue
changed to QPRINT in library QGPL. Java exception received when calling
Java method. DSPLY Error occcured while parsing spreadsheet.

Second Level Message

Message ID . . . . . . : RNX0301 Severity . . . . . . . : 50 Message
type . . . . . : Escape Date sent . . . . . . : 06/01/09 Time sent . . .
. . . : 16:08:07 &nbsp; Message . . . . : Java exception received when
calling Java method. Cause . . . . . : RPG procedure XLPARSE_WO in
program CHAMARA/XLPARSER4 received Java exception
"java.lang.NoClassDefFoundError: org/apache/poi/hssf/util/CellReference"
when calling method "parse" with signature "([B[B[B)V" in class &nbsp;
"com.iseriesnetwork.clubtech.xlparse.ParseSheet". Recovery . . . :
Contact the person responsible for program maintenance t determine the
cause of the problem. Technical description . . . . . . . . : If the
exception indicates that the Java class was not found, ensure the class
for the method is in the class path. If the exception indicates that the
Java method was not found, check the method name and signature. If the
signature is not correct, change the RPG prototype for the method, or
change the Java method, so that the returntype and parameter types
match. You can determine the signatures for all themethods in class XYZ
using command QSH CMD('javap -s XYZ').

I have stored all .JAR files in /QIBM/userdata/java400/ext. Any one
have an idea about this.


Regards,

Chamara Withanachchi
Owner of www.rpgiv.info

WWW.RPGIV.INFO
Mob: +971 50 5698644
Tel: +971 6 5595887
chamaraw@xxxxxxxxxx
www.rpgiv.info



Sent from my BlackBerry(R) wireless device

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.