Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
18.3k views
in Java FTP by (320 points)
Hi EDT,

I am using JAlbum 7.2, which in turn embeds edtFTPj-1.5.4 component.
Any attempt to upload/ftp my files to the server fail with java.lang.NullPointerException error.
If I talk to my server via other (2) ftp clients then everything works fine.

The details and full error messages are in this thread (scroll down 5 messages to my post):
http://jalbum.net/forum/message.jspa?messageID=133402
It seems that other users have the same problem, too.

I would appreciate your attention to this matter.

9 Answers

0 votes
by (162k points)
we're taking a look, will get back to you
0 votes
by (162k points)
Does JAlbum have any logging?

Can edtFTPj be updated easily in JAlbum?
0 votes
by (320 points)
Bruce, let me bring the expert. Stay tuned.
0 votes
by (320 points)
BTW, the server in question is FreeBSD's ftpd. I don't know the version right now, but I'm sure it's very recent one (server's sysadmin is on FreeBSD core team, so he must have it fresh)
0 votes
by (320 points)
Does JAlbum have any logging?

Can edtFTPj be updated easily in JAlbum?


The answers from JAlbum's author David Ekholm:

> Does JAlbum have any logging?

Yes, pressing F7 on the main window will open a logging console window

> Can edtFTPj be updated easily in JAlbum?

Yes, just stuff updated code into the JAlbum.jar archive (Use Java version)


That's what I caught in the console while doing "Smart Upload":

JAlbum 7.2.1 system console.
This section captures debug prints sent to System.out and System.err
The top section evaluates BeanShell expressions (interpreted Java)
Press Ctrl+E to evaluate an expression. (Evaluates selected text if selection is active)
You have access to the basic JAlbum implicit objects such as engine and window

Sample expressions:
4*(3+2); // Basic calculations
engine.getSkin(); // Use of implicit object
for (int i=1; i<10; i++) System.out.println(i); // Iterations
window.messageBox("You can interact with any Java object");

info.cqs.remotefs.RemoteFSException: com.enterprisedt.net.ftp.FTPException: Transfer complete.
at info.cqs.remotefs.ftp.FtpAdapter.putFile(Unknown Source)
at info.cqs.remotefs.RemoteFSBean.<unknown>(Unknown Source)
at se.datadosen.jalbum.UploadBean.calcTimeDifference(Unknown Source)
at se.datadosen.jalbum.UploadBean.uploadAlbum(Unknown Source)
at se.datadosen.jalbum.JPublishWizard$PublishStep$15.run(Unknown Source)
Caused by: com.enterprisedt.net.ftp.FTPException: Transfer complete.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(Unknown Source)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(Unknown Source)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocket(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.setupDataSocket(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.initPut(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.putData(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.put(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.put(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.<unknown>(Unknown Source)
... 5 more
0 votes
by (320 points)
Then I installed the latest JAlbum 7.2.1 Java-version. The result was the same: the upload window hangs with "0 files of 0..." message. But in console window the info was slightly different:


JAlbum 7.2.1 system console.
This section captures debug prints sent to System.out and System.err
The top section evaluates BeanShell expressions (interpreted Java)
Press Ctrl+E to evaluate an expression. (Evaluates selected text if selection is active)
You have access to the basic JAlbum implicit objects such as engine and window

Sample expressions:
4*(3+2); // Basic calculations
engine.getSkin(); // Use of implicit object
for (int i=1; i<10; i++) System.out.println(i); // Iterations
window.messageBox("You can interact with any Java object");

java.lang.NullPointerException
   at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:2370)
   at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:2286)
   at info.cqs.remotefs.ftp.FtpAdapter.getFiles(FtpAdapter.java:302)
   at info.cqs.remotefs.RemoteFSBean.getFiles(RemoteFSBean.java:251)
   at se.datadosen.jalbum.UploadBean.scanRemoteFiles(UploadBean.java:447)
   at se.datadosen.jalbum.UploadBean.scanRemoteFiles(UploadBean.java:460)
   at se.datadosen.jalbum.UploadBean.scanRemoteFiles(UploadBean.java:460)
   at se.datadosen.jalbum.UploadBean.uploadAlbum(UploadBean.java:308)
   at se.datadosen.jalbum.JPublishWizard$PublishStep$15.run(JPublishWizard.java:1237)
0 votes
by (162k points)
Is there an anonymous account on this FTP server that we can test against?
0 votes
by (320 points)
Unforunately, not. It's pretty tight indeed.
0 votes
by (162k points)
Ok. Because you are using an older jar, it is difficult to find out where the null ptr is happening. If you email us at support@.... then we'll send you the latest jar and we'll then know what line this is happening, and it should be trivial to fix.

Categories

...