Java Applet Error Using JUpload 3.5.0 Java Applet Error Using JUpload 3.5.0
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Java Applet Error Using JUpload 3.5.0

Started by Zyrac, April 16, 2009, 05:21:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zyrac

Hi Etienne,
I am a novice and have a problem with JUload 3.5.0 I have completed the upload of the plugin through coppermine 1.4.20 plugin upload.
I've followed your cofig instructions to the letter, but when I go to the coppermine/JUpload page the jave applet is blank except for showing
Error - Click For Details. When I click I get The following -


Java Plug-in 1.6.0_13
Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
User home directory = C:\Users\Zyrac
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


load: class wjhk.jupload2.JUploadApplet not found.
java.lang.ClassNotFoundException: wjhk.jupload2.JUploadApplet
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.zuphoria.com/zuphoriatest/copper/wjhk/jupload2/JUploadApplet.class
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 7 more
Exception: java.lang.ClassNotFoundException: wjhk.jupload2.JUploadApplet
load: class wjhk.jupload2.EmptyApplet not found.
java.lang.ClassNotFoundException: wjhk.jupload2.EmptyApplet
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.zuphoria.com/zuphoriatest/copper/wjhk/jupload2/EmptyApplet.class
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 7 more
Exception: java.lang.ClassNotFoundException: wjhk.jupload2.EmptyApplet
[DEBUG] Trying to load the given uploadPolicy: CoppermineUploadPolicy
[DEBUG] wjhk.jupload2.policies.CoppermineUploadPolicy successfully loaded.
load: class wjhk.jupload2.JUploadApplet not found.
java.lang.ClassNotFoundException: wjhk.jupload2.JUploadApplet
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.zuphoria.com/zuphoriatest/copper/wjhk/jupload2/JUploadApplet.class
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 7 more
Exception: java.lang.ClassNotFoundException: wjhk.jupload2.JUploadApplet
load: class wjhk.jupload2.EmptyApplet not found.
java.lang.ClassNotFoundException: wjhk.jupload2.EmptyApplet
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.zuphoria.com/zuphoriatest/copper/wjhk/jupload2/EmptyApplet.class
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 7 more
Exception: java.lang.ClassNotFoundException: wjhk.jupload2.EmptyApplet


The following is my phpinfo -

PHP Version 5.2.8

System    Linux dawn.host-care.com 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 12:03:43 EST 2008 i686
Build Date    Feb 26 2009 01:04:43
Configure Command    './configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-safe-mode' '--enable-sockets' '--enable-wddx' '--enable-zip' '--prefix=/usr' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mime-magic' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'
Server API    CGI
Virtual Directory Support    disabled
Configuration File (php.ini) Path    /usr/lib
Loaded Configuration File    /usr/local/lib/php.ini
Scan this dir for additional .ini files    (none)
additional .ini files parsed    (none)
PHP API    20041225
PHP Extension    20060613
Zend Extension    220060519
Debug Build    no
Thread Safety    disabled
Zend Memory Manager    enabled
IPv6 Support    enabled
Registered PHP Streams    zip, php, file, data, tftp, ftp, telnet, dict, http, https, ftps, compress.bzip2, compress.zlib
Registered Stream Socket Transports    tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters    string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*


Please help as I would really like to use the JUpload Plugin as the coppermine batch upload is not suitable for my needs.
Weather or not I use coppermine hangs on me being able to use your plugin, I know that it may be a simple problem
But I am not seeing it. My site test address is http://www.zuphoria.com/zuphoriatest/copper/index.php

Thank you so much in advance.

Zyarc

etienne_sf

Hi,

The 'real' error is:

java.io.IOException: open HTTP connection failed:http://www.zuphoria.com/zuphoriatest/copper/wjhk/jupload2/EmptyApplet.class


  Java has loaded correctly into your computer. It now needs to access to the applet code, which is on server, in the plugin. But it can't connect to the server.


  Perhaps you have a personal firewall, that prevent Java to access to the net ?


AFAIR, this error is due to the java blocked before accessing the server. But you should also check the Gallery path, in your Coppermine configuration.


Etienne

Zyrac

Hi Again,
I have copied the exact pathway to the jar file into the config, have also uninstalled it an reinstalled.
I've turned all my firewalls off. When I go to your test site it works perfect both in IE and Firefox,
But when I come back to my site it does not. As I said I am very new to web site construction, But I
learn by trial and error I know it may have something to do with the jar path, Would there be restrictions
put in by my host for java programs? I am at a loss please help, and Thank You for your patience with a newbie.
Marc. [Zyrac]

etienne_sf

Hi,

  If my demo site works on your computer, then the problem is probably not on the client side.

I just read again your java output. I missed this part, when I first answered:

[DEBUG] wjhk.jupload2.policies.CoppermineUploadPolicy successfully loaded.


  This lines means the jar file has been found. You may then ignore the other errors. There are several ways to look for class files, and we don't care on the way it actually load classes, provided that these classes are loaded.
  (I'll have to deal with that again, as I thought it was ok now, but it's not really an issue)


So:
Can you confirm that you get this output every time ?


Can you give me a test account?
This issue seems really strange to me.

Etienne

etienne_sf

Several errors here:

The jarPath was wrong: the http:// was missing.

I just emptied the jarPath JUpload parameter. It works now.

Etienne