[opencms-dev] Unable to cleanly exit from an Edit window

Ivan Biddles ivanb at scientology.net
Mon Nov 4 03:35:54 CET 2002


Hi again,

Well I found what was causing the problem. It may be considered to be a
bug, but there is a very simple workaround.

Someone else had created a project and templates, each with the name:

        Adam's Test Project     or     Adam's Test Template

I believe that it was the single quote in the name that was messing up
the system, because the quote was left, as is, in the emitted HTML and
XML code and not converted to an HTML or XML-safe character.

When I did a view source on the sourcecode editor page, I found the
following:

<option value="/content/templates/adam1">Adam's First test template
                                             ^

After seeing this, I remembered that "Error on Page" had come up several
times while this was all happening.

As it was only a test project, I simply deleted the project, and
especially the template file, which seemed to be the real cause of the
problem, and everything now works again.

(I tried editing the title of each element to remove the single quote
but the problem kept recurring.)

Anyway I thought I'd share the problem and solution to save others the
same heartaches.

The workaround is:          Don't use single quotes in titles!
Probably a better rule is:  Don't use special characters in titles!

Best wishes,
            Ivan

-----Original Message-----
From: owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Ivan Biddles
Sent: Saturday, November 02, 2002 09:19
To: opencms-dev at www.opencms.org
Subject: [opencms-dev] Unable to cleanly exit from an Edit window

Hi,

Everything has been going along fine with my OpenCms implementation
until last night.

Suddenly I am getting a System Error pop-up ("There was a Systemerror.
Have a look at the details, or contact your system administrator") each
time I try to exit from the Edit Page or Edit Sourcecode for ANY pages
(original OpenCms pages or ones I have created).

"Show Details" gave the stack trace below.

It gets into a loop where I cannot exit and takes me back to the Edit
Page or Edit Sourcecode screen. My only option is to exit the Browser
itself.

Do you have any idea what may have happened or how to recover from it?

The "Wrong XML Content" message is similar to the one posted by Joe
Burkhart (Getting OpenCMS up and running - newsmodule, demo website).
However, in my case this is not happening as a result of trying to
import a module.

The only thing that I did that was new was to attempt to create a JSP.
It appeared correctly without my normal frame template around it. I went
to check out the normal HTML pages and see how the frame template is
associated there, and that's when I first ran into this problem. It
happens on every page.

I since deleted the JSP source, the generated Java source, and the class
file, so I think that the JSP may just be coincidence.

Anyway, thanks in advance for any help you can provide.

Best wishes,
             Ivan

----------------------------------------------------------
[CmsException]: 20 Wrong XML content type. Detailed Error: XML document
/cos/section/index.html is not of the expected type. This document is
"page", but it should be "XMLTEMPLATE" (OpenCms XML template file).. 
at
com.opencms.template.A_CmsXmlContent.throwException(A_CmsXmlContent.java
:1869)
at com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1073)
at com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1047)
at
com.opencms.template.CmsXmlTemplateFile.<init>(CmsXmlTemplateFile.java:9
1)
at
com.opencms.template.CmsXmlTemplate.getOwnTemplateFile(CmsXmlTemplate.ja
va:382)
at
com.opencms.workplace.CmsXmlTemplateEditor.getContent(CmsXmlTemplateEdit
or.java:455)
at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:1
67)
at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:171)
at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementC
ache.java:148)
at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:2
53)
at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:309)
at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:267)
at com.opencms.core.OpenCms.showResource(OpenCms.java:653)
at
com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:271)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
7)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1125)
at java.lang.Thread.run(Thread.java:536)





More information about the opencms-dev mailing list