[opencms-dev] Problem with databaseexport/import

Helge Wiemann hw at open-your-bytes.de
Tue Mar 11 10:33:57 CET 2008


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:
> Hello,
>
> thanks for the help. But nothing worked.
>
> I have looked for these control characters < HEX19 in my manifest... 
> nothing in it.
> I started mysqld with max_allowed_packet = 64M. Everything keeps the 
> same.
>
> Everytime this error message. I am wondering every time about this 
> NullPointerException. What might cause it?
>
> Helge
>
> Pere Torrodellas schrieb:
>> Hello,
>>
>> I had the same problem, and I hope I'll save you the long time it 
>> took me to debug.
>>
>> In the export zip manifest file, there were control characters (i.e. 
>> Hex 19)  in some Title and Description properties tags, in places 
>> where there should have been a typographical apostrophe (Hex 92). 
>> Look for control chars (i.e. < Hex 20) in your manifest.
>>
>> In my case, these were probably introduced by copy/paste from PDF 
>> documents, but I still don't understand why OpenCms made control 
>> characters out of them.
>>
>> Pere
>>
>> ----- Original Message ----- From: "Helge Wiemann" 
>> <hw at open-your-bytes.de>
>> To: <opencms-dev at opencms.org>
>> Sent: Monday, March 10, 2008 7:34 PM
>> Subject: [opencms-dev] Problem with databaseexport/import
>>
>>
>>  
>>> Hello alltogether !!
>>>
>>> I am having a strange problem and needing some help.
>>>
>>> I got a database-export-zip with approx 388 MB from a productiv-system
>>> and now want to import it to a test-system.
>>> I worked with the database management and import file from server. Then
>>> I chose the ZIP-File which is locally available.
>>>
>>> Then I got the following error message on the console:
>>>
>>> Exception in thread "OpenCms: Import from
>>> /opt/tomcat/webapps/zanox_test2/WEB-INF/packages/zanox_20080305_1423.zip 
>>>
>>> [f7b6d8fd-eebc-11dc-92b6-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) 
>>>
>>>
>>>
>>> Furthermore I am seeing nothing on the screen, only the progress 
>>> icon of
>>> opencms. When I clicked on Details..., I got the green OK-Symbol, but
>>> nothing was imported.
>>>
>>> It seems that OpenCms is thinking about a module import. But I have
>>> chosen the database import.
>>>
>>> What might be the problem here?
>>> Thanks for help!
>>>
>>> Greetings,
>>>
>>> Helge
>>>
>>>     
>>
>>
>> -------------------------------------------------------------------------------- 
>>
>>
>>
>>  
>>> _______________________________________________
>>> 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     
>>
>>
>> _______________________________________________
>> 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
>>
>>   
>
> _______________________________________________
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hw.vcf
Type: text/x-vcard
Size: 270 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080311/1f9a1a70/attachment.vcf>


More information about the opencms-dev mailing list