1. Axis2
  2. AXIS2-3851

adb-codegen no longer accepts schemas without targetNamespace


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5.4, 1.6.0
    • Component/s: adb
    • Labels:
    • Environment:
      Java by sun (amd64)
      Eclipse SDK

      Version: 3.2.1
      Build id: M20060921-0945 (Debian version: 3.2.1-4)


      With Axis1.3 I can generate code with an ant task for wsdl2java , from an wsdl file
      that contains an schema with targetNamespace="" (to describe the namespaceless xml I get in a RESTful service).

      With Axis1.4 I can no longer generate it.

      There's an exception originating at :
      [java] Caused by: java.lang.NullPointerException
      [java] at org.apache.axis2.schema.SchemaCompiler.isComponetExists(
      [java] at org.apache.axis2.schema.SchemaCompiler.getParentSchemaFromIncludes(
      [java] at org.apache.axis2.schema.SchemaCompiler.getParentSchema(

      This is apparently because of commit
      Revision 627710
      Jump to revision: Previous Next
      Author: amilas
      Date: Thu Feb 14 11:30:40 2008 UTC (3 months, 3 weeks ago)
      Log Message: when resolving schemas target namespaces must be matched

      Aparently the namespace from the schema is null.
      Maybe it should be "" or maybe the added condition should accept both namespaces being null.

      I'm not sure what else has changed from Axis2 1.3 to 1.4 and whether fixing this would introduce
      some other error with empty namespaces, but it seems a regression, hopefully easy to fix. I'm sorry
      I can't try to fix it now.

      (the function name is misspelt, it lacks an n before the last t of "component", btw, but that's irrelevant).

        4 kB
        Rustam Abdullaev
        134 kB
        Mohamed el habib

        Issue Links


          Xavi Drudis Ferran created issue -
          Mohamed el habib made changes -
          Field Original Value New Value
          Attachment [ 12402362 ]
          Andreas Veithen made changes -
          Link This issue is duplicated by AXIS2-4251 [ AXIS2-4251 ]
          Andreas Veithen made changes -
          Assignee Andreas Veithen [ veithen ]
          Andreas Veithen made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.6 [ 12313622 ]
          Fix Version/s 1.3 [ 12312476 ]
          Resolution Fixed [ 1 ]
          Andreas Veithen made changes -
          Link This issue is duplicated by AXIS2-4887 [ AXIS2-4887 ]
          Andreas Veithen made changes -
          Fix Version/s 1.5.4 [ 12315568 ]
          Rustam Abdullaev made changes -
          Attachment [ 12474032 ]


            • Assignee:
              Andreas Veithen
              Xavi Drudis Ferran
            • Votes:
              3 Vote for this issue
              3 Start watching this issue


              • Created: