[opencms-dev] Static export fails with NullPointerException

Daniel Rhoden drhoden at iiwinc.com
Tue Apr 11 15:01:51 CEST 2006


I am having a similar problem.  I am using version 6.2, Tomcat 5.5.16, 
some Red Hat version.

I attempt to use the "Secure/Export" option from the menu, but 
immediately get the same error.  I am using the 
CmsAfterPublishStaticExportHandler, not the On Demand one.  I wonder if 
I switch to the on demand version if this will go away.

Any ideas?




Matthew Fremont wrote:
> When I attempt to export the /sites/default directory
> I encounter a NullPointerException.
>
> Static export is enabled in opencms-importexport.xml
> (default settings). opencms WEB-INF/export directory
> exists and is owned by  same user the container is
> running under.
>
> System is:
>
> OpenCms 6.0.3
> Tomcat 5.5.12
> Fedora Core 4
>
> Any suggestions?
>
> Full stack trace:
>
> java.lang.NullPointerException
> 	at
> org.opencms.staticexport.CmsLinkManager.substituteLink(CmsLinkManager.java:420)
> 	at
> org.opencms.workplace.commons.CmsSecure.getResourceUrl(CmsSecure.java:274)
> 	at
> org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.secure_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.secure_jsp:198)
> 	at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
> 	at
> org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:193)
> 	at
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:171)
> 	at
> org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:416)
> 	at
> org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:419)
> 	at
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:175)
> 	at
> org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:450)
> 	at
> org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:395)
> 	at
> org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:711)
> 	at
> org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1337)
> 	at
> org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:139)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
> 	at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
> 	at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Thread.java:595)
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>   



More information about the opencms-dev mailing list