[opencms-dev] Exception when viewing unedited pages
Stefan Moises
beffy at gmx.de
Mon Jul 12 17:39:23 CEST 2004
Hello list,
I have another problem with OpenCMS5.3.5...
I have a jsp template which has 2 bodies, and when I create a new page using
that template and view it BEFORE I have edited it (meaning its completely
empty) I get this error:
java.lang.NullPointerException
at
org.opencms.xml.A_CmsXmlDocument.getBookmarkName(A_CmsXmlDocument.java:89)
at org.opencms.xml.A_CmsXmlDocument.getBookmark(A_CmsXmlDocument.java:246)
at org.opencms.xml.A_CmsXmlDocument.hasElement(A_CmsXmlDocument.java:168)
at
org.opencms.jsp.CmsJspTagTemplate.templateTagAction(CmsJspTagTemplate.java:238)
at org.opencms.jsp.CmsJspTagTemplate.doStartTag(CmsJspTagTemplate.java:190)
at
org.apache.jsp.template_content_jsp._jspx_meth_cms_template_2(template_content_jsp.java:952)
at
org.apache.jsp.template_content_jsp._jspService(template_content_jsp.java:244)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:356)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:161)
at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:406)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:292)
at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:426)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:383)
at org.opencms.loader.CmsXmlPageLoader.load(CmsXmlPageLoader.java:186)
at
org.opencms.loader.CmsLoaderManager.loadResource(CmsLoaderManager.java:231)
at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1475)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
If I edit and save it (then it contains a Paragraph <p> </p>) it
displays fine... any idea what may cause this?
thanks!
Stefan
--
--------------------------
---------- beffy ----------
--------------------------
eMail: beffy at beffy.de
web: http://www.beffy.de
--------------------------
More information about the opencms-dev
mailing list