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

axis2-java2wsdl-maven-plugin axis2-java2wsdl-maven-plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2, 1.3
    • None
    • Tools
    • None
    • Microsoft XP P2, Java 1.5, Maven 2.07, Axis 1.3

    Description

      The following POM is producting a NullPointerException when it attempts to resolved the artifacts absolute file. I've gone back to 1.2 to check if it behaves in the same way, and I get the same exception on a different line number. Its the same line if I look at that version.

      My POM is as follows:-

      <plugin>
      <groupId>org.apache.axis2</groupId>
      <artifactId>axis2-java2wsdl-maven-plugin</artifactId>
      <version>1.3</version>
      <configuration>
      <className>
      com.qualcomm.qis.mcs.ws.MCSMgmtWS
      </className>
      <outputFileName>
      target/generated-sources/axis2/code2wsdl/MCSMgmtWS.wsdl
      </outputFileName>
      <serviceName>MCSMgmtWS</serviceName>
      </configuration>
      <executions>
      <execution>
      <!-- Ensure this happens before the wsdl2code -->
      <phase>generate-sources</phase>
      <goals>
      <goal>java2wsdl</goal>
      </goals>
      </execution>
      </executions>
      <dependencies>
      <!-- We're dependent on the common project simply to generate the WSDL -->
      <dependency>
      <groupId>com.qualcomm.qis.mcs.mcs-ws</groupId>
      <artifactId>mcs-ws-common</artifactId>
      <version>0.0.1</version>
      </dependency>
      </dependencies>
      </plugin>

      The Exception is as follows:-

      [DEBUG] Configuring mojo 'org.apache.axis2:axis2-java2wsdl-maven-plugin:1.3:java2wsdl' -->
      [DEBUG] (f) className = com.qualcomm.qis.mcs.ws.MCSMgmtWS
      [DEBUG] (f) extraClasses = [Ljava.lang.String;@45c97b
      [DEBUG] (f) outputFileName = target/generated-sources/axis2/code2wsdl/MCSMgmtWS.wsdl
      [DEBUG] (f) package2Namespace = {}
      [DEBUG] (f) project = org.apache.maven.project.MavenProject@77507044
      [DEBUG] (f) serviceName = MCSMgmtWS
      [DEBUG] – end configuration –
      [INFO] [axis2-java2wsdl:java2wsdl

      {execution: default}

      ]
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [DEBUG] Trace
      java.lang.NullPointerException
      at org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.fillOptionMap(Java2WSDLMojo.java:237)
      at org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.java:324)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
      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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      Attachments

        Activity

          People

            Unassigned Unassigned
            pbateman Pat Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: