[opencms-dev] Using DB Import instead of "the hard way"

Thomas Gagné tgagne at wideopenwest.com
Wed Feb 11 14:34:00 CET 2004


Off to the list archives I go.  But while I'm searching...

Is the database import function described anywhere?  Specifically:

   1. should the import file be a .zip?
   2. what should its directory structure be?

When I tried it on one that started from inside htdocs (with 
subdirectories) I got a traceback:

Importing database ...
Exception com.opencms.core.CmsException: 0 Unknown exception. Detailed 
error: CmsException ID: 0.
root cause was java.lang.NullPointerException
at 
com.opencms.file.genericSql.CmsResourceBroker.getFirstTagFromManifest(CmsResourceBroker.java:8078)
at 
com.opencms.file.genericSql.CmsResourceBroker.importResources(CmsResourceBroker.java:4150)
at com.opencms.file.CmsObject.importResources(CmsObject.java:2167)
at 
com.opencms.workplace.CmsAdminDatabaseImportThread.run(CmsAdminDatabaseImportThread.java:74)
>-----------
>Root cause:
>java.lang.NullPointerException
>  at java.util.zip.ZipFile.getInputStream(ZipFile.java:184)
>  at 
com.opencms.file.genericSql.CmsResourceBroker.getFirstTagFromManifest(CmsResourceBroker.java:8067)
>  at 
com.opencms.file.genericSql.CmsResourceBroker.importResources(CmsResourceBroker.java:4150)
>  at com.opencms.file.CmsObject.importResources(CmsObject.java:2167)
>  at 
com.opencms.workplace.CmsAdminDatabaseImportThread.run(CmsAdminDatabaseImportThread.java:74)
java.lang.NullPointerException
at java.util.zip.ZipFile.getInputStream(ZipFile.java:184)
at 
com.opencms.file.genericSql.CmsResourceBroker.getFirstTagFromManifest(CmsResourceBroker.java:8067)
at 
com.opencms.file.genericSql.CmsResourceBroker.importResources(CmsResourceBroker.java:4150)
at com.opencms.file.CmsObject.importResources(CmsObject.java:2167)
at 
com.opencms.workplace.CmsAdminDatabaseImportThread.run(CmsAdminDatabaseImportThread.java:74)





More information about the opencms-dev mailing list