Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.6k views
in Java FTP by (260 points)
I have just upgraded our ftpclient with the newest version of edtFTPj version 1.5.1 after having problems with "Unexpected null reply".

The new version helped with this problem, but instead it seems that we have a new problem. The logfile I have, says following :

20050802101110 Uploading file '/.../../..../....../....../......../....../../20050802101109.47861211.testfil.dat' to ftpuser (userID) '16'
20050802101110 >>>Ftp API<<< 2 Aug 2005 10:11:10.492 : ---> PASV
20050802101110 >>>Ftp API<<< 2 Aug 2005 10:11:10.512 : 227 Entering Passive Mode (xx,xxx,xx,xxx,xxx,xxx).
20050802101110 >>>Ftp API<<< 2 Aug 2005 10:11:10.554 : ---> STOR ./00060828
20050802101110 >>>Ftp API<<< 2 Aug 2005 10:11:10.574 : 150 Opening ASCII mode data connection for ./00060828.
20050802101110 >>>Ftp API<<< 2 Aug 2005 10:11:10.582 : Transferred 7170 bytes to remote host
20050802101310 Job caused unhandled exception: java.lang.NullPointerException Job: ..... Stacktrace:  java.lang.NullPointerException
   at com.enterprisedt.net.ftp.FTPControlSocket.log(FTPControlSocket.java(Compiled Code))
   at com.enterprisedt.net.ftp.FTPControlSocket.readReply(FTPControlSocket.java(Compiled Code))
   at com.enterprisedt.net.ftp.FTPClient.validateTransfer(FTPClient.java(Compiled Code))
   at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java(Inlined Compiled Code))
   at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java(Inlined Compiled Code))
   at dk.dannet.stdftp.ftpservice.ftpclient.ExchangeFilesImplUpload.putFiles(ExchangeFilesImplUpload.java(Compiled Code))
   at dk.dannet.stdftp.ftpservice.ftpclient.ExchangeFilesImplUpload.sendFiles(ExchangeFilesImplUpload.java(Compiled Code))
   at dk.dannet.stdftp.ftpservice.ftpclient.FtpClientWorker.doJob(FtpClientWorker.java(Compiled Code))
   at dk.dannet.stdftp.ftpservice.StdFtpWorker.loopIteration(StdFtpWorker.java(Compiled Code))
   at dk.dannet.stdftp.ftpservice.StdFtpWorker.run(StdFtpWorker.java:240)
   at java.lang.Thread.run(Thread.java:513)


Its not possible for me to put in the sourcecode, unless I have to find the edtFTPj specific code in various sourcefiles in our program.
The program is running on a Unix platform and its a threaded program.

Do andybody have an idea to what could be the problem ??[/b]

4 Answers

0 votes
by (162k points)
Have you recompiled edtFTPj with debug off? The standard build has debug on & hence should show line numbers.
0 votes
by (260 points)
No we didnt recompile the edtFTPj, we have made an logappender which implements Appender.
0 votes
by (162k points)
That could be the problem - try your app without your appender - use our FileAppender for example, and see if there is a problem then.

No we didnt recompile the edtFTPj, we have made an logappender which implements Appender.
0 votes
by (260 points)
Thanks, I will try that as soon as it is possible.

Categories

...