[opencms-dev] Error loading existing htdocs.tgz as module

Thomas Gagné tgagne at wideopenwest.com
Tue Feb 10 02:53:02 CET 2004


I loaded the .tgz file into WEB-INF/export/modules and it showed-up in 
the "Upload from System" dialog.  After selecting the file I get this 
traceback.  I had read that I should be able to tar/zip an existing 
directory structure and OpenCMS should be able to suck it in.  Is this 
not true?  Does it not understand .tar formats?

    com.opencms.core.CmsException: 0 Unknown exception. Detailed error:
    CmsException ID: 0.
    root cause was java.lang.NullPointerException
        at
    com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:194)
        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
    com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:331)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
    Source)
        at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
        at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
    Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContextValve.invoke(Unknown
    Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
        at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
    Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
    Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at
    org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
        at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
        at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
        at java.lang.Thread.run(Thread.java:536)
     >-----------
     >Root cause:
     >java.lang.NullPointerException
     >    at
    com.opencms.file.CmsRegistry.importGetModuleInfo(CmsRegistry.java:1778)
     >    at
    com.opencms.workplace.CmsAdminModuleNew.importModule(CmsAdminModuleNew.java:253)
     >    at
    com.opencms.workplace.CmsAdminModuleNew.getContent(CmsAdminModuleNew.java:224)
     >    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
    com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:331)
     >    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     >    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     >    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
    Source)
     >    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
     >    at
    org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
     >    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
     >    at org.apache.catalina.core.StandardPipeline.invoke(Unknown
    Source)
     >    at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     >    at
    org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
     >    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
     >    at org.apache.catalina.core.StandardPipeline.invoke(Unknown
    Source)
     >    at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     >    at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
     >    at org.apache.catalina.core.StandardHostValve.invoke(Unknown
    Source)
     >    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
     >    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
     >    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
     >    at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
    Source)
     >    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
     >    at org.apache.catalina.core.StandardPipeline.invoke(Unknown
    Source)
     >    at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     >    at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
    Source)
     >    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
     >    at org.apache.catalina.core.StandardPipeline.invoke(Unknown
    Source)
     >    at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     >    at
    org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
     >    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
     >    at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
     >    at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
     >    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
     >    at java.lang.Thread.run(Thread.java:536)

    java.lang.NullPointerException
        at
    com.opencms.file.CmsRegistry.importGetModuleInfo(CmsRegistry.java:1778)
        at
    com.opencms.workplace.CmsAdminModuleNew.importModule(CmsAdminModuleNew.java:253)
        at
    com.opencms.workplace.CmsAdminModuleNew.getContent(CmsAdminModuleNew.java:224)
        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
    com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:331)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
    Source)
        at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
        at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
    Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContextValve.invoke(Unknown
    Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
        at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
    Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
    Source)
        at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
    Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at
    org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
        at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
        at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
        at java.lang.Thread.run(Thread.java:536)





More information about the opencms-dev mailing list