首页

opencms导入中文语言包报CmsVfsResourceAlreadyExistsException异常

标签:语言包,opencms,异常,配置出错,OpenCms,CmsVfsResourceAlreadyExistsException,CmsVfsResourceNotFoundException     发布时间:2015-12-28   

一、前言

安装opencms英文版,想将其进行升级,然后下了个"org.opencms.locale.zh-9.0.1.zip"语言包,进行导入(详细导入步骤,点击参见其他页面),在"系统管理视图"进行导入,结果导入失败 - 抛出“Exception org.opencms.file.CmsVfsResourceAlreadyExistsException: Error creating resource "/system/workplace/locales/zh/" on path /system/workplace/locales/zh/".异常,详情如下

Publishing resources ...@b@Updating JSP loader cache...@b@.. JSP loader cache updated@b@Statistics: published files: 0, published folders: 0, deleted folders: 0, duration: 00:00:00@b@... the resources have been published@b@Exception org.opencms.file.CmsVfsResourceAlreadyExistsException: Error creating resource "/system/workplace/locales/zh/" on path "/system/workplace/locales/zh/".@b@at org.opencms.file.CmsVfsResourceAlreadyExistsException.createException(CmsVfsResourceAlreadyExistsException.java:70)@b@at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:334)@b@at org.opencms.db.CmsDbContext.report(CmsDbContext.java:286)@b@at org.opencms.db.CmsSecurityManager.importResource(CmsSecurityManager.java:2976)@b@at org.opencms.file.types.A_CmsResourceType.importResource(A_CmsResourceType.java:582)@b@at org.opencms.file.CmsObject.importResource(CmsObject.java:1735)@b@at org.opencms.importexport.CmsImportVersion7.importResource(CmsImportVersion7.java:1797)@b@at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)@b@at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)@b@at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)@b@at java.lang.reflect.Method.invoke(Method.java:597)@b@at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:281)@b@at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:626)@b@at org.apache.commons.digester.Rule.end(Rule.java:253)@b@at org.apache.commons.digester.Digester.endElement(Digester.java:1222)@b@at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)@b@at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)@b@at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)@b@at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)@b@at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)@b@at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)@b@at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)@b@at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)@b@at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)@b@at org.apache.commons.digester.Digester.parse(Digester.java:1765)@b@at org.opencms.importexport.CmsImportVersion7.importData(CmsImportVersion7.java:1312)@b@at org.opencms.importexport.CmsImport.importData(CmsImport.java:113)@b@at org.opencms.module.CmsModuleImportExportHandler.importModule(CmsModuleImportExportHandler.java:580)@b@at org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:373)@b@at org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:674)@b@at org.opencms.workplace.threads.CmsDatabaseImportThread.run(CmsDatabaseImportThread.java:85)@b@Caused by: org.opencms.file.CmsVfsResourceAlreadyExistsException: Error creating a resource at location "/system/workplace/locales/zh/". There is already a resource at location "/system/workplace/locales/de/" with the same id "82ba5b6a-11b7-11db-91cd-fdbae480bac9".@b@at org.opencms.db.CmsDriverManager.createResource(CmsDriverManager.java:1611)@b@at org.opencms.db.CmsSecurityManager.importResource(CmsSecurityManager.java:2974)@b@... 27 more@b@Exception org.opencms.file.CmsVfsResourceNotFoundException: Error creating resource "/system/workplace/locales/zh/messages/" on path "/system/workplace/locales/zh/messages/".@b@at org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:71)@b@at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:334)@b@at org.opencms.db.CmsDbContext.report(CmsDbContext.java:286)@b@at org.opencms.db.CmsSecurityManager.importResource(CmsSecurityManager.java:2976)@b@at org.opencms.file.types.A_CmsResourceType.importResource(A_CmsResourceType.java:582)@b@at org.opencms.file.CmsObject.importResource(CmsObject.java:1735)@b@at org.opencms.importexport.CmsImportVersion7.importResource(CmsImportVersion7.java:1797)@b@at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)@b@at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)@b@at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)@b@at java.lang.reflect.Method.invoke(Method.java:597)@b@at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:281)@b@at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:626)@b@at org.apache.commons.digester.Rule.end(Rule.java:253)@b@at org.apache.commons.digester.Digester.endElement(Digester.java:1222)@b@at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)@b@at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)@b@at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)@b@at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)@b@at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)@b@at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)@b@at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)@b@at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)@b@at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)@b@at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)@b@at org.apache.commons.digester.Digester.parse(Digester.java:1765)@b@at org.opencms.importexport.CmsImportVersion7.importData(CmsImportVersion7.java:1312)@b@at org.opencms.importexport.CmsImport.importData(CmsImport.java:113)@b@at org.opencms.module.CmsModuleImportExportHandler.importModule(CmsModuleImportExportHandler.java:580)@b@at org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:373)@b@at org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:674)@b@at org.opencms.workplace.threads.CmsDatabaseImportThread.run(CmsDatabaseImportThread.java:85)@b@Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to read resource "/system/workplace/locales/zh".@b@at org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:2170)@b@at org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:7310)@b@at org.opencms.db.CmsDriverManager.readFolder(CmsDriverManager.java:6538)@b@at org.opencms.db.CmsDriverManager.createResource(CmsDriverManager.java:1577)@b@at org.opencms.db.CmsSecurityManager.importResource(CmsSecurityManager.java:2974)@b@... 28 more

错误信息,如下截图

opencms导入中文语言包报CmsVfsResourceAlreadyExistsException异常

二、解决方法

由于错误下载了“org.opencms.locale.zh-9.0.1.zip”语言包造成的,重新换了“org.opencms.locale.zh_CN_9.0.1.zip”包,重新导入问题解决(详细操作步骤见“资源下载”页

opencms导入中文语言包报CmsVfsResourceAlreadyExistsException异常

<<热门下载>>