[MAGNOLIA-4886] Restore of a Magnolia Backup produces java.lang.reflect.InvocationTargetException Created: 05/Mar/13 Updated: 23/Jun/14 Resolved: 13/Mar/13 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 4.5.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Martin Mörner | Assignee: | Zdenek Skodik |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | backup, restore | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Visible to: |
Joerg von Frantzius
|
||||||||
| Description |
|
After donwloading the magnolia-module-backup-1.2.1.tar.gz and executing the ./bin/restore the restore fails with the following exception: ./bin/restore -backup ../backup/backup-13-03-05_1455/ -webapp ../apache-tomcat-7.0.37/webapps/author/ web.xml found at /home/test/magnolia-module-backup-1.2.1/../apache-tomcat-7.0.37/webapps/author/WEB-INF/web.xml Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at info.magnolia.tools.AbstractLauncher.launch(AbstractLauncher.java:126) at info.magnolia.tools.AbstractLauncher.doMain(AbstractLauncher.java:84) at info.magnolia.module.backup.RestoreLauncher.main(RestoreLauncher.java:66) Caused by: java.lang.IncompatibleClassChangeError: Class org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy does not implement the requested interface org.xml.sax.Locator at org.jdom.input.SAXHandler.startDocument(SAXHandler.java:334) at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:847) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:826) at info.magnolia.tools.AbstractBasicExecutable.init(AbstractBasicExecutable.java:131) at info.magnolia.module.backup.Restore.init(Restore.java:72) at info.magnolia.tools.AbstractBasicExecutable.exec(AbstractBasicExecutable.java:68) ... 7 more |
| Comments |
| Comment by Zdenek Skodik [ 13/Mar/13 ] |
|
Running the restore, driven by backup-1.2.1, against the default set of jars coming with 4.5.6 EE webapp actually doesn't throw any exception and restore job gets done successfully. Hence it must be related to anything else you've deployed to your classpath, as I guess you've already noticed. Please open a support issue would you need any assistance with. |