[opencms-dev] Error importing OpenCMS 4.6 Module into OpenCMS 5.0.0

Kai Schliemann k.schliemann at comundus.com
Tue May 13 20:41:01 CEST 2003


Hello,

I get the following error while trying to import a news Module written for
OpenCMS 4.6 into OpenCMS 5.0.0:


com.opencms.core.CmsException: 0 Unknown exception. Detailed error:
CmsException ID: 0.
root cause was java.lang.NullPointerException
 at com.opencms.file.CmsImport.getConflictingFilenames(CmsImport.java:343)
 at
com.opencms.file.CmsRegistry.importGetConflictingFileNames(CmsRegistry.java:
1761)
 at
com.opencms.workplace.CmsAdminModuleNew.importModule(CmsAdminModuleNew.java:
285)
 at
com.opencms.workplace.CmsAdminModuleNew.getContent(CmsAdminModuleNew.java:21
1)
 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:956)
 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:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 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.processConne
ction(Http11Protocol.java:392)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
 at java.lang.Thread.run(Thread.java:536)
>-----------
>Root cause:
>java.lang.NullPointerException
> at com.opencms.file.CmsImport.getConflictingFilenames(CmsImport.java:319)
> at
com.opencms.file.CmsRegistry.importGetConflictingFileNames(CmsRegistry.java:
1761)
> at
com.opencms.workplace.CmsAdminModuleNew.importModule(CmsAdminModuleNew.java:
285)
> at
com.opencms.workplace.CmsAdminModuleNew.getContent(CmsAdminModuleNew.java:21
1)
> 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:956)
> 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:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
> at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
> at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
> at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 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.processConne
ction(Http11Protocol.java:392)
> at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
> at java.lang.Thread.run(Thread.java:536)

java.lang.NullPointerException
 at com.opencms.file.CmsImport.getConflictingFilenames(CmsImport.java:319)
 at
com.opencms.file.CmsRegistry.importGetConflictingFileNames(CmsRegistry.java:
1761)
 at
com.opencms.workplace.CmsAdminModuleNew.importModule(CmsAdminModuleNew.java:
285)
 at
com.opencms.workplace.CmsAdminModuleNew.getContent(CmsAdminModuleNew.java:21
1)
 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:956)
 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:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 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.processConne
ction(Http11Protocol.java:392)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
 at java.lang.Thread.run(Thread.java:536)


This is how my Backward compatibility part of my opencms.properties looks
like:

# Backward compatibility flags.
# This should be set to true ONLY if you are migrating from 4.x to 5.0
versions of OpenCms.
############################################################################
#####

# "Old style" module locale backward compatibility support
# Enables supports for proprietary 4.x module XML locales
# Must be set to true only if old modules are used
compatibility.support.oldlocales=true

# Convert file content from 4.x to 5.x style during import
# This is needed for the correct content conversion of the import.
# Enter the URL of the OpenCms web application from which the content was
exported,
# e.g. http://localhost:8080/opencms/opencms/ for a standard local Tomcat
installation.
compatibility.support.import.old.webappurl=http://localhost:8080/opencms/ope
ncms/

# List of the resource properties which should be removed when resources are
imported.
compatibility.support.import.remove.propertytags=module

# List of old web application names for conversion in editor and in import
bodies.
# Example for a standard web application name: /opencms/opencms/
compatibility.support.webAppNames=
############################################################################
######

Can anyone help?

Sorry for the long post an thanks in advance for your help.

Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20030513/75b18d8a/attachment.html>


More information about the opencms-dev mailing list