Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
kevinof  
#1 Posted : Monday, January 14, 2008 7:40:57 PM(UTC)
kevinof

Rank: Newbie

Groups: Member
Joined: 1/14/2008(UTC)
Posts: 2

Just tried the java applet version on Firefox and get a magic number problem. FF version is 2.0.0.11. Java console output is below. Anyone got any ideas?

thanks,
Kevin

Code:
java.lang.ClassFormatError: Incompatible magic value 218762506 in class file com/aurigma/imageuploader/ImageUploader
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	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)

Edited by user Monday, February 25, 2008 3:58:24 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Tuesday, January 15, 2008 3:53:15 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
Joined: 8/3/2003(UTC)
Posts: 998

Hello,
I have searched for this problem resolution in the Internet and found the same bug report. Here what they say:
Quote:
This problem (at least in my case) appears when the applet tries to get an inexistent remote resource and the server reply with a custom 404 HTML page instead of "HTTP/1.0 404 Not Found" error header. In this case the applet do not recognize the alternative 404 page as valid class and generates the error.

I suggest two alternatives to solve this problem:

1) remove the 404 redirection from server (drastic solution);

2) generate the 404 redirection using a server-side script (JSP, PHP, ASP,...) that analize the HTTP_USER_AGENT environment variable and returns an "HTTP/1.0 404 Not Found" header if contains the "Java" word.
In PHP this script looks like the following:

if ( isset($_SERVER['HTTP_USER_AGENT']) AND (!(strpos($_SERVER['HTTP_USER_AGENT'],"Java")===false))) {
// returns 404 error because a Java user agent were recognized
header("HTTP/1.0 404 Not Found");
} else {
// put here your alternative code ...
}

So the Java plug-in of your browser tries to get some .class file for Image Uploader from the current location (your server) and fails because your server returns some custom 404 page. Let's try to check the Java console to see what really is requested. Please, run the Java console, set the trace level to 5 (highest level). Then reproduce the problem and post the appropriate part of Java console contents here. We will check it and think about what to do.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Del  
#3 Posted : Thursday, March 4, 2010 8:53:37 PM(UTC)
Del

Rank: Member

Groups: Member
Joined: 12/9/2009(UTC)
Posts: 10

I am having a similar problem.

the Java console error is as follows:

network: Version checking for ../../IUScripts/ImageUploader6.jar, specified version is 6.5.6.0
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1683cc5
network: Cache entry not found [url: http://localhost/imageuploader/IUScripts/com/aurigma/imageuploader/ImageUploader.class, version: null]
network: Connecting http://localhost/imageuploader/IUScripts/com/aurigma/imageuploader/ImageUploader.class with proxy=DIRECT
network: Connecting http://localhost:80/ with proxy=DIRECT
network: Connecting http://localhost/imageuploader/IUScripts/com/aurigma/imageuploader/ImageUploader.class with cookie "EktGUID=8b8b57a7-39ab-4f56-bda2-f00990b60924; EkAnalytics=newuser; uks_viewpics=Region=Newcastle Upon Tyne"
network: Cache entry not found [url: http://localhost/imageuploader/IUScripts/com/aurigma/imageuploader/ImageUploader/class.class, version: null]
network: Connecting http://localhost/imageuploader/IUScripts/com/aurigma/imageuploader/ImageUploader/class.class with proxy=DIRECT
network: Connecting http://localhost/imageuploader/IUScripts/com/aurigma/imageuploader/ImageUploader/class.class with cookie "EktGUID=8b8b57a7-39ab-4f56-bda2-f00990b60924; EkAnalytics=newuser; uks_viewpics=Region=Newcastle Upon Tyne"
basic: load: class com.aurigma.imageuploader.ImageUploader.class not found.
load: class com.aurigma.imageuploader.ImageUploader.class not found.
java.lang.ClassNotFoundException: com.aurigma.imageuploader.ImageUploader.class
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://localhost/imageuploader/IUScripts/com/aurigma/imageuploader/ImageUploader/class.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: com.aurigma.imageuploader.ImageUploader.class


Any help would be greatly appreciated!
Dmitry  
#4 Posted : Friday, March 5, 2010 5:24:00 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

Here is the article regarding this problem: Incorrect Path to ImageUploader6.jar File.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
shelly_saunders  
#5 Posted : Tuesday, March 9, 2010 4:10:13 PM(UTC)
shelly_saunders

Rank: Newbie

Groups: Member
Joined: 2/18/2009(UTC)
Posts: 9

Another reason you get this is when you have a Forms Authenticated web site and you don't provide access to the directory where the ImageUploader jar is kept. So the user's browser's request to access the jar file fails. Putting this:

<location path="ImageUploader">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location

in web.config solves it, assuming the .jar file is in a filer ImageUploader in your root. IE does not need this but Firefox does.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.