Page 1 of 2
probs with the JAVA Uploader
Posted: 09 Jun 2009, 15:31
by Dirk67
Hi,
I just activated the JAVA Upload for the first time in backend.
But now in front-end (and in backend) the JAVA Upload does not work -> displaying a small red cross only
JAVA Console reports the following:
Code: Select all
Java Plug-in 1.5.0
Using JRE version 1.5.0 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator
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(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I read also this:
-->
viewtopic.php?f=1&t=4013&p=20897&hilit= ... oad#p20897
but this thread is related to MAC (?)
I get this problem with Win XP with IE7 and with firefox 3.0.10 as well...
Is it a kind of common problem ?
Can someone help ?
_________________
gallery 2.2.4
joomla 1.5.11
Re: probs with the JAVA Uploader
Posted: 11 Jun 2009, 00:27
by Jan

As I have tested it, it should work without any problems on XP, like on Linux Suse

Re: probs with the JAVA Uploader
Posted: 11 Jun 2009, 07:34
by Dirk67
Jan wrote:
As I have tested it, it should work without any problems on XP, like on Linux Suse

very strange...
which browser- and java(JRE)- versions did you test ?
I tested yesterday with 5 different PC's from 3 different locations to upload with JAVA --> in all cases it didn't work
Can it be something with my server configuration ?
Can it be something with some firewall settings ?
Re: probs with the JAVA Uploader
Posted: 11 Jun 2009, 13:22
by Dirk67
may it have something to do with the file- or owner permissions on my server ?
My hoster uses "apache2handler" for php
and there are used 2 "owner/user-types" in the filesystem:
"wwwrun" and "ftpuser"
Since the FTP-Layer is switched on in my joomla-installation, I got no problems with this up to now,
but all files within the joomla installation are (of course) owned by the owner/user-type "ftpuser" and not "wwwrun" ...
may my problem have something to do with this ?
Re: probs with the JAVA Uploader
Posted: 13 Jun 2009, 23:34
by Jan
Hi, yes, if ftp layer is enabled, then the owner is the ftp account, so advantage is, you can work with your files (which e.g. do you have copied with some ftp client).
so if ftp is enabled, there should not be problem

, if yes, maybe problems with ownership of files or folders (files and folders were not copied by ftp and have other then ftp account ownership)
Jan
Re: probs with the JAVA Uploader
Posted: 14 Jun 2009, 14:17
by Dirk67
I checked all ownerships of the files.
All files are of ownership "ftpuser"
exept the thumbs that are created by the phoca-gallery:
phoca_thumb_l_xxx.jpg
phoca_thumb_m_xxx.jpg
phoca_thumb_s_xxx.jpg
this files are of ownership "wwwrun".
Is this normal ?
Can this be a problem in connection with the java uploader ? -> I think not...
another thing:
in my php-info it is written:
This server is protected with the Suhosin Patch 0.9.6.2 Copyright (c) 2006 Hardened-PHP Project
in another forum I read, that this may couse trouble with some java upload scripts..
does somebody know something about this "Suhosin Patch"?
Re: probs with the JAVA Uploader
Posted: 16 Jun 2009, 15:34
by Dirk67
finally I can get it to work with firefox now...
don't ask me why...
One thing was that I updated to JRE 1.6.0_14 and deinstalled all previous versions...
but
I doesn't work with IE7
(the Java Console reports now: "APPLET tag missing CODE parameter")
regarding this question I took a look on the the generated html source:
Code: Select all
<h2>Heraufladen per JAVA</h2>
<object classid="java:wjhk.jupload2.JUploadApplet" type="application/x-java-applet" archive="/joomla/administrator/components/com_phocagallery/assets/java/jupload/wjhk.jupload.jar" height="480" width="640" >
<param name="archive" value="/joomla/administrator/components/com_phocagallery/assets/java/jupload/wjhk.jupload.jar" />
<param name="postURL" value="http://xxx.24max.de/joomla/index.php?option=com_phocagallery&view=user&Itemid=106&task=javaupload&e41dae95709e690a2c7d5a601943abbd=4036cfd47081854cc2320f159ea03543&c8d1daa3f0ad48ee2abbdb4fa02c0b33=1&viewback=user&tab=1"/>
<param name="afterUploadURL" value="http://xxx.24max.de/joomla/index.php?option=com_phocagallery&view=user&Itemid=106&tab=1"/>
<param name="allowedFileExtensions" value="jpg/gif/png/" />
<param name="uploadPolicy" value="PictureUploadPolicy" />
<param name="nbFilesPerRequest" value="1" />
<param name="maxPicHeight" value="-1" />
<param name="maxPicWidth" value="-1" />
<param name="maxFileSize" value="3000000" />
<param name="pictureTransmitMetadata" value="true" />
<param name="showLogWindow" value="false" />
<param name="showStatusBar" value="true" />
<param name="pictureCompressionQuality" value="1" />
<!--<![endif]-->
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-i586.cab" height="480" width="640" >
<param name="code" value="wjhk.jupload2.JUploadApplet" />
<param name="archive" value="/joomla/administrator/components/com_phocagallery/assets/java/jupload/wjhk.jupload.jar" />
<param name="postURL" value="http://xxx.24max.de/joomla/index.php?option=com_phocagallery&view=user&Itemid=106&task=javaupload&e41dae95709e690a2c7d5a601943abbd=4036cfd47081854cc2320f159ea03543&c8d1daa3f0ad48ee2abbdb4fa02c0b33=1&viewback=user&tab=1"/>
<param name="afterUploadURL" value="http://xxx.24max.de/joomla/index.php?option=com_phocagallery&view=user&Itemid=106&tab=1"/>
<param name="allowedFileExtensions" value="jpg/gif/png" />
<param name="uploadPolicy" value="PictureUploadPolicy" />
<param name="nbFilesPerRequest" value="1" />
<param name="maxPicHeight" value="-1" />
<param name="maxPicWidth" value="-1" />
<param name="maxFileSize" value="3000000" />
<param name="pictureTransmitMetadata" value="true" />
<param name="showLogWindow" value="false" />
<param name="showStatusBar" value="true" />
<param name="pictureCompressionQuality" value="1" />
<div style="color:#cc0000">Java 1.5 or higher plugin required.</div>
</object>
<!--[if !IE]> -->
</object>
<!--<![endif]-->
wonder why there is a single
in the middle (without an 'if' before ?)
and in the end:
Code: Select all
</object>
<!--[if !IE]> -->
</object>
<!--<![endif]-->
is it ment to be this way ?
is there missing an somewhere ?[/b]
___________________________________
another thing is:
you use jupload V4.0 RC1
would it be a good idea to use the actual V4.3.0 from
http://jupload.sourceforge.net ?
since their demo -->
http://jupload.sourceforge.net/applet-b ... cture.html
works in my IE7 (!)
can I update it by myself ?
Re: probs with the JAVA Uploader
Posted: 17 Jun 2009, 09:15
by Dirk67
I think I finally found it:
I think there is missing an
<!--[if !IE]> --> in some files...
you can see it the right way in the following files:
../administrator/components/com_phocagallery/views/phocagalleryi/tmpl/default_javaupload.php
../administrator/components/com_phocagallery/views/phocagallerym/tmpl/form_javaupload.php
there is a
<!--[if !IE]> --> before the first <object> like this
Code: Select all
<h2><?php echo JText::_('Java Upload'); ?></h2>
<!--[if !IE]> -->
<object classid="java:wjhk.jupload2.JUploadApplet" type="application/x-java-applet" archive="<?php echo $archive;?>" height="<?php echo $this->tmpl['javaboxheight'] ?>" width="<?php echo $this->tmpl['javaboxwidth'] ?>" >
I think the following files have to be corrected by inserting the missing
<!--[if !IE]> --> (the way like you can see it above):
../components/com_phocagallery/views/category/tmpl/default_upload.php
../components/com_phocagallery/views/user/tmpl/default_upload.php
../administrator/components/com_phocagallery/front/views/category/tmpl/default_upload.php
../administrator/components/com_phocagallery/front/views/user/tmpl/default_upload.php
in all of the 4 files the first b]<!--[if !IE]> --> [/b] is missing.
I did this correction
and now it works for me (with an actual JAVA Version) with IE7 IE8 and FF3
Can someone confirm this ?
Re: probs with the JAVA Uploader
Posted: 18 Jun 2009, 17:17
by Jan
Hi, you are right, it is missed in front, so I will fix it in 2.5.0 beta
Thank you, Jan
JAVA Uploader doesnt appear front end
Posted: 27 Sep 2009, 14:41
by justinjools
I have enabled Java Uploader and user control panel in the back end menu item under category layout list but it is not appearing on the front page. I can't understand this and I can't find any settings I have overlooked to enable it, it should appear on the front end gallery but doesnt:
In category list layout i enable control panel settings
and in upload settings enable java uploader
doesnt appear...
please help