Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4886

Restore of a Magnolia Backup produces java.lang.reflect.InvocationTargetException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: Neutral Neutral
    • None
    • 4.5.6
    • None

      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
      

        Acceptance criteria

              zdenekskodik Zdenek Skodik
              martin.moerner Martin Mörner
              Joerg von Frantzius
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD