PDA

View Full Version : Error: Root element not set


vis
06-07-2003, 02:31 PM
Hello!

Just downloaded lps-v1 (for Windows), installed and run. When I am running any LZX app, like:
http://127.0.0.1:8080/lps-v1/examples/animation.lzx
I get:
Error: Root element not set

2003-06-07 13:52:07 ApplicationDispatcher[/lps-v1] Servlet.service() for servlet LZViewer threw exce
ption
java.lang.IllegalStateException: Root element not set
at org.jdom.Document.getRootElement(Document.java:192 )
at com.laszlosystems.compiler.Parser.readExpanded(Par ser.java:334)
at com.laszlosystems.compiler.Parser.parse(Parser.jav a:414)
at com.laszlosystems.compiler.Compiler.compile(Compil er.java:221)
at com.laszlosystems.compiler.Compiler.compile(Compil er.java:149)
at com.laszlosystems.cm.CompilationManager.updateItem (CompilationManager.java:323)
at com.laszlosystems.cm.CompilationManager.findItem(C ompilationManager.java:234)
at com.laszlosystems.cm.CompilationManager.getCanvas( CompilationManager.java:201)
at com.laszlosystems.cm.CompilationManager.getCanvas( CompilationManager.java:185)
at com.laszlosystems.servlets.LZViewer.doGet(LZViewer .java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doF orward(ApplicationDispatcher.java:432)
at org.apache.catalina.core.ApplicationDispatcher.for ward(ApplicationDispatcher.java:356)
at com.laszlosystems.servlets.response.ResponseFILTER .respondImpl(ResponseFILTER.java:67)
at com.laszlosystems.servlets.response.ResponseCompil e.respondImpl(ResponseCompile.java:145)

- GET request from: 127.0.0.1
- compiling C:\laszlo\lps-v1\jakarta-tomcat-4.1.12\webapps\lps-v1\examples\anima
tion.lzx...
java.lang.NoSuchMethodError
at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM 2Helper.java:326)
at org.apache.xalan.templates.TemplateList.getHead(Te mplateList.java:471
)
at org.apache.xalan.templates.TemplateList.getTemplat e(TemplateList.java
:528)
at org.apache.xalan.templates.ElemForEach.transformSe lectedNodes(ElemFor
Each.java:432)
at org.apache.xalan.templates.ElemApplyTemplates.exec ute(ElemApplyTempla
tes.java:193)
at org.apache.xalan.transformer.TransformerImpl.execu teChildTemplates(Tr
ansformerImpl.java:2251)
at org.apache.xalan.transformer.TransformerImpl.apply TemplateToNode(Tran
sformerImpl.java:2134)
at org.apache.xalan.transformer.TransformerImpl.trans formNode(Transforme
rImpl.java:1246)
at org.apache.xalan.transformer.TransformerImpl.run(T ransformerImpl.java
:3070)
at java.lang.Thread.run(Thread.java:484)
- Responding with error (text/html): Root element not set

I don't have such problems with lps-dr version (previous build).

Any suggestions ?

- Igor'

bloch
06-07-2003, 03:42 PM
Igor,

We haven't seen this one yet. It's probably a java classpath related problem. What version of the JRE/JVM are you using and do you have any jars in $JAVA_HOME\jre\lib\ext?


Also, the stack trace is a little
confusing. It looks like you
were running LZViewer and it
ran into some configuration problems.

Can you run the animation.lzx app
w/out LZViewer?

If you can't, then it might be a good idea to turn on the LPS detailed debug log. You can turn this on by (1) editing

$INSTALLDIR\jakarta-tomcat-4.1.12\webapps\lps-v1\WEB-INF\lps\config\log4j.properti4es
and changing the first instance of the
word INFO to DEBUG...and (2) restarting
the server.

-Eric

vis
06-07-2003, 06:18 PM
Eric,

Thank you very much for the fast response!
Your first suggestion was absolutely right.
I had some mess with several instances of java machines. I cleared it up and now it is working fine.
I thought this could not be a problem, cause lps-dr was working fine. Btw, I am using Sun JDK 1.4.1_02 right now.

Thanks a lot for the advice.
- Igor'