Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1197

CodeGenerationException thrown without info about input files problem.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0
    • None
    • None
    • Windows XP Professional
      Java Sun SE6 1.6.0_05-b13

    Description

      An exception thrown without pointing for location of problem in input files.
      Input files included as an attachment 'siri-1.0modified.zip'.
      They are seem to be right. oXygen handles it right and gSOAP almost (excluding subsequences, but code for the rest is generated).

      Command used to generate source:
      java org.apache.axis2.wsdl.WSDL2C -uri siri_wsProducer.wsdl -ss -sd -d adb -u

      Output:
      Retrieving document at 'siri_wsProducer.wsdl'.
      Retrieving schema wsdl:imported from 'siri.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_wsProducer.wsdl'.
      Retrieving schema at 'siri_common.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_location-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_common.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_common.xsd'.
      Retrieving schema at 'siri_types-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_requests-v1.0.xsd'.
      Retrieving schema at '../xml/xml.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_types-v1.0.xsd'.
      Retrieving schema at 'siri_location-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_requests-v1.0.xsd'.
      Retrieving schema at 'siri_productionTimetable_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'siri_facility-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_journey-v1.0.xsd'.
      Retrieving schema at 'siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_facility-v1.0.xsd'.
      Retrieving schema at 'siri_types-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_reference-v1.0.xsd'.
      Retrieving schema at 'siri_location-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_reference-v1.0.xsd'.
      Retrieving schema at 'siri_time-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_reference-v1.0.xsd'.
      Retrieving schema at 'siri_facilities-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_facility-v1.0.xsd'.
      Retrieving schema at 'siri_time-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_facility-v1.0.xsd'.
      Retrieving schema at 'siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_journey-v1.0.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_permissions-v1.0.xsd'.
      Retrieving schema at 'siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_permissions-v1.0.xsd'.
      Retrieving schema at 'ref/siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'siri_common.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'siri_estimatedTimetable_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_estimatedTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_estimatedTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_estimatedTimetable_service.xsd'.
      Retrieving schema at 'siri_stopMonitoring_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'siri_stopTimetable_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_stopMonitoring_service.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_stopTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_stopTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_stopTimetable_service.xsd'.
      Retrieving schema at 'siri_vehicleMonitoring_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_vehicleMonitoring_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_vehicleMonitoring_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_vehicleMonitoring_service.xsd'.
      Retrieving schema at 'siri_connectionMonitoring_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'siri_connectionTimetable_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_connectionMonitoring_service.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_connectionTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_connectionTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_connectionTimetable_service.xsd'.
      Retrieving schema at 'siri_generalMessage_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_generalMessage_service.xsd'.
      Retrieving schema at 'ref/siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_generalMessage_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_generalMessage_service.xsd'.
      Retrieving schema at 'siri_discovery.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_discovery.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_discovery.xsd'.
      Retrieving schema at 'siri_generalMessage_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_discovery.xsd'.
      Retrieving document at 'siri_wsProducer.wsdl'.
      Retrieving schema wsdl:imported from 'siri.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_wsProducer.wsdl'.
      Retrieving schema at 'siri_common.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_location-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_common.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_common.xsd'.
      Retrieving schema at 'siri_types-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_requests-v1.0.xsd'.
      Retrieving schema at '../xml/xml.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_types-v1.0.xsd'.
      Retrieving schema at 'siri_location-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_requests-v1.0.xsd'.
      Retrieving schema at 'siri_productionTimetable_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'siri_facility-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_journey-v1.0.xsd'.
      Retrieving schema at 'siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_facility-v1.0.xsd'.
      Retrieving schema at 'siri_types-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_reference-v1.0.xsd'.
      Retrieving schema at 'siri_location-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_reference-v1.0.xsd'.
      Retrieving schema at 'siri_time-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_reference-v1.0.xsd'.
      Retrieving schema at 'siri_facilities-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_facility-v1.0.xsd'.
      Retrieving schema at 'siri_time-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_facility-v1.0.xsd'.
      Retrieving schema at 'siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_journey-v1.0.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_permissions-v1.0.xsd'.
      Retrieving schema at 'siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/ref/siri_permissions-v1.0.xsd'.
      Retrieving schema at 'ref/siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'siri_common.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_productionTimetable_service.xsd'.
      Retrieving schema at 'siri_estimatedTimetable_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_estimatedTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_estimatedTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_estimatedTimetable_service.xsd'.
      Retrieving schema at 'siri_stopMonitoring_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'siri_stopTimetable_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_stopMonitoring_service.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_stopTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_stopTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_stopTimetable_service.xsd'.
      Retrieving schema at 'siri_vehicleMonitoring_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_vehicleMonitoring_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_vehicleMonitoring_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_vehicleMonitoring_service.xsd'.
      Retrieving schema at 'siri_connectionMonitoring_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'siri_connectionTimetable_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_connectionMonitoring_service.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_connectionTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_connectionTimetable_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_connectionTimetable_service.xsd'.
      Retrieving schema at 'siri_generalMessage_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_generalMessage_service.xsd'.
      Retrieving schema at 'ref/siri_reference-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_generalMessage_service.xsd'.
      Retrieving schema at 'ref/siri_permissions-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_generalMessage_service.xsd'.
      Retrieving schema at 'siri_discovery.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri.xsd'.
      Retrieving schema at 'ref/siri_requests-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_discovery.xsd'.
      Retrieving schema at 'ref/siri_journey-v1.0.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_discovery.xsd'.
      Retrieving schema at 'siri_generalMessage_service.xsd', relative to 'file:/C:/axis2c-bin-1.4.0-win32/siri-1.0/siri_discovery.xsd'.
      Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
      at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
      at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
      Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
      ... 2 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
      ... 3 more
      Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:289)
      at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
      ... 8 more
      Caused by: java.lang.NullPointerException
      at org.apache.axis2.schema.SchemaCompiler.isComponetExists(SchemaCompiler.java:2723)
      at org.apache.axis2.schema.SchemaCompiler.getParentSchemaFromIncludes(SchemaCompiler.java:2670)
      at org.apache.axis2.schema.SchemaCompiler.getParentSchema(SchemaCompiler.java:2644)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:758)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:563)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:370)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:356)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:356)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
      ... 9 more

      Attachments

        1. siri-1.0modified.zip
          91 kB
          Daniel Gorodowienko

        Activity

          People

            Unassigned Unassigned
            dglpt Daniel Gorodowienko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: