java.util.NoSuchElementException

JFrog JIRA | Ray Munian | 5 years ago
  1. 0

    Trying to setup a new installation of Artifactory and Jenkins using the plugin with an ivy project. Here are the issues i encountered in order and my resolutions. 1. A failure to load the plugin during a build. This was fixed by placing the ivy (2.2.0) jar in the ant lib folder. 2. The plugin was ignoring the Ivy settings property from the ivy plugin. This caused my settings to not get loaded because the default ivysettings.xml was being loaded from .jenkins/tools/Ant_1.8.2/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml. By moving the ivysettings.xml to the same directory as the build script, it loads both my settings and the default settings in the ivy jar. 3. Because my ivysettings was using the default 'ivy.instance' which I believe was being overwritten by the setting from the ivy jar the publish was not being detected by the ArtifactoryBuildListener. I changed my ivy:settings to use a new id and updated all my resolve and publish tasks. This leaves me with the following error: Collecting Module information for module: my-spring [ivy:publish] publish aborted: deleted C:\Documents and Settings\myname\.ivy2\local\com.my\my-spring\11.8.INT-20111006134906.part [subant] Exiting C:\Documents and Settings\myname\.jenkins\jobs\fe_common_dev1\workspace\my-spring\build.xml. BUILD FAILED C:\Documents and Settings\myname\.jenkins\jobs\fe_common_dev1\workspace\ivy\build.xml:5: The following error occurred while executing this line: C:\Documents and Settings\myname\.jenkins\jobs\fe_common_dev1\workspace\build-include.xml:223: impossible to publish artifacts for com.my#my-spring;working@WNJ10002LBITCSM: java.util.NoSuchElementException at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:147) at com.google.common.collect.Iterators.find(Iterators.java:679) at com.google.common.collect.Iterables.find(Iterables.java:555) at org.jfrog.build.extractor.trigger.ArtifactoryBuildInfoTrigger.collectModuleInformation(ArtifactoryBuildInfoTrigger.java:120) It appears the publish has not completed going to the 11.8.INT-20111006134906.part directory (which seems to be a temp location while publishing) before the plugin tries to work with it. Please let me know what additional information I can provide.

    JFrog JIRA | 5 years ago | Ray Munian
    java.util.NoSuchElementException
  2. 0

    Trying to setup a new installation of Artifactory and Jenkins using the plugin with an ivy project. Here are the issues i encountered in order and my resolutions. 1. A failure to load the plugin during a build. This was fixed by placing the ivy (2.2.0) jar in the ant lib folder. 2. The plugin was ignoring the Ivy settings property from the ivy plugin. This caused my settings to not get loaded because the default ivysettings.xml was being loaded from .jenkins/tools/Ant_1.8.2/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml. By moving the ivysettings.xml to the same directory as the build script, it loads both my settings and the default settings in the ivy jar. 3. Because my ivysettings was using the default 'ivy.instance' which I believe was being overwritten by the setting from the ivy jar the publish was not being detected by the ArtifactoryBuildListener. I changed my ivy:settings to use a new id and updated all my resolve and publish tasks. This leaves me with the following error: Collecting Module information for module: my-spring [ivy:publish] publish aborted: deleted C:\Documents and Settings\myname\.ivy2\local\com.my\my-spring\11.8.INT-20111006134906.part [subant] Exiting C:\Documents and Settings\myname\.jenkins\jobs\fe_common_dev1\workspace\my-spring\build.xml. BUILD FAILED C:\Documents and Settings\myname\.jenkins\jobs\fe_common_dev1\workspace\ivy\build.xml:5: The following error occurred while executing this line: C:\Documents and Settings\myname\.jenkins\jobs\fe_common_dev1\workspace\build-include.xml:223: impossible to publish artifacts for com.my#my-spring;working@WNJ10002LBITCSM: java.util.NoSuchElementException at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:147) at com.google.common.collect.Iterators.find(Iterators.java:679) at com.google.common.collect.Iterables.find(Iterables.java:555) at org.jfrog.build.extractor.trigger.ArtifactoryBuildInfoTrigger.collectModuleInformation(ArtifactoryBuildInfoTrigger.java:120) It appears the publish has not completed going to the 11.8.INT-20111006134906.part directory (which seems to be a temp location while publishing) before the plugin tries to work with it. Please let me know what additional information I can provide.

    JFrog JIRA | 5 years ago | Ray Munian
    java.util.NoSuchElementException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.NoSuchElementException

      No message provided

      at com.google.common.collect.AbstractIterator.next()
    2. Guava
      Iterables.find
      1. com.google.common.collect.AbstractIterator.next(AbstractIterator.java:147)
      2. com.google.common.collect.Iterators.find(Iterators.java:679)
      3. com.google.common.collect.Iterables.find(Iterables.java:555)
      3 frames
    3. org.jfrog.build
      ArtifactoryBuildInfoTrigger.collectModuleInformation
      1. org.jfrog.build.extractor.trigger.ArtifactoryBuildInfoTrigger.collectModuleInformation(ArtifactoryBuildInfoTrigger.java:120)
      1 frame