PDA

View Full Version : Running Example


safarje
10-07-2004, 06:42 AM
Hi,

I have just install the 2.2 version on Linux Suse 9.1 and Windows XP and both yield the same issue to me which is as follows:

The installation goes fine.
Tomcat starts and the explorer works perfectly.
When running the examples, however, the first time, everything works as planned, yet, any modification, even the one reestablishing the original code will give me a compilation error which only a click on reset will remove.

Any help would .. help .. :-)

Regards,
Jean Safar

exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.ClassFormatError: Duplicated LocalVariableTable attribute entry for 'itmp' in class file org/python/core/PyObject
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java :605)
java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findC lassInternal(WebappClassLoader.java:1634)
org.apache.catalina.loader.WebappClassLoader.findC lass(WebappClassLoader.java:860)
org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1307)
org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1189)
java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:303)
com.laszlosystems.sc.ScriptCompiler._compileToByte Array(ScriptCompiler.java:111)
com.laszlosystems.sc.ScriptCompiler.compileToByteA rray(ScriptCompiler.java:190)
com.laszlosystems.compiler.SWFWriter.addScript(SWF Writer.java:344)
com.laszlosystems.compiler.SWFWriter.setCanvas(SWF Writer.java:292)
com.laszlosystems.compiler.CompilationEnvironment. setCanvas(CompilationEnvironment.java:162)
com.laszlosystems.compiler.CanvasCompiler.compile( CanvasCompiler.java:210)
com.laszlosystems.compiler.Compiler.compileElement (Compiler.java:442)
com.laszlosystems.compiler.Compiler.compile(Compil er.java:310)
com.laszlosystems.compiler.Compiler.compile(Compil er.java:160)
com.laszlosystems.cm.CompilationManager.compileIte m(CompilationManager.java:706)
com.laszlosystems.cm.CompilationManager.getItem(Co mpilationManager.java:498)
com.laszlosystems.cm.CompilationManager.getLastMod ified(CompilationManager.java:466)
com.laszlosystems.servlets.responders.ResponderCom pile.getLastModified(ResponderCompile.java:399)
com.laszlosystems.servlets.responders.ResponderCom pile.respondImpl(ResponderCompile.java:185)
com.laszlosystems.servlets.responders.Responder.re spond(Responder.java:220)
com.laszlosystems.servlets.LZServlet._doGet(LZServ let.java:306)
com.laszlosystems.servlets.LZServlet.doGet(LZServl et.java:242)
javax.servlet.http.HttpServlet.service(HttpServlet .java:697)
javax.servlet.http.HttpServlet.service(HttpServlet .java:810)

bloch
10-07-2004, 09:26 AM
Sorry.

This looks like you're running against Java 1.5 (5.0).

Assuming I'm right, the rest of this applies:

LPS doesn't currently work under Java 1.5 (precisely because of the problem you're seeing).

Try re-installing LPS against Java 1.4.2.

-Eric