There is 1 update.
 
 
Confluence / cid:jira-generated-image-avatar-fe6dc8ff-4454-4775-b5ba-ee0872263bbb CONFLUENCE-254 Open

"Failed to read package" error as result of migration from old Confluence instances for Windows users

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-6106c178-db46-4956-9269-52ad1eb62e47 Changes by Nikita Petrenko on 28/Jun/24 11:29
 
Description: The Windows users can't migrate the package from the old Confluence instance v6.x in XWiki.

Using the latest version of the Confluence migrator, user may end with errors 
{code:java}
28/06/2024 11:46:14 Failed to read package
28/06/2024 11:46:14 Exception thrown during job execution{code}

The detailed error msg can be found in job.xml file.


{code:java}
<throwable class="org.xwiki.filter.FilterException">
    <detailMessage>Failed to read package</detailMessage>
    <cause class="org.xwiki.filter.FilterException">
      <detailMessage>Failed to analyze the package index</detailMessage>
      <cause class="org.apache.commons.configuration2.ex.ConfigurationException">
        <detailMessage>Cannot create path: C:\Users\
xwiki [user] \AppData\Local\Temp\jetty-0_0_0_0-8080-xwiki-_xwiki-any-14201698989805681616\xwiki-temp\confluencexml-tree1880419856183933007\userimpls\557058:9ab63286-11ed-497d-8147-88b76e6c8a56</detailMessage>
        <stackTrace>
          <trace>org.apache.commons.configuration2.io.DefaultFileSystem.createPath(DefaultFileSystem.java:206)</trace>
          <trace>org.apache.commons.configuration2.io.DefaultFileSystem.getOutputStream(DefaultFileSystem.java:95)</trace>
          <trace>org.apache.commons.configuration2.io.DefaultFileSystem.getOutputStream(DefaultFileSystem.java:65)</trace>
          <trace>org.apache.commons.configuration2.io.FileHandler.save(FileHandler.java:998)</trace>
          <trace>org.apache.commons.configuration2.io.FileHandler.save(FileHandler.java:906)</trace>
          <trace>org.apache.commons.configuration2.io.FileHandler.save(FileHandler.java:860)</trace>
          <trace>org.apache.commons.configuration2.builder.FileBasedConfigurationBuilder.save(FileBasedConfigurationBuilder.java:196)</trace>
          <trace>org.xwiki.contrib.confluence.filter.input.ConfluenceProperties.save(ConfluenceProperties.java:85)</trace>
          <trace>org.xwiki.contrib.confluence.filter.input.ConfluenceXMLPackage.saveObjectProperties(ConfluenceXMLPackage.java:2445)</trace>
          <trace>org.xwiki.contrib.confluence.filter.input.ConfluenceXMLPackage.readUserImplObject(ConfluenceXMLPackage.java:1730)</trace>
          <trace>org.xwiki.contrib.confluence.filter.input.ConfluenceXMLPackage.readObject(ConfluenceXMLPackage.java:1318)</trace>
          <trace>org.xwiki.contrib.confluence.filter.input.ConfluenceXMLPackage.createTree(ConfluenceXMLPackage.java:1260)</trace>
          <trace>org.xwiki.contrib.confluence.filter.input.ConfluenceXMLPackage.read(ConfluenceXMLPackage.java:844)</trace>
          <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readInternal(ConfluenceInputFilterStream.java:310)</trace>
          <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:198)</trace>
          <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:100)</trace>
          <trace>org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:79)</trace>
          <trace>org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:97)</trace>
          <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)</trace>
          <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:223)</trace>
          <trace>org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)</trace>
          <trace>com.xwiki.confluencepro.internal.ConfluenceMigrationJob.runInternal(ConfluenceMigrationJob.java:165)</trace>
          <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)</trace>
          <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:223)</trace>
          <trace>java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)</trace>
          <trace>java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)</trace>
          <trace>java.base/java.lang.Thread.run(Thread.java:833)</trace>
        </stackTrace>
      </cause>
      <stackTrace>
        <trace>org.xwiki.contrib.confluence.filter.input.ConfluenceXMLPackage.read(ConfluenceXMLPackage.java:846)</trace>
        <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readInternal(ConfluenceInputFilterStream.java:310)</trace>
        <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:198)</trace>
        <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:100)</trace>
        <trace>org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:79)</trace>
        <trace>org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:97)</trace>
        <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)</trace>
        <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:223)</trace>
        <trace>org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)</trace>
        <trace>com.xwiki.confluencepro.internal.ConfluenceMigrationJob.runInternal(ConfluenceMigrationJob.java:165)</trace>
        <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)</trace>
        <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:223)</trace>
        <trace>java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)</trace>
        <trace>java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)</trace>
        <trace>java.base/java.lang.Thread.run(Thread.java:833)</trace>
      </stackTrace>
    </cause>
    <stackTrace>
      <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.readInternal(ConfluenceInputFilterStream.java:319)</trace>
      <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:198)</trace>
      <trace>org.xwiki.contrib.confluence.filter.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:100)</trace>
      <trace>org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:79)</trace>
      <trace>org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:97)</trace>
      <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)</trace>
      <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:223)</trace>
      <trace>org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)</trace>
      <trace>com.xwiki.confluencepro.internal.ConfluenceMigrationJob.runInternal(ConfluenceMigrationJob.java:165)</trace>
      <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)</trace>
      <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:223)</trace>
      <trace>java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)</trace>
      <trace>java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)</trace>
      <trace>java.base/java.lang.Thread.run(Thread.java:833)</trace>
    </stackTrace>
  </throwable>
{code}

It seems to be caused by the colon symbol because, for Windows, this is one of the delimiters for the driver separator.

In the newest Confluence v8.x+, the colon symbol for id is no longer used in com.atlassian.confluence.user property.
 
I've attached the sample package from Confluence 6.4.2 that raises the issue on my Windows OS with XWiki installed.