Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-690

NullPointerException reported instead of error in ivy:cachepath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-1
    • 2.0.0-beta-2
    • None
    • None
    • Ubuntu 7.10 Gutsy Gibbon; Java 1.6.0_03-b05; Ant 1.7.0; Ivy 2.0.0-beta1

    Description

      Using the erroneous:

      <ivy:cachepath organisation="apache" module="commons-lang" revision="2.3" pathid="lib.path.id" inline="true"/>

      leads to the error message:

      No ivy:settings found for the default reference 'ivy.instance'. A default instance will be used
      no settings file found, using default...
      [ivy:cachepath] :: Ivy 2.0.0-beta1 - 20071206070608 ::
      http://ant.apache.org/ivy/ ::
      :: loading settings :: url = jar:file:/home/users/russel/lib/Java/groovy/lib/ivy-2.0.0-beta1.jar!/org/apache/ivy/core/settings/ivysettings.xml

      BUILD FAILED
      /home/Checkouts/SVK/Gant/local/gant/trunk/examples/ivy/build.xml:36:
      impossible to resolve dependencies:
      java.lang.NullPointerException

      Correct the ivy:cachepath to:

      <ivy:cachepath organisation="commons-lang" module="commons-lang" revision="2.3" pathid="lib.path.id" inline="true"/>

      and everything works as expected. The error report here is that a message other than NullPointerException should be generated.

      Attachments

        Activity

          People

            maartenc Maarten Coene
            russel Dr. Russel Winder
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: