hi Simon

beatelic - November 19, 2007 - 22:31
Project:Multiple Image Upload
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:sdrycroft
Status:active
Description

I just installed your module on a pretty new installation of Drupal 5.3, there is only the image modul und the Juploader installed.

When i want to create new images the applet isn't loaded. Even my whole firefox breaks down, in the IE i can at least see what the page looks like.

I have to say, i really like it. It looks perfect to me, but just doesn't work somehow.

Here is what Java gave me:

java.lang.ClassNotFoundException: Main.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more

please help me out.

#1

sdrycroft - November 23, 2007 - 12:06

Can you supply me with a link?

This looks to me like the URL to the applet jar file isn't quite right.

If you look at the source code for the page (when adding images), you should be able to find a URL which ends "postlet.jar". Is this URL valid (can you copy and paste it into a browser, and download the postlet.jar file)?

Simon

#2

mkruisselbrink - November 27, 2007 - 03:01

I have the same problem as the original reporter, and in my case the url from which it tries to load the .jar is http://localhost:8888/drupaltest/?q=sites/all/modules/imagex/postlet/pos..., which results in a 404 as expected. When I try the same url without the ?q= part it can find it, so I expect it also will work correctly when using clean urls.

#3

sdrycroft - November 27, 2007 - 10:55
Assigned to:Anonymous» sdrycroft
Status:active» fixed

This is hopefully fixed by v1.1.

Please test and confirm if it is or isn't fixed.

Simon

#4

Anonymous - December 11, 2007 - 11:03
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#5

nimzie - October 15, 2008 - 16:22
Status:closed» active

I am wondering if I can reopen this.

I've got the imagex module installed (newest version) in Drupal 5.7. When I go the multiple image upload screen, I am greeted with a red x, and noinit message from Java. I've installed the newest Java Platform and it seems to be working.

In Drupal, here is the output code:

<div class="messages imagex header"><p>Drop images into the box below, or click the "Add" button, and select the images you'd like to upload</p></div><div class="imagex postlet">

<applet name="postlet" code="Main.class" archive="/lifetrek/sites/all/modules/imagex/postlet/postlet.jar" width="100%" height="300" mayscript>
<param name = "maxthreads" value = "5" />
<param name = "language" value = "EN" />
<param name = "type" value = "application/x-java-applet;version=1.3.1" />
<param name = "destination" value = "http://mysite.ca/lifetrek/imagex/upload" />
<param name = "backgroundcolour" value = "16777215" />
<param name = "tableheaderbackgroundcolour" value = "14079989" />
<param name = "tableheadercolour" value = "0" />
<param name = "warnmessage" value = "false" />

<param name = "autoupload" value = "true"/>
<param name = "helpbutton" value = "false"/>
<param name = "removebutton" value = "false" />
<param name = "addbutton" value = "true"/>
<param name = "uploadbutton" value = "true" />
<param name = "fileextensions" value = "Image Files,jpg,gif,jpeg,bmp,png" />
</applet>
<script type="text/javascript">
  imagesreturnurl ="http://mysite.ca/lifetrek/imagex/get?#";
</script>

</div>

the folder lifetrek/imagex/upload exists - is empty and has 777 permissions. I'm not sure if that affects things.

Cheers,

Adam

#6

sdrycroft - October 15, 2008 - 16:23

Does the URL actually resolve to the Applet i.e. can you download the applet to your browser using that URL? If so, then I'll need to investigate this a little further.

Simon

#7

nimzie - October 15, 2008 - 18:40

Can you elaborate on which URL I should be trying to resolve to the applet?

For instance - the live link to the applet is:
http://shorelineconsulting.ca/lifetrek/sites/all/modules/imagex/postlet/...

Hitting that, Firefox asks me to download the jar file.

#8

nimzie - October 15, 2008 - 22:56

if I go to http://shorelineconsulting.ca/lifetrek/imagex/imagex in IE6, it loads. If I upload through the tool, it goes through the upload process but the files appear nowhere.

Is this supposed to work in FF 3.0.3. ?

Thanks,

adam

#9

alexpz - November 26, 2008 - 03:03
Title:Applet postled notinited - doesn't work» hi Simon

I installed imagex but I can't make it work. When i try to upload images it says uploaded complete but i can't locate the images that i try to upload. It seems that it didn't uploaded the images. Am i missing something or configuration? Can you help me out with this one. I also found out that some has make it work.

Thanks,
Alex

#10

sdrycroft - December 20, 2008 - 22:31

This looks like it is an issue with the applet. Can you attach the output of the Java Console (How can I see the Java Console?).

 
 

Drupal is a registered trademark of Dries Buytaert.