🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2773

Bad Magic Number

#2773
From: Martijn
Date: Fri, 17 Mar 2000 00:00
43 lines
2697 bytes
Hi,

I have the following problem.
I made a jar-file from JBuilder 3. And am using the Sun Java Plugin 1.2.2 to
view the applet inside in Netscape, IE5 and Opera.

Because i need to write to the local hard-drive, and i don't want those
warning banners to show up, i'm signing the applet, and distributing the
certificate to a client and use policytool.

Now, when the jar-file is not signed, it runs fine. (however crippled)
When it IS signed, i get an error message in both Netscape and IE5.
In Opera, it will sometimes run, but not always.

The error message in the Plugin console:

Opening http://MyIP/vision/docs/Trivia/Trivia.jar no proxy
CacheHandler file name: C:\Program
Files\Netscape\Users\me\cache\MU13GVMV.JAR
Opening http://myIP/vision/docs/Trivia/Trivia/Trivia.class no proxy

CacheHandler file name: C:\Program
Files\Netscape\Users\me\cache\MVF5IG0E.CLA
java.lang.ClassFormatError: Trivia/Trivia (Bad magic number)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at sun.applet.AppletClassLoader.findClass(Unknown Source)
 at sun.plugin.security.PluginClassLoader.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)

Does anyone know what's going on here. I have no idea what i'm looking at
here.
Again, it DOES work when the applet is NOT signed!
Can anyone please help me?
Technical Details
Message-ID: <953289248.742391@newsreader1.wirehub.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,a768e4de6b042aea,start
X-Google-Attributes: gid1089d0,public
From: "Martijn" <martijn@uniware.nl>
Subject: Bad Magic Number
Date: 2000/03/17
Message-ID: <953289248.742391@newsreader1.wirehub.nl>
X-Deja-AN: 598698445
Cache-Post-Path: newsreader1.wirehub.nl!unknown@ip195-86-113-176.dyn.wirehub.net
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Complaints-To: abuse@wirehub.net
X-Trace: thor.wirehub.nl 953289248 85697 195.86.128.18 (17 Mar 2000 10:34:08 GMT)
Organization: Wirehub! Internet, The Netherlands
X-MSMail-Priority: Normal
X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/)
NNTP-Posting-Date: 17 Mar 2000 10:34:08 GMT
Newsgroups: borland.public.jbuilder.java.api