NoClassDefFoundError

Explorer-like frontend add-on to upload/download.
harsh
Posts: 4
Joined: Wed Oct 30, 2013 6:54 pm

NoClassDefFoundError

Post by harsh »

Using the included applet_ftp_explorer.* (modified for the appropriate url, username, password and IPv6 fix), I get a NoClassDefFoundError. All lib/* files are where they should be.

The details show: jfileupload/transfer/client/http/C

All distributions are V3.2

The Java console shows a PASV connection to the FTP server is open:

Code: Select all

[INFO] MApplet - JFileUpload 3.2 Build FINAL.001
[INFO] MApplet - CustomSM enabled
[INFO] D - Ftp simultaneous connections = 1
[INFO] E - Control encoding: ISO-8859-1
[INFO] Conf - TransferUI instantiated : jfileupload.transfer.client.explorer.ExplorerTransferUI
[INFO] ExplorerTransferUI - JDiskExplorer 3.2 FINAL.001
[INFO] D - Ftp simultaneous connections = 1
[INFO] E - Control encoding: ISO-8859-1
[INFO] D - Ftp simultaneous connections = 1
[INFO] E - Control encoding: ISO-8859-1
[INFO] E - Connected to ftp://webster
[INFO] E - 220 ProFTPD 1.3.4a Server (Webster) [::ffff:10.0.1.80]

[INFO] E - PASV enabled
The JFileUpload applet_ftp.* works as expected and was modified identically.

Any ideas?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: NoClassDefFoundError

Post by support »

Which license do you have? Did you mix binaries of packages from different license?
You cannot mix, it may explain the error.

harsh
Posts: 4
Joined: Wed Oct 30, 2013 6:54 pm

Re: NoClassDefFoundError

Post by harsh »

This is a new server and I don't think I've set up the registration yet. Ultimately, this will be a Pro installation. Will JDiskExplorer not work in demo mode?

The binaries are those from the download links on the respective product pages.

Now that you mention it, I think I have a V2.x Pro registration.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: NoClassDefFoundError

Post by support »

Ok, it should work then. Does the online JDiskExplorer work for you?
http://www.jfileupload.com/products/dem ... lorer.html

harsh
Posts: 4
Joined: Wed Oct 30, 2013 6:54 pm

Re: NoClassDefFoundError

Post by harsh »

The online demo of JDiskExplorer works as expected.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: NoClassDefFoundError

Post by support »

Found the problem in 3.2. Here is the fix:
Just add ",lib/httpimpl.jar" into all ARCHIVE parameters and make sure httpimpl.jar is available in lib/ folder.

harsh
Posts: 4
Joined: Wed Oct 30, 2013 6:54 pm

Re: NoClassDefFoundError

Post by harsh »

support wrote:Just add ",lib/httpimpl.jar" into all ARCHIVE parameters and make sure httpimpl.jar is available in lib/ folder.
That fixed the problem!

Thank you for your help.

kg4izp1
Posts: 1
Joined: Sun Feb 02, 2014 5:18 pm

Re: NoClassDefFoundError

Post by kg4izp1 »

I use the explorer, but I am not a programmer, can you show me where to put this information so that the applet works correctly without the error?

vadims
Posts: 4
Joined: Tue Feb 18, 2014 4:37 pm

Re: NoClassDefFoundError

Post by vadims »

I'm having the exact same issue. Tried the solution by including lib/httpimpl.jar into all ARCHIVE parameters and placing httpimpl.jar in lib/ folder. Still I got the "NoClassDefFoundError" error.
Will it work with the unregistered version?

I'm using:
Java Plug-in 10.51.2.13
JFileUpload 3.2

Java console:
[INFO] MApplet - JFileUpload 3.2 Build FINAL.001
[INFO] MApplet - CustomSM enabled
[INFO] D - Ftp simultaneous connections = 1
[INFO] E - Control encoding: ISO-8859-1
[INFO] Conf - TransferUI instantiated : jfileupload.transfer.client.explorer.ExplorerTransferUI
[INFO] ExplorerTransferUI - JDiskExplorer 3.2 FINAL.001
[INFO] D - Ftp simultaneous connections = 1
[INFO] E - Control encoding: ISO-8859-1
[INFO] D - Ftp simultaneous connections = 1
[INFO] E - Control encoding: ISO-8859-1

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: NoClassDefFoundError

Post by support »

It should work, are you sure you've updated all 3 ARCHIVE parameters in JavaScript with the missing lib?

Post Reply