[opencms-dev] Re source Restoring error

Mario Jäger m.jaeger at alkacon.com
Fri Aug 13 09:47:43 CEST 2010


Hi Mathias,

The problem in an OpenCms 6.2.3 only occur on these historcial versions, which are made in the respectively other site of the resource. For example, you are in the site "test" and the change on the resource (original resource 
or sibling) was made in site "default". The problem in an OpenCms 6.2.3 is, that in the context of the history, the resource in the respectively other site can't be read. I get this error, when I am in site "test" and want to 
get a historical version, which was made in site "default": org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource from path "/sites/default/test.html".

One workaround to avoid that problem is, that you go in the root site and use the history functionality there.

-- 
Kind Regards,
Mario.
 
-------------------
Mario Jäger
 
Alkacon Software GmbH  - The OpenCms Experts                    
http://www.alkacon.com - http://www.opencms.org


Mathias Lin schrieb:
> Ok, this is weird - or maybe not (what would be the reason technically?) -
> but I found something interesting how to reproduce the problem:
>
> note: The resource I wanted to recreate from history is a sibling copy: 
>
> Let's say originally I have the resource under Site A and doing some changes
> to it so that there's a history of 5 changes to it.
> Then I create a sibling copy to use under site B.
> Now, when I try to recover a historic version under site B of this resource
> (that has been edited before I copied the file under site B), it seems that
> I get this 'tagged' error.
> But recovering the resource to a historic version under the original site A
> works fine without a problem.
>
>
>
>
> Mathias Lin wrote:
>   
>> This is quite an old posting but the only one with a reply to this topic.
>> Has anybody figured out the reason for the message "Error restoring
>> resource xx with backupversion tagged yy"?
>> I'm getting the same error occassionally on 6.2.3 environment.
>> Thanks
>>
>>
>> Mikel Armañanzas wrote:
>>     
>>> Hi,
>>>
>>>  
>>>
>>> When I try to restore a version of a html I get an error. The error log
>>> is
>>> the following:
>>>
>>>  
>>>
>>> org.opencms.main.CmsRuntimeException: Error restoring resource
>>> "/INVEST/es/Vivir_en_La_Mancha/vivienda.html" with backupversion tagged
>>> 45.
>>> 25 jun 2007 20:14:00,779 ERROR [ina.core.ApplicationDispatcher: 704] El
>>> Servlet.service() para servlet jsp lanzó una excepción
>>>         ... 41 more
>>>         at
>>> org.opencms.db.CmsSecurityManager.restoreResource(CmsSecurityManager.java:45
>>> 77)
>>>         at
>>> org.opencms.db.CmsDriverManager.restoreResource(CmsDriverManager.java:6344)
>>>         at
>>> org.opencms.db.CmsDriverManager.readBackupFile(CmsDriverManager.java:4635)
>>>         at
>>> org.opencms.db.generic.CmsBackupDriver.readBackupFile(CmsBackupDriver.java:4
>>> 16)
>>> Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Backup file
>>> "/sites/default/INVEST/es/Vivir_en_La_Mancha/vivienda.html" was not
>>> found. 
>>>         at java.lang.Thread.run(Unknown Source)
>>>         at
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>>> a:684)
>>>         at
>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
>>> rkerThread.java:80)
>>>         at
>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
>>> a:527)
>>>         at
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
>>> ction(Http11Protocol.java:744)
>>>         at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>>         at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>>         at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>>> :107)
>>>         at
>>> org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessL
>>> ogValve.java:481)
>>>         at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
>>> )
>>>         at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
>>> )
>>>         at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>>> va:178)
>>>         at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>>> va:213)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>>> ain.java:173)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>>> FilterChain.java:252)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>>>         at
>>> org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:163)
>>>         at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:151)
>>>         at
>>> org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1349)
>>>         at
>>> org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:7
>>> 30)
>>>         at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:409)
>>>         at
>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
>>> .java:301)
>>>         at
>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
>>> er.java:398)
>>>         at
>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
>>> patcher.java:463)
>>>         at
>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
>>> java:672)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>>> ain.java:173)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>>> FilterChain.java:252)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>         at
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>>>         at
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
>>>         at
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
>>> 22)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>         at
>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>         at
>>> org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.explorer.history.ind
>>> ex_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.e
>>> xplorer.history.index_jsp:57)
>>>         at
>>> org.opencms.workplace.list.A_CmsListDialog.displayDialog(A_CmsListDialog.jav
>>> a:347)
>>>         at
>>> org.opencms.workplace.list.A_CmsListDialog.actionDialog(A_CmsListDialog.java
>>> :302)
>>>         at
>>> org.opencms.workplace.commons.CmsHistoryList.executeListSingleActions(CmsHis
>>> toryList.java:334)
>>>         at
>>> org.opencms.workplace.commons.CmsHistoryList.performRestoreOperation(CmsHist
>>> oryList.java:466)
>>>         at
>>> org.opencms.file.CmsObject.restoreResourceBackup(CmsObject.java:3054)
>>>         at
>>> org.opencms.file.types.A_CmsResourceType.restoreResourceBackup(A_CmsResource
>>> Type.java:639)
>>>         at
>>> org.opencms.db.CmsSecurityManager.restoreResource(CmsSecurityManager.java:45
>>> 79)
>>>         at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
>>>         at
>>> org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)
>>>
>>>             at
>>> org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResou
>>> rceNotFoundException
>>>
>>>  
>>>
>>> It seems it don´t find the resource, but I don´t know why, can anybody
>>> help
>>> me?
>>>
>>>  
>>>
>>> Thanks,
>>>
>>>  
>>>
>>> Mikel 
>>>
>>>  
>>>
>>>
>>>
>>> _______________________________________________
>>> This mail is sent to you from the opencms-dev mailing list
>>> To change your list options, or to unsubscribe from the list, please
>>> visit
>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>>
>>>       
>>     
>
>
> -----
> Mathias Lin
> Skype: mathias.lin
> http://www.mathiaslin.com
>   



More information about the opencms-dev mailing list