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



On 10/11/2011 9:17 AM, David Gibbs wrote:
On 9/14/2011 1:37 PM, David Gibbs wrote:
I was trying to delete an IFS file from a remote server and got a null pointer exception in the IFSFIleImplRemote class.

java.lang.NullPointerException
at com.ibm.as400.access.IFSFileImplRemote.delete(IFSFileImplRemote.java:207)
at com.ibm.as400.access.IFSFile.delete0(IFSFile.java:735)
at com.ibm.as400.access.IFSFile.delete(IFSFile.java:781)

The file had been just recently accessed and it definitely existed.
I encountered this error again ... in the same place ... after upgrading to the latest jt400.

java.lang.NullPointerException
at com.ibm.as400.access.IFSFileImplRemote.delete(IFSFileImplRemote.java:523)
at com.ibm.as400.access.IFSFile.delete0(IFSFile.java:830)
at com.ibm.as400.access.IFSFile.delete(IFSFile.java:876)



David, I have no idea. I think this is the line that's failing:

ds = (ClientAccessDataStream) fd_.server_.sendAndReceive(req);

This would imply that either fd_ or fd_.server_ is null. fd_ cannot be null or it would have failed earlier in the delete() method. In fact, the delete() method calls fd_.connect(), which is supposed to set the server_ value.

So the only way I can see this happening is if you somehow lost the connection for your file and were unable to re-establish it. Are you doing this delete immediately upon creating the IFS File object?

Joe

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.