Hi

    We were trying to generate using wsdl2c. The wsdl files are from
axis1.x java. When we use axis2java it works fine, but

while trying out with wsdl2c we get errors. The error seems to point to
the element any (when we comment that line it generates fine). Below are
the wsdl file snip and the trace.

Any help would be much appreciated.

 

Thanks

Sampath Kannan

 

<SNIP>

<wsdl:types>

        <schema xmlns="http://www.w3.org/2001/XMLSchema";

            targetNamespace="urn:services.ws.core.collabnet.com"

            elementFormDefault="qualified">

            <import namespace="http://xml.apache.org/xml-soap"/>

            <element name="request">

                <complexType>

                    <sequence>

                        <any minOccurs="1" maxOccurs="1"/>

                    </sequence>

                </complexType>

            </element>

            <element name="response">

                <complexType>

                    <sequence>

                        <any minOccurs="1" maxOccurs="1"/>

                    </sequence>

                </complexType>

            </element>

        </schema>

    </wsdl:types>

<SNIP>

 

Exception Trace:

 

Retrieving document at 'exception.wsdl-import', relative to
'file:/d:/myspace/pr

ojects/Connectors/wsdl/wsdl/'.

Retrieving document at 'exception.wsdl-import', relative to
'file:/d:/myspace/pr

ojects/Connectors/wsdl/wsdl/'.

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(CodeGener

ationEngine.java:256)

        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

        at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:28)

Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetExcepti

on

        at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp

leDBExtension.java:50)

        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener

ationEngine.java:209)

        ... 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(DelegatingMethodAcces

sorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp

leDBExtension.java:47)

        ... 3 more

Caused by: org.apache.axis2.schema.SchemaCompilationException:
java.lang.NullPoi

nterException

        at
org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java

:169)

        at
org.apache.axis2.schema.SchemaCompiler.writeElement(SchemaCompiler.ja

va:439)

        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:31

1)

        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:21

0)

        at
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java

:75)

        ... 8 more

Caused by: java.lang.NullPointerException

        at
org.apache.axis2.schema.writer.CStructWriter.addPropertyEntries(CStru

ctWriter.java:612)

        at
org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWrit

er.java:503)

        at
org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWr

iter.java:426)

        at
org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.ja

va:315)

        at
org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java

:167)

        ... 12 more

 

Reply via email to