<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=187375009-19042004><FONT face=Arial 
size=2>Hola.</FONT></SPAN></DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial size=2>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;</FONT></SPAN></DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial size=2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial size=2>2004-04-19 12:48:21 
ApplicationDispatcher[/opencms] Servlet.service() for servlet jsp threw 
exception<BR>java.lang.NullPointerException<BR>        
at 
org.opencms.page.CmsXmlPage.initBookmarks(CmsXmlPage.java:487)<BR>        
at 
org.opencms.page.CmsXmlPage.<init>(CmsXmlPage.java:169)<BR>        
at 
org.opencms.page.CmsXmlPage.read(CmsXmlPage.java:240)<BR>        
at 
org.opencms.page.CmsXmlPage.read(CmsXmlPage.java:213)<BR>        
at 
org.opencms.workplace.editor.CmsSimplePageEditor.initWorkplaceRequestValues(CmsSimplePageEditor.java:132)<BR>        
at 
org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:163)<BR>        
at 
org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:166)<BR>        
at 
org.opencms.workplace.editor.CmsEditor.<init>(CmsEditor.java:146)<BR>        
at 
org.opencms.workplace.editor.CmsDefaultPageEditor.<init>(CmsDefaultPageEditor.java:103)<BR>        
at 
org.opencms.workplace.editor.CmsSimplePageEditor.<init>(CmsSimplePageEditor.java:67)<BR>        
at 
org.opencms.workplace.editor.CmsMSDHtmlEditor.<init>(CmsMSDHtmlEditor.java:73)<BR>        
at 
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.jsp.editors.msdhtml.editor_html_jsp._jspService(editor_html_jsp.java:56)<BR>        
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)<BR>        
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)<BR>        
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)<BR>        
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)<BR>        
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)<BR>        
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)<BR>        
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)<BR>        
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)<BR>        
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750)<BR>        
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:636)<BR>        
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:546)<BR>        
at 
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:131)<BR>        
at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)<BR>        
at 
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:405)<BR>        
at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:311)<BR>        
at 
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:396)<BR>        
at 
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:244)<BR>        
at 
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:189)<BR>        
at 
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.jsp.editors.editor_005fmain_html_jsp._jspService(editor_005fmain_html_jsp.java:53)<BR>        
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)<BR>        
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)<BR>        
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)<BR>        
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)<BR>        
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)<BR>        
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)<BR>        
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)<BR>        
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)<BR>        
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750)<BR>        
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:636)<BR>        
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:546)<BR>        
at 
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:131)<BR>        
at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)<BR>        
at 
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:405)<BR>        
at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:311)<BR>        
at 
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:425)<BR>        
at 
org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:382)<BR>        
at 
org.opencms.loader.CmsLoaderManager.loadResource(CmsLoaderManager.java:231)<BR>        
at 
org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1475)<BR>        
at 
org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:102)<BR>        
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)<BR>        
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)<BR>        
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)<BR>        
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)<BR>        
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)<BR>        
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)<BR>        
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)<BR>        
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)<BR>        
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)<BR>        
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)<BR>        
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)<BR>        
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)<BR>        
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)<BR>        
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)<BR>        
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)<BR>        
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)<BR>        
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)<BR>        
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)<BR>        
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)<BR>        
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)<BR>        
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)<BR>        
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)<BR>        
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)<BR>        
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)<BR>        
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)<BR>        
at java.lang.Thread.run(Thread.java:534)<BR>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.</FONT></SPAN></DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial size=2>Hopefully someone 
has an idea on what's causing this behaviour.</FONT></SPAN></DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=187375009-19042004><FONT face=Arial 
size=2>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=187375009-19042004>    <FONT face=Arial 
size=2>Antti Leinonen, Digital One</FONT></SPAN></DIV></BODY></HTML>