[ http://issues.apache.org/jira/browse/AXIS2-1029?page=all ]

Davanum Srinivas resolved AXIS2-1029.
-------------------------------------

    Resolution: Fixed

Applied. please cross check.

thanks,
dims

> NullPointerException: Handling of custom attribute types
> --------------------------------------------------------
>
>                 Key: AXIS2-1029
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1029
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>            Reporter: Fabian Christ
>         Attachments: SchemaCompiler.java.patch, sts.zip
>
>
> Hi,
> using WSDL2Java [-ss -sd -d adb] for the attached WSDL crashes in a 
> NullPointerException:
> 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:224)
>       at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>       at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: 
> java.lang.reflect.InvocationTargetException
>       at 
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:52)
>       at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)
>       ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
>       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.SimpleDBExtension.engage(SimpleDBExtension.java:49)
>       ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: 
> java.lang.NullPointerException
>       at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:239)
>       at 
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77)
>       ... 8 more
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.axis2.schema.SchemaCompiler.processAttribute(SchemaCompiler.java:1295)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:855)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:817)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:773)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:446)
>       at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)
>       at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:290)
>       at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:290)
>       at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:230)
>       ... 9 more
> Problem is located in 
> org.apache.axis2.schema.SchemaCompiler.processAttribute(XmlSchemaAttribute, 
> BeanWriterMetaInfoHolder, XmlSchema). This method assumes that attributes 
> only refer to standard types at this point. I have an counter-example.
> I also attached a small patch which prevents the Exception but handling of 
> custom attribute types is still missing here.
> - Fabian

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to