|
One of our java program stops working after we upgrade OS from V5R2 toThe question here is how you invoke the program - running locally or remotely?
V5R3 and move the AS400 to our hosting site. The program is getting
Null pointer error when trying to do "new IFSTextFileInputStream".
Help.....
Below is a clip of the program:
// Retrieve application properties.
String as400UserId = ( String )parameters.get( "-uid" );
String as400Password = ( String )parameters.get( "-pwd" );
String as400System = ( String )parameters.get( "-as400" );
AS400 system = null;
if( ( as400UserId != null ) && ( as400Password != null ) && (
as400System != null ) ) {
system = new AS400( as400System, as400UserId, as400Password );
} else {
system = new AS400();
} Properties props = new Properties(System.getProperties());
IFSFile propertiesFile = new IFSFile( system, propertiesFileName );
IFSTextFileInputStream fis = new IFSTextFileInputStream( system,
propertiesFile, IFSTextFileInputStream.SHARE_ALL );
As an Amazon Associate we earn from qualifying purchases.
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.