Uploaded image for project: 'DokuWiki tools'
  1. DokuWiki tools
  2. DOKUWIKI-15

Error when importing from dokuwiki via tgz

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      XWiki Debian 11.6 (installed from the ppa on ubuntu)
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      When trying to import the dokwuki in tgz mode (as I had issues with the directory) I found out that it cannot locate the file in the system.

      I created the tgz file in /tmp/ (so it would be /tmp/doku.tgz) and it failed with this error:

                                  File doesn't exists.
                                No open start element, when trying to write end element    
                class java.io.IOException: javax.xml.stream.XMLStreamException: No open start element, when trying to write end element
          at org.xwiki.filter.xml.internal.serializer.DefaultXMLSerializer.close(DefaultXMLSerializer.java:383)
          at org.xwiki.filter.xml.internal.serializer.DefaultXMLSerializer.invoke(DefaultXMLSerializer.java:361)
          at com.sun.proxy.$Proxy147.close(Unknown Source)
          at org.xwiki.filter.xml.internal.output.AbstractXMLOutputFilterStream.close(AbstractXMLOutputFilterStream.java:101)
          at org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:103)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:236)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:213)
          at org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
      Caused by: class javax.xml.stream.XMLStreamException: No open start element, when trying to write end element
          at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1589)
          at com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java:1618)
          at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteEndTag(BaseNsStreamWriter.java:658)
          at com.ctc.wstx.sw.BaseNsStreamWriter.writeEndElement(BaseNsStreamWriter.java:285)
          at com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1457)
          at com.ctc.wstx.sw.BaseStreamWriter.close(BaseStreamWriter.java:247)
          at javanet.staxutils.helpers.StreamWriterDelegate.close(StreamWriterDelegate.java:182)
          at org.xwiki.filter.xml.internal.serializer.DefaultXMLSerializer.close(DefaultXMLSerializer.java:381)
          at org.xwiki.filter.xml.internal.serializer.DefaultXMLSerializer.invoke(DefaultXMLSerializer.java:361)
          at com.sun.proxy.$Proxy147.close(Unknown Source)
          at org.xwiki.filter.xml.internal.output.AbstractXMLOutputFilterStream.close(AbstractXMLOutputFilterStream.java:101)
          at org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:103)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:236)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:213)
          at org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
        

      I tried moving the file out this folder (tmp might be special), and moved it into /var/www/, then I got this other error

                        No Archiver found for the stream signature  
                class org.apache.commons.compress.archivers.ArchiveException: No Archiver found for the stream signature
          at org.apache.commons.compress.archivers.ArchiveStreamFactory.detect(ArchiveStreamFactory.java:563)
          at org.apache.commons.compress.archivers.ArchiveStreamFactory.createArchiveInputStream(ArchiveStreamFactory.java:476)
          at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.read(DokuWikiInputFilterStream.java:158)
          at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.read(DokuWikiInputFilterStream.java:74)
          at org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:79)
          at org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:100)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:236)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:213)
          at org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              aseques Joan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: