Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-452

Assembler ant task fails on WAR with no manifest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.4, 1.2.0
    • 1.2.0, 1.1.5, 2.0.0
    • deployer
    • None

    Description

      Running the assembler ant task on a WAR or EAR with no manifest results in a NullPointerException:

      Caused by: /Users/edalquist/java/workspace_33/uPortal_pluto/uportal-ear/build.xml:59: The following error occurred while executing this line:
      /Users/edalquist/java/workspace_33/uPortal_pluto/uportal-ear/build.xml:77: java.lang.NullPointerException: man
      at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
      at net.sf.antcontrib.logic.ForEach.executeSequential(ForEach.java:178)
      at net.sf.antcontrib.logic.ForEach.execute(ForEach.java:254)
      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)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
      ... 32 more
      Caused by: /Users/edalquist/java/workspace_33/uPortal_pluto/uportal-ear/build.xml:77: java.lang.NullPointerException: man
      at org.apache.tools.ant.Task.perform(Task.java:373)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
      ... 45 more
      Caused by: java.lang.NullPointerException: man
      at java.util.jar.JarOutputStream.<init>(JarOutputStream.java:43)
      at org.apache.pluto.util.assemble.war.WarAssembler.assembleWar(WarAssembler.java:67)
      at org.apache.pluto.util.assemble.war.WarAssembler.assembleInternal(WarAssembler.java:53)
      at org.apache.pluto.util.assemble.AbstractArchiveAssembler.assemble(AbstractArchiveAssembler.java:87)
      at org.apache.pluto.ant.AssembleTask.execute(AssembleTask.java:222)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      ... 51 more

      Attachments

        1. pluto-assembler.patch
          1 kB
          Eric Dalquist

        Activity

          People

            emetsger Elliot Metsger
            edalquist Eric Dalquist
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: