Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7641

AETHER error log produced at startup when changing extension repository for a filesystem maven repository

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 3.5
    • Extension
    • Unknown
    • N/A
    • N/A

    Description

      Looks like there is a bug in AETHER which makes it fail to resolve an extension if it's already in its local repository but was resolved by another repository before changing to the local maven repository.

      The error is

      Caused by: java.lang.IllegalArgumentException: number of transferred bytes cannot be negative
      	at org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:116) ~[aether-util-1.12.jar:na]
      	at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:300) ~[aether-connector-file-1.12.jar:na]
      	at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60) ~[aether-util-1.12.jar:na]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) ~[na:1.6.0_26]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) ~[na:1.6.0_26]
      

      and happen because AETHER does not download the file (because it's already there) but some following code still expect the int containing the file size incremented during download to be properly set which is not the case.

      Works well when cleaning AETHER cache repository (i.e. the "aether-repository" folder in whatever is the XWiki temporary directory) before starting XWiki.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: