Problems with JAVA Uploader

Phoca Gallery - image gallery extension
Spearhead
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 Feb 2009, 23:04

Problems with JAVA Uploader

Post by Spearhead »

Hi, i've got troubles with the Java Uploader using Phoca Gallery 2.2beta. Firefox returns following error:

Code: Select all

ERROR:$("upload-clear")is null
Using Windows the problem doesn't appear. On the mac it happens with all Browsers (Safari,Opera,Firefox). Could anyone help me?


EDIT: Java-console shows this error:

Code: Select all

java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.<init>(IF)V
	at wjhk.jupload2.gui.JUploadFileView.<init>(JUploadFileView.java:214)
	at wjhk.jupload2.gui.JUploadFileChooser.<init>(JUploadFileChooser.java:65)
	at wjhk.jupload2.policies.DefaultUploadPolicy.createFileChooser(DefaultUploadPolicy.java:2163)
	at wjhk.jupload2.policies.PictureUploadPolicy.createFileChooser(PictureUploadPolicy.java:712)
	at wjhk.jupload2.gui.JUploadPanel.<init>(JUploadPanel.java:180)
	at wjhk.jupload2.JUploadApplet.init(JUploadApplet.java:153)
	at sun.applet.AppletPanel.run(AppletPanel.java:380)
	at java.lang.Thread.run(Thread.java:613)
sideburns
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 06 Feb 2009, 07:33

Re: Problems with JAVA Uploader

Post by sideburns »

I'm having the same problems with the java uploader on the mac (both Safari and Firefox). I've tried multiple versions of Java using Java Preferences, all with the same result. Here's the Java console output (slightly different from the previous poster):
network: Connecting http://www.lavenderlounge.com/joomla/ad ... properties with cookie "fontSize=80; 17814126d1a6b43b9c18a3fc23892d4b=c950fe92aed1a712731289234d630622"
-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;@f5d030
basic: Starting applet…
Spearhead
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 Feb 2009, 23:04

Re: Problems with JAVA Uploader

Post by Spearhead »

i talked to the developer, and he said that there are java libraries used which aren't contained in the Apple Java Framework. So it seems that the only way out is to use a virtual machine with windows.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problems with JAVA Uploader

Post by Jan »

:(
If you find Phoca extensions useful, please support the project
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Problems with JAVA Uploader

Post by marcus178 »

Jan wrote::(
This is sad indeed, surely there must be some way to fix this.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problems with JAVA Uploader

Post by Jan »

Hi, as I didn't write the java applet, so I cannot say when this will be fixed :-(

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problems with JAVA Uploader

Post by Jan »

Hi, there are some problems with flash upload now (it doesn't work on some PC which have installed actualized flash plugin) so for now there is no such option. First this needs to be solved (should be solved in 1.6), then the security of flash uploading needs to be solved too (search this forum for security problems with flash uploading in frontend)

Jan
If you find Phoca extensions useful, please support the project
Post Reply