[opencms-dev] Using DB Import instead of "the hard way"
Michael Goodwin
mgoodwin at amadeus.net
Wed Feb 11 15:27:42 CET 2004
A while ago I wrote some java that writes the manifest for you (and also
creates the system bodies ... etc.), it works, but you'll want to customise
it for your own needs
http://dev.pro.amadeus.net/stuff/opencmsimport_0.1.zip
From: Thomas Gagné <tgagne at wideopenwest.com>@opencms.org on 11/02/2004
08:33 EST
Please respond to opencms-dev at opencms.org
Sent by: opencms-dev-admin at opencms.org
To: opencms-dev at opencms.org
cc:
Subjec [opencms-dev] Using DB Import
t: instead of "the hard way"
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)
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list