[opencms-dev] Critical error when importing custom xml-contenttype files

Martin Lehnert martin.lehnert at hannecke-its.de
Fri Jun 24 17:46:28 CEST 2005


When I try to import a module including a cutomized xml-contenttype and one or more instances of the type, I get the following exception:



     [exec] <hits> deleteModule(String moduleName) >> org.opencms.main.CmsIllega
lArgumentException: Error reading the direct publish list for resource "/system/
modules/eu.hits.opencms.news/".
     [exec] org.opencms.main.CmsIllegalArgumentException: Error reading the dire
ct publish list for resource "/system/modules/eu.hits.opencms.news/".
     [exec]     at org.opencms.main.CmsIllegalArgumentException.createException(
CmsIllegalArgumentException.java:74)
     [exec]     at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:
214)
     [exec]     at org.opencms.db.CmsDbContext.report(CmsDbContext.java:196)
     [exec]     at org.opencms.db.CmsSecurityManager.getPublishList(CmsSecurityM
anager.java:2024)
     [exec]     at org.opencms.file.CmsObject.getPublishList(CmsObject.java:1246
)
     [exec]     at org.opencms.file.CmsObject.publishProject(CmsObject.java:1885
)
     [exec]     at org.opencms.file.CmsObject.publishResource(CmsObject.java:192
1)
     [exec]     at org.opencms.file.CmsObject.publishResource(CmsObject.java:190
4)
     [exec]     at eu.hits.opencms.externalhelpers.HitsCmsShellCommands.deleteMo
dule(HitsCmsShellCommands.java:286)
     [exec]     at eu.hits.opencms.externalhelpers.HitsCmsShellCommands.importHi
tsModule(HitsCmsShellCommands.java:110)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
     [exec]     at java.lang.reflect.Method.invoke(Method.java:585)
     [exec]     at org.opencms.main.CmsShell$CmsCommandObject.executeMethod(CmsS
hell.java:242)
     [exec]     at org.opencms.main.CmsShell.executeCommand(CmsShell.java:728)
     [exec]     at org.opencms.main.CmsShell.executeCommands(CmsShell.java:803)
     [exec]     at org.opencms.main.CmsShell.start(CmsShell.java:624)
     [exec]     at eu.hits.opencms.externalhelpers.HitsCmsShell.main(HitsCmsShel
l.java:71)
     [exec] Caused by: org.opencms.main.CmsIllegalArgumentException: Unable to r
esolve the resource type "1,350".
     [exec]     at org.opencms.file.CmsFolder.isFolderType(CmsFolder.java:141)
     [exec]     at org.opencms.db.generic.CmsVfsDriver.createResource(CmsVfsDriv
er.java:554)
     [exec]     at org.opencms.db.generic.CmsVfsDriver.readResourceTree(CmsVfsDr
iver.java:1728)
     [exec]     at org.opencms.db.CmsDriverManager.getPublishList(CmsDriverManag
er.java:3213)
     [exec]     at org.opencms.db.CmsSecurityManager.getPublishList(CmsSecurityM
anager.java:2021)
     [exec]     ... 15 more
     [exec] Caused by: org.opencms.loader.CmsLoaderException: Unknown resource t
ype id 1,350 requested.
     [exec]     at org.opencms.loader.CmsResourceManager.getResourceType(CmsReso
urceManager.java:554)
     [exec]     at org.opencms.file.CmsFolder.isFolderType(CmsFolder.java:139)
     [exec]     ... 19 more



Especially interesting is the paragraph "Caused by":
[exec] Caused by: org.opencms.main.CmsIllegalArgumentException: Unable to r
esolve the resource type "1,350".
This value is the id of my own contenttype, but not the type itself. By the way, the same error occurs when trying to reimport the xmldontentdemo from the templateone-modules.
The behaviour of the customized xml-content-files is perfect when importing them for the first time and when working with them in OpenCms. But when you try to delete them by deinstalling the module with these contents, OpenCms tries to build a publish list with these files and fails. That's why this error only appears when trying to import for the second time: It's not the import itself but the delete-process of many files that breaks apart.
Any chance that this will be repaired for the final release of OpenCms6?
Greeting,
Martin Lehnert


Martin Lehnert

Hannecke IT-Solutions GmbH 
Martin-Luther-Str. 5b 
97072 Würzburg 
Tel.: 0931-99 135 24 
Fax: 0931-99 135 29 
Email: martin.lehnert at hannecke-its.de 





More information about the opencms-dev mailing list