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



One of our java program stops working after we upgrade OS from V5R2 to
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 );



Below is the error log:
java.lang.NullPointerException

at java.lang.Throwable.<init>(Throwable.java:180)

at java.lang.Exception.<init>(Exception.java:29)

at java.lang.RuntimeException.<init>(RuntimeException.java:32)

at
java.lang.NullPointerException.<init>(NullPointerException.java:36)

at
com.ibm.as400.access.SocketContainerUnix.getInputStream(SocketContainerU
nix.java:64)
at
com.ibm.as400.access.AS400ImplRemote.signonConnect(AS400ImplRemote.java:
1579)
at
com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRemote.java:
757)
at
com.ibm.as400.access.AS400ImplRemote.connect(AS400ImplRemote.java: 362)

at com.ibm.as400.access.AS400.connectService(AS400.java:751)

at com.ibm.as400.access.IFSFile.chooseImpl(IFSFile.java:486)

at com.ibm.as400.access.IFSFile.exists0(IFSFile.java:887)

at com.ibm.as400.access.IFSFile.exists(IFSFile.java:909)

at com.arch.as400.ciss.CissRunner.main(CissRunner.java:93)

java.lang.NullPointerException

at java.lang.Throwable.<init>(Throwable.java:180)

at java.lang.Exception.<init>(Exception.java:29)

at java.lang.RuntimeException.<init>(RuntimeException.java:32)

at
java.lang.NullPointerException.<init>(NullPointerException.java:36 )

at com.arch.as400.ciss.CissRunner.main(CissRunner.java:158)




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.