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.

Comments

sdrycroft’s picture

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

mkruisselbrink’s picture

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.

sdrycroft’s picture

Assigned: Unassigned » sdrycroft
Status: Active » Fixed

This is hopefully fixed by v1.1.

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

Simon

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

nimzie’s picture

Status: Closed (fixed) » 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

sdrycroft’s picture

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

nimzie’s picture

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.

nimzie’s picture

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

alexpz’s picture

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

sdrycroft’s picture

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?).

greggles’s picture

Title: hi Simon » Applet postled notinited - doesn't work

restoring the issue title.

sdrycroft’s picture

Status: Active » Closed (fixed)