On 10/11/2011 9:48 AM, Joe Pluta wrote:
David, I have no idea. I think this is the line that's failing:yeah, that's pretty much what was identified last time.
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
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?
John E, the jt400 development lead, suggested updating the most current version of jt400.jar ... which I did. But the error manifested again. Unfortunately it's completely sporadic. The code in question will work fine for weeks and then fail for no apparent reason.
Against my better judgment, I've added a catch for npe when the delete is performed. I'd rather leave a file behind in the ifs than abort the process.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.