[opencms-dev] Upgrade from 7.5.3 to 8.0.3 problem

Christian Steinert christian_steinert at web.de
Thu May 3 05:50:00 CEST 2012


> Dear List.
>
> While trying to update OpenCms from 7.5.3 to 8.0.3 i get the following error at step 5:
>
> 18:                at org.opencms.setup.CmsUpdateThread.run(CmsUpdateThread.java:191)
> 17:                at org.opencms.setup.CmsUpdateThread.kill(CmsUpdateThread.java:106)
> 16:                at org.opencms.main.CmsShell.exit(CmsShell.java:577)
> 15:        java.lang.NullPointerException
> 14:                at org.opencms.setup.CmsUpdateThread.run(CmsUpdateThread.java:191)
> 13:                at org.opencms.setup.CmsUpdateThread.kill(CmsUpdateThread.java:106)
> 12:                at org.opencms.main.CmsShell.exit(CmsShell.java:571)
> 11:        java.lang.NullPointerException
> 10:                at org.opencms.setup.CmsUpdateThread.run(CmsUpdateThread.java:180)
> 9:                at org.opencms.main.CmsShell.start(CmsShell.java:663)
> 8:                at org.opencms.main.CmsShell.executeCommands(CmsShell.java:835)
> 7:                at org.opencms.main.CmsShell.executeCommand(CmsShell.java:760)
> 6:        ${user}@${project}>java.lang.NullPointerException
> 5:        ${user}@${project}># Turn echo on
> 4:                at org.opencms.setup.CmsUpdateThread.run(CmsUpdateThread.java:143)
> 3:                at org.opencms.main.CmsShell.<init>(CmsShell.java:411)
> 2:                at org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:297)
> 1:        org.opencms.main.CmsInitException: Critical error during OpenCms initialization: Unable to read the OpenCms XML configuration.
>
> I have absolutely no clue how to solve this or get other information that might point me in the right direction. Could anybody help me in this issue?
I had similar problems. Somehow the update wizard corrupted one of the config files when it added some of the new entries.

My only escape was to take the default opencms configuration files from the opencms _installation_ (NOT update!) package, diff them against my own config files and manually take over all those changes that I needed.
After I had re-merged all important settings with the default config file I copied these newly crafted files into the config folder of my opencms installation and re-ran the wizard. The wizard may suggest to apply some changes again that you already have in your config file after the manual editing. If such is the case then uncheck all the config file changes that the update wizard suggests to make.

In this way your config should stay uncorrupted and yet it should contain all options that are important.

It is a bit tedious to go through this process for each xml file in the config folder, but this is the best solution I found

Kind regards and good luck
Christian

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


More information about the opencms-dev mailing list