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

NullPointer in BasicResolver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.4-RC1
    • None
    • None

    Description

      I'm getting a NullPointer from BasicResolver for a given set up which I've managed to simplify to an ivyconf.xml, two ivy.xml files and an ant build file. See attached zip file.

      When I run the ivy resolve task from the ant file, I get the following NPE:

      java.lang.NullPointerException
      at java.util.Calendar.setTime(Calendar.java:1032)
      at java.text.SimpleDateFormat.format(SimpleDateFormat.java:785)
      at java.text.SimpleDateFormat.format(SimpleDateFormat.java:778)
      at java.text.DateFormat.format(DateFormat.java:314)
      at fr.jayasoft.ivy.resolver.BasicResolver.getDependency(BasicResolver.java:323)
      at fr.jayasoft.ivy.IvyNode.loadData(IvyNode.java:589)
      at fr.jayasoft.ivy.Ivy.fetchDependencies(Ivy.java:1023)
      at fr.jayasoft.ivy.Ivy.doFetchDependencies(Ivy.java:1085)
      at fr.jayasoft.ivy.Ivy.fetchDependencies(Ivy.java:1029)
      at fr.jayasoft.ivy.Ivy.getDependencies(Ivy.java:949)
      at fr.jayasoft.ivy.Ivy.resolve(Ivy.java:764)
      at fr.jayasoft.ivy.ant.IvyResolve.execute(IvyResolve.java:100)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)

      Attachments

        Activity

          People

            xavier Xavier Hanin
            skaffman Kenny MacLeod
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: