Problem With Java Upload

Phoca Gallery - image gallery extension
yarivsade
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 25 Apr 2009, 10:22

Problem With Java Upload

Post by yarivsade »

Hi Jan,

Thanks for this great plug in you make,Life become easier with Phoca gallery,

i face problem using the Java Upload,and get the message below:
I tried on Firefox/IE and Safari and face the same problem.

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://1000miles.biz/administrator/wjhk ... plet.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

Any idea how to solve it ?

Yariv
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem With Java Upload

Post by Jan »

Hi, which operating system do you use?
If you find Phoca extensions useful, please support the project
Hessi
Phoca Member
Phoca Member
Posts: 27
Joined: 04 Mar 2009, 20:23

Re: Problem With Java Upload

Post by Hessi »

Hi Jan,

I have a similar problem: Under OS X (10.4.11, Tiger) no Browser work with the Java-Uploader. Safari doesn't ask for the password for the J!/administrator-Folder (it's protected by access.html) - all other browsers do. Effect is the same: a red cross in the upper left corner.

Any Idea?
Regards
Michael
Hessi
Phoca Member
Phoca Member
Posts: 27
Joined: 04 Mar 2009, 20:23

Re: Problem With Java Upload

Post by Hessi »

Hi Jan,

here's the java-log (if I've typed in the correkt PW for the administrator-folder):
MRJ Plugin for Mac OS X v1.0.1
[starting up Java Applet Security @ Thu May 07 14:14:57 CEST 2009]
Thu May 07 14:15:12 CEST 2009 JEP creating applet wjhk.jupload2.JUploadApplet (http://homecon.net/index.php/)
-ERROR- null
java.lang.NullPointerException
at wjhk.jupload2.policies.DefaultUploadPolicy.<init>(DefaultUploadPolicy.java:485)
at wjhk.jupload2.policies.PictureUploadPolicy.<init>(PictureUploadPolicy.java:220)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at wjhk.jupload2.policies.UploadPolicyFactory.getUploadPolicy(UploadPolicyFactory.java:106)
at wjhk.jupload2.JUploadApplet.init(JUploadApplet.java:151)
at sun.applet.AppletPanel.run(AppletPanel.java:380)
at jep.AppletFramePanel.run(AppletFramePanel.java:176)
at java.lang.Thread.run(Thread.java:613)
-ERROR- java.lang.reflect.InvocationTargetException in newInstance(error message: null)
null
[Ljava.lang.StackTraceElement;@f549de
Thu May 07 14:15:18 CEST 2009 JEP creating applet wjhk.jupload2.JUploadApplet (http://homecon.net/index.php/)
-ERROR- null
java.lang.NullPointerException
at wjhk.jupload2.policies.DefaultUploadPolicy.<init>(DefaultUploadPolicy.java:485)
at wjhk.jupload2.policies.PictureUploadPolicy.<init>(PictureUploadPolicy.java:220)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at wjhk.jupload2.policies.UploadPolicyFactory.getUploadPolicy(UploadPolicyFactory.java:106)
at wjhk.jupload2.JUploadApplet.init(JUploadApplet.java:151)
at sun.applet.AppletPanel.run(AppletPanel.java:380)
at jep.AppletFramePanel.run(AppletFramePanel.java:176)
at java.lang.Thread.run(Thread.java:613)
-ERROR- java.lang.reflect.InvocationTargetException in newInstance(error message: null)
null
[Ljava.lang.StackTraceElement;@ce397
cu
m

Edit: This is the log on OS X 10.5.4 (Intel), Firefox 3.0.10, J2SE 5.0 activated
The problem is the same on 10.4.11 (PPC) with Safari, FF, Omniweb, Opera, Cab and Camino.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem With Java Upload

Post by Jan »

Hi, this is known issue on Macs, I am waiting for fixing this problem, but there is no fix still (for this java code) :-(
If you find Phoca extensions useful, please support the project
Hessi
Phoca Member
Phoca Member
Posts: 27
Joined: 04 Mar 2009, 20:23

Re: Problem With Java Upload

Post by Hessi »

Hi Jan,

in order to find another solution for the gallery component, I'm using Ice-Gallery, now. I don't like the design, but it's using "JumpLoader" to upload the pictures. This tool is pretty cool. Looks very good, uploads also folders and zips.
It has a informative display for overall and single uploads.

Don't be angry, perhaps this is a solution for the problems with your non-standart-uploader? :)

Kind Regards
Michael
Hessi
Phoca Member
Phoca Member
Posts: 27
Joined: 04 Mar 2009, 20:23

Re: Problem With Java Upload

Post by Hessi »

Hi Jan,

i've heard, there are many Problems with the last Java-Update? Any news about an alternative to the java-applet in your component? Did you have a look to jump-loader? What do you think? Is there a chance to become a working uploder with phoca gallery?

It's difficult to replace the uploader by myself?

TIA
Michael
Hessi
Phoca Member
Phoca Member
Posts: 27
Joined: 04 Mar 2009, 20:23

Re: Problem With Java Upload

Post by Hessi »

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem With Java Upload

Post by Jan »

Hi, there are two minor bugs, which I will fix in 2.5.0 beta:

- I am going to add absolute path to the java uploader (so maybe on Mac no more problems with this uploader will be)
- and conditional comment for IE, so maybe there will be no more problem with IE

Jan
If you find Phoca extensions useful, please support the project
Hessi
Phoca Member
Phoca Member
Posts: 27
Joined: 04 Mar 2009, 20:23

Re: Problem With Java Upload

Post by Hessi »

Hi Jan,

great news! I'll be your beta-tester! Pls send me the Link to the latest beta, I'll try it! :D

Gruß
Michael
Post Reply