[opencms-dev] Problems with OpenCMS 5.3.4 and templates

Antti Leinonen antti.leinonen at digital-one.fi
Mon Apr 19 11:56:01 CEST 2004


Hola.
 
We're trying to build a site on the CVS version of OpenCMS, and currently
are facing a rather weird problem with the editor's behaviour with
templates;
We created a new module for the site, and basically everything works just
fine, creating pages using the templates created under the module, but when
trying to actually edit the body contents with the HTML editor, the system
throws an error every time after save & exit:
 
2004-04-19 12:48:21 ApplicationDispatcher[/opencms] Servlet.service() for
servlet jsp threw exception
java.lang.NullPointerException
        at org.opencms.page.CmsXmlPage.initBookmarks(CmsXmlPage.java:487)
        at org.opencms.page.CmsXmlPage.<init>(CmsXmlPage.java:169)
        at org.opencms.page.CmsXmlPage.read(CmsXmlPage.java:240)
        at org.opencms.page.CmsXmlPage.read(CmsXmlPage.java:213)
        at
org.opencms.workplace.editor.CmsSimplePageEditor.initWorkplaceRequestValues(
CmsSimplePageEditor.java:132)
        at org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:163)
        at org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:166)
        at org.opencms.workplace.editor.CmsEditor.<init>(CmsEditor.java:146)
        at
org.opencms.workplace.editor.CmsDefaultPageEditor.<init>(CmsDefaultPageEdito
r.java:103)
        at
org.opencms.workplace.editor.CmsSimplePageEditor.<init>(CmsSimplePageEditor.
java:67)
        at
org.opencms.workplace.editor.CmsMSDHtmlEditor.<init>(CmsMSDHtmlEditor.java:7
3)
        at
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.jsp.editors.msdhtml.
editor_html_jsp._jspService(editor_html_jsp.java:56)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:284)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:750)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:636)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:546)
        at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDisp
atcher.java:131)
        at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:180)
        at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:405)
        at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:311)
        at
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:396)
        at
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:244)
        at
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:189)
        at
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.jsp.editors.editor_0
05fmain_html_jsp._jspService(editor_005fmain_html_jsp.java:53)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:284)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:750)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:636)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:546)
        at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDisp
atcher.java:131)
        at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:180)
        at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:405)
        at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:311)
        at
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:425)
        at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:382)
        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:743)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:284)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:257)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:245)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:199)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184
)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:156)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:732)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:688)
        at java.lang.Thread.run(Thread.java:534)
This occurs not only with the new templates, but also if a Welcome or Empty
template is copied from the org.opencms.welcome module to the new module and
used for a new page, the same thing occurs after save and exit.
Additionally, the system leaves a locked ~filename -file (filename being the
name of the edited file), and the now unusable file that was originally
edited.
 
If a page is created with the new template, then switched to use the empty
template from org.opencms.welcome, editing works fine, and afterwards the
page can be again switched to use the new template.
 
Hopefully someone has an idea on what's causing this behaviour.
 
Cheers,
    Antti Leinonen, Digital One
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040419/26ecfe3b/attachment.htm>


More information about the opencms-dev mailing list