Hi list,
I try to use _javascript_ing in a svg document
displayed in an applet. I get the following error message :
java.lang.ClassCastException
at org.apache.batik.bridge.BaseScriptingEnvironment.loadScripts(BaseScriptingEnvironment.java:402) at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown Source) at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(Unknown Source) Here is the piece of code in batik-bridge where I
think the problem is :
...
sh =
man.getMainAttributes().getValue("SVG-Handler-Class");
if (sh != null) { // Run the initializer EventListenerInitializer initializer = null ; initializer = (EventListenerInitializer)cll.loadClass(sh).newInstance() ; <<<<<<<<<<<<< ----------------------- ...
The strange thing is that there is no error in squiggle !! My handler class
implements EventListenerInitializer so I don't understand why I get this
error.
I suppose the problem comes from the DocumentJarClassLoader and the
AppletClassLoader but I don't know how solving this.
Does anybody know where I made an error ?!
Thank you in advance,
Best regards,
Johan Duflost
Johan Duflost
Analyst Programmer Belgian Biodiversity Information Facility (BeBIF) Universite Libre de Bruxelles (ULB) Boulevard du Triomphe - campus de la plaine B-1050 Bruxelles http://gis.bebif.be |
<<attachment: test.svg>>
MANIFEST.MF
Description: Binary data
MyAction1.java
Description: Binary data
MyAction2.java
Description: Binary data
MyApplet.java
Description: Binary data
EventListenerInitializerImpl.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]