[opencms-dev] Unable to delete a resource
Louis Jewett
lfjewett at gmail.com
Tue Apr 19 18:17:30 CEST 2005
I removed some modules ( documentation ) from the Admin panel and
there is now a folder called 'xmlcontent' that can not be deleted. The
error is pasted below. This is V.6 release 2. Apache 2, Tomcat 5,
and Mysql 4.1x.. Any ideas on how to get rid of this resource without
starting the DB from scratch?
Thanks Louis.
org.opencms.main.CmsException: Exception during database operation
[Code 0 - Unknown exception]
Root cause was: java.lang.RuntimeException: Unable to resolve resource type: 25
at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
at org.opencms.db.CmsSecurityManager.readChildResources(CmsSecurityManager.java:2829)
at org.opencms.file.types.A_CmsResourceTypeFolderBase.deleteResource(A_CmsResourceTypeFolderBase.java:190)
at org.opencms.file.CmsObject.deleteResource(CmsObject.java:822)
at org.opencms.workplace.commons.CmsDelete.performDeleteOperation(CmsDelete.java:240)
at org.opencms.workplace.commons.CmsDelete.actionDelete(CmsDelete.java:185)
at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.delete_005fstandard_jsp._jspService(delete_005fstandard_jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:357)
at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:412)
at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:293)
at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:210)
at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:245)
at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:190)
at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.delete_jsp._jspService(delete_jsp.java:51)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:357)
at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:412)
at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:293)
at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:444)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:389)
at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:677)
at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1371)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:108)
at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
>-----------
>Root cause:
>java.lang.RuntimeException: Unable to resolve resource type: 25
> at org.opencms.file.CmsFolder.isFolderType(CmsFolder.java:140)
> at org.opencms.db.generic.CmsVfsDriver.readChildResources(CmsVfsDriver.java:912)
> at org.opencms.db.CmsDriverManager.readChildResources(CmsDriverManager.java:4994)
> at org.opencms.db.CmsSecurityManager.readChildResources(CmsSecurityManager.java:2827)
> at org.opencms.file.types.A_CmsResourceTypeFolderBase.deleteResource(A_CmsResourceTypeFolderBase.java:190)
> at org.opencms.file.CmsObject.deleteResource(CmsObject.java:822)
> at org.opencms.workplace.commons.CmsDelete.performDeleteOperation(CmsDelete.java:240)
> at org.opencms.workplace.commons.CmsDelete.actionDelete(CmsDelete.java:185)
> at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.delete_005fstandard_jsp._jspService(delete_005fstandard_jsp.java:70)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
> at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
> at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
> at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:357)
> at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
> at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:412)
> at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:293)
> at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:210)
> at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:245)
> at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:190)
> at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.delete_jsp._jspService(delete_jsp.java:51)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
> at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
> at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
> at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:357)
> at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
> at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:412)
> at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:293)
> at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:444)
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:389)
> at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:677)
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1371)
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:108)
> at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:120)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:595)
>Caused by: org.opencms.loader.CmsLoaderException: Unknown resource
type id requested: 25 [Code 301 - Unknown resource type requested!]
> at org.opencms.loader.CmsResourceManager.getResourceType(CmsResourceManager.java:557)
> at org.opencms.file.CmsFolder.isFolderType(CmsFolder.java:138)
> ... 74 more
More information about the opencms-dev
mailing list