Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-2549

Sample quickstartjibx cannot be compiled with Ant1.6.5. Throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • nightly
    • samples
    • None

    Description

      Null Pointer Exception when compiling quickstartjibx. (ant 1.6.5)
      Stack trace is as follows:
      C:\axis2\axis2-1.2-SNAPSHOT\samples\quickstartjibx>\apache-ant-1.6.5\bin\ant -v generate.service
      Apache Ant version 1.6.5 compiled on June 2 2005
      Buildfile: build.xml
      Detected Java version: 1.5 in: c:\jdk1.5.0_09\jre
      Detected OS: Windows XP
      parsing buildfile C:\axis2\axis2-1.2-SNAPSHOT\samples\quickstartjibx\build.xml with URI = file:///C:/axis2/axis2-1.2-SNAPSHOT/samples/quickstartjibx/build.xml
      Project base dir set to: C:\axis2\axis2-1.2-SNAPSHOT\samples\quickstartjibx
      [property] Loading Environment env.
      Build sequence for target(s) `generate.service' is [init, generate.service]
      Complete build sequence is [init, generate.service, generate.client, run.client, clean, generate.all, ]

      init:
      [delete] Deleting directory C:\axis2\axis2-1.2-SNAPSHOT\samples\quickstartjibx\build
      [delete] Deleting directory C:\axis2\axis2-1.2-SNAPSHOT\samples\quickstartjibx\build\service
      [delete] Deleting directory C:\axis2\axis2-1.2-SNAPSHOT\samples\quickstartjibx\build
      [mkdir] Created dir: C:\axis2\axis2-1.2-SNAPSHOT\samples\quickstartjibx\build

      generate.service:

      BUILD FAILED
      C:\axis2\axis2-1.2-SNAPSHOT\samples\quickstartjibx\build.xml:41: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.NullPointerException
      at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:327)
      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.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.Main.runBuild(Main.java:668)
      at org.apache.tools.ant.Main.startAnt(Main.java:187)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.NullPointerException
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:255)
      at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:325)
      ... 12 more
      Caused by: java.lang.NullPointerException
      at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:580)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:74)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:208)
      ... 13 more
      — Nested Exception —
      org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.NullPointerException
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:255)
      at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:325)
      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.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.Main.runBuild(Main.java:668)
      at org.apache.tools.ant.Main.startAnt(Main.java:187)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      Caused by: java.lang.NullPointerException
      at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:580)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:74)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:208)
      ... 13 more

      Total time: 2 seconds

      Attachments

        Activity

          People

            dsosnoski Dennis M. Sosnoski
            ssinha Swati Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: