Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting java.lang.NullPointerException on File I/O

Status
Not open for further replies.

brainchild1977

Programmer
Feb 1, 2005
9
US
Hello,
Am gettting this error on my email java application. The app utilizes some properties files to get certain parameters. I have checked all paths to make sure they are correct. I wonder if it has to do with incompatible jars such as xerces or xalan. The application was pre-compiled using sun's 1.4 jdk version. The server the app was deployed to is using ibm 1.4.2 jdk..

any ideas? Thx

Here is the complete stack trace:

Exception in thread "main" java.lang.NullPointerException
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:122)
at com.eservices.email.controller.batch.EmailBuilder.execute(EmailBuilder.java:336)
at com.eservices.email.controller.batch.EmailBuilder.main(EmailBuilder.java:316)
 
It's difficult to know without some code or an idea of what are you trying to read, but at first sight it doesn't seem to be an external jar problem.

Which JRE are you using?

Cheers,

Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top