Ah. I delete the old class file, stop and restart the Swiki, attach the
"right" one. 

Now, pointing Netscape at the uploads directory runs the applet just
fine, while doing it through Swiki the images don't load. 

In the Java console for the Swiki I get:

# Applet exception: error: java.lang.ClassFormatError: Wrong class name
inside class file
java.lang.ClassFormatError: Wrong class name inside class file
  at java.lang.ClassLoader.defineClass(ClassLoader.java:250)
  at
netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:620)
  at
netscape.applet.AppletClassLoader.findClass(AppletClassLoader.java:805)
  at
netscape.applet.AppletClassLoader.loadClass1(AppletClassLoader.java:688)
* at
netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:652)
  at
netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:629)
  at
netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(DerivedAppletFrame.java:438)
  at
java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
  at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)

and such.

Which is _really_ helpful, I don't think.

As before, the damn thing, on the same version of Netscape, in the same
directory, outside Swiki, runs fine. No errors, nothing in the Java
Console, no glitches.

Guesses.

1.      There are a lot of calls to the class file. There seems to be a lot
of threading involved with this. Is Swiki doing the first call OK, but
screwing up subsequent ones?

2.      Memory and suchlike: the applet has a fair few audio files, and I've
no sound configured. Could there be some kind of memory (or even waiting
for event) issue happening here?

This is all deeply puzzling (whether it's deeply worrying really depends
on whether you want to run applets in Swiki ;-).

I wonder, is there anything in Comanche which could tell me (in more
sensible terms than the Java Console) what's going on?

Ah well, I've a soundcard waiting to be configured, some stuff on
ClassInitialisation (in Java) that Ger has sent me, Filix's idea of one
big jar archive and a few days away from the dreaded keyboard.

Must dash!

Cheers

John 
-- 
Reputed to be the reason Windows 2000 was nearly a year late, (paid in
shares M$Ds needed the cash and kudos) Netproject's Eddie Bleasdale has
renewed his challenge to virus writers. The first person to infect his
Linux box wins 10,000 pounds.

http://www.silicon.com/bin/bladerunner?30REQEVENT=&REQAUTH=21046&14001REQSUB=REQINT1=48211

Reply via email to