[opencms-dev] Static export of jsp-pages results in creation of static "301 Moved Permanently" pages

John Edwards john.edwards at dna.co.uk
Fri Sep 10 16:51:49 CEST 2004


Hi Steffen,
Did you ever fugure out what was causing this problem? I'm getting the same problem although I didn't get any errors.
 
Regards,
John

-----Original Message-----
From: Steffen Wachenfeld [steffen.wachenfeld at math.uni-muenster.de]
Sent: Wed Apr 14 20:03:01 CEST 2004
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] creatin of Folder is not working


Hello group,

I am pretty new to opencms and currently do not understand what I am 
experiencing right now, perhaps someone can give me a clue.

Environment:
Apache2.0.48, Tomcat 5.0.19, JDK1.4.1-b21 installed under SuSE Linux

Problem:
Exporting JSP-pages (nomatter if called .html or .jsp) results in the 
creation of a properly named file in the export directory.
I do not understnad why? Has it to do with a misconfigurated proxy 
connection between apache and tomact?

The content of the exported file is:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a 
href=" http://myserver/jps-page-exported.html?_flex_export=/jps-page-exported.html <http://myserver/jps-page-exported.html?_flex_export=/jps-page-exported.html&_flex_export_encoding=ISO-8859-1> &_flex_export_encoding=ISO-8859-1">here</a>.</p>
<hr />
<address>Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.6k DAV/2 
PHP/4.3.2 Server at myserver Port myport</address>
</body></html>

During the export sometimes the following error message is displayed:

com.opencms.core.CmsException: 0 Unknown exception. Detailed error: 
Redirect fails :/system/workplace/action/explorer_files.html.
root cause was java.lang.NullPointerException
    at 
com.opencms.workplace.CmsPublishResource.getContent(CmsPublishResource.java:173)
    at 
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:171)
    at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
    at 
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149)
    at 
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)
    at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
    at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)
    at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
    at 
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
    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(ApplicationFilterChain.java:284)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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(StandardValveContext.java:151)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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(StandardValveContext.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.processConnection(Http11Protocol.java:732)
    at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
    at java.lang.Thread.run(Thread.java:536)
>-----------
>Root cause:
>java.lang.NullPointerException
>    at java.lang.String.startsWith(String.java:1030)
>    at java.lang.String.startsWith(String.java:1061)
>    at 
com.opencms.core.CmsResponseHttpServlet.sendRedirect(CmsResponseHttpServlet.java:247)
>    at 
com.opencms.workplace.CmsPublishResource.getContent(CmsPublishResource.java:170)
>    at 
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:171)
>    at 
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
>    at 
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149)
>    at 
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)
>    at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
>    at 
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)
>    at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
>    at 
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
>    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(ApplicationFilterChain.java:284)
>    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
>    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
>    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
>    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>    at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
>    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
>    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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(StandardValveContext.java:151)
>    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
>    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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(StandardValveContext.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.processConnection(Http11Protocol.java:732)
>    at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
>    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
>    at java.lang.Thread.run(Thread.java:536)

java.lang.NullPointerException
    at java.lang.String.startsWith(String.java:1030)
    at java.lang.String.startsWith(String.java:1061)
    at 
com.opencms.core.CmsResponseHttpServlet.sendRedirect(CmsResponseHttpServlet.java:247)
    at 
com.opencms.workplace.CmsPublishResource.getContent(CmsPublishResource.java:170)
    at 
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:171)
<...>


I greatly appreciate any suggestions...

Thanks,

Steffen


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040910/2f596485/attachment.htm>


More information about the opencms-dev mailing list