[opencms-dev] Problem with databaseexport/import

Pere Torrodellas ptorrodellas at fihoca.com
Tue Mar 11 12:11:14 CET 2008


I compared your manifest with one of our own and didn't see any obvious problem with it. The only difference is that our 
files have always a folder name in addition to the file name in the <source> and <destination> tags, i.e.:

<source>socweb_en/home.html</source>
<destination>socweb_en/home.html</destination>

but I suppose that this depends on where in the folder tree you are when executing the export.

Sorry :-(

Pere

----- Original Message ----- 
From: "Helge Wiemann" <hw at open-your-bytes.de>
To: "The OpenCms mailing list" <opencms-dev at opencms.org>
Sent: Tuesday, March 11, 2008 10:33 AM
Subject: Re: [opencms-dev] Problem with databaseexport/import


> Hello,
>
> another test from me failed with the following small manifest:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <export>
>    <info>
>        <creator>mpi</creator>
>        <opencms_version>6.2.3</opencms_version>
>        <createdate>Wed, 05 Mar 2008 13:25:54 GMT</createdate>
>        <project>Offline</project>
>        <export_version>4</export_version>
>    </info>
>    <files>
>        <file>
>            <source>favicon.ico</source>
>            <destination>favicon.ico</destination>
>            <type>plain</type>
>            <datelastmodified>Fri, 19 Oct 2007 09:57:56
> GMT</datelastmodified>
>            <userlastmodified>Admin</userlastmodified>
>            <datecreated>Fri, 19 Oct 2007 09:57:56 GMT</datecreated>
>            <usercreated>Admin</usercreated>
>            <flags>0</flags>
>            <properties>
>                <property>
>                    <name>Title</name>
>                    <value><![CDATA[favicon]]></value>
>                </property>
>            </properties>
>            <accesscontrol/>
>        </file>
>    </files>
> </export>
>
> The same error message like before.
>
> Exception in thread "OpenCms: Import from
> /opt/tomcat/webapps/zanox_test2/WEB-INF/packages/zanox_20080305_1423.zip
> [0f3ec8e7-ef4f-11dc-a22b-856d6f0b6e2c]" java.lang.NullPointerException
>        at
> com.opencms.legacy.CmsCosImportExportHandler.matches(CmsCosImportExportHandler.java:212)
>        at
> org.opencms.importexport.CmsImportExportManager.getImportExportHandler(CmsImportExportManager.java:520)
>        at
> org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:619)
>        at
> org.opencms.workplace.threads.CmsDatabaseImportThread.run(CmsDatabaseImportThread.java:91)
>
> I think I got a crisis soon :-(
>
> Helge
>
>
> Helge Wiemann schrieb:




More information about the opencms-dev mailing list