Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-21161

[Offliner] Files cannot be downloaded using offliner manifest file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-7.12-GA
    • fuse-7.12-GA
    • Offline Repo
    • None
    • False
    • None
    • False
    • % %
    • Todo
    • Very Likely

      https://download.eng.bos.redhat.com/rcm-guest/staging/fuse/FUSE-7.12.0.AR6/redhat-fuse-7.12.0.AR6-offline-manifest.zip

      When trying to download files using offliner it fails with:

      14:13:17 08:13:16.916 [main] INFO com.redhat.red.offliner.Offliner - Waiting for 108073 downloads
      14:13:17 
      14:13:17 08:13:16.917 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection manager is shutting down
      14:13:17 08:13:16.918 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection manager shut down
      14:13:17 Download execution manager failed.
      14:13:17 java.util.concurrent.ExecutionException: java.lang.NullPointerException
      14:13:17 	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
      14:13:17 	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
      14:13:17 	at com.redhat.red.offliner.Offliner.copyOffline(Offliner.java:231)
      14:13:17 	at com.redhat.red.offliner.cli.Main.run(Main.java:115)
      14:13:17 	at com.redhat.red.offliner.cli.Main.main(Main.java:71)
      14:13:17 Caused by: java.lang.NullPointerException
      14:13:17 	at com.redhat.red.offliner.Offliner.lambda$newDownloader$2(Offliner.java:415)
      14:13:17 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      14:13:17 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      14:13:17 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      14:13:17 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      14:13:17 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      14:13:17 	at java.base/java.lang.Thread.run(Thread.java:829) 

      The problem seems to be, that redhat-fuse-7.12.0.AR6-offline-manifest.txt contains empty line at the beginning. I removed it by

      sed -i '/^$/d' redhat-fuse-7.12.0.AR6-offline-manifest.txt 

      Now the test runs ...

      To reproduce:

      java -jar ./offliner-2.0.jar -M -d repository -r https://maven.repository.redhat.com/ga -r https://repo1.maven.org/maven2/ -r https://repository.jboss.org/nexus/content/groups/public -r https://repository.jboss.org/nexus/content/groups/fs-public -r https://repo.fusesource.com/nexus/content/groups/public -r https://maven.restlet.talend.com -r https://repo.maven.apache.org/maven2/ -r https://repo.spring.io/libs-milestone -r https://svn.apache.org/repos/asf/servicemix/m2-repo -r https://packages.atlassian.com/maven-external -r http://maven.irisa.fr/artifactory/list/kermeta-public-release/ -r https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases/ -r https://www.seasar.org/maven/maven2/ -r https://maven.repository.redhat.com/earlyaccess/all/ -r http://resources.knopflerfish.org/repo/maven2/release/ -r http://alchim.sf.net/download/snapshots ./redhat-fuse-7.12.0.AR6-offline-manifest.txt

       

       

              Unassigned Unassigned
              rhn-support-ppinkas Petr Pinkas
              Petr Pinkas Petr Pinkas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: