You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Alastair Fettes (JIRA)" <ji...@apache.org> on 2007/05/31 18:24:15 UTC
[jira] Created: (AXIS2C-610) Null pionter exception on complex
schema code gen
Null pionter exception on complex schema code gen
-------------------------------------------------
Key: AXIS2C-610
URL: https://issues.apache.org/jira/browse/AXIS2C-610
Project: Axis2-C
Issue Type: Bug
Components: code generation
Affects Versions: Current (Nightly)
Environment: Operating System: Windows XP
Java version: 1.5.0_06
Axis2 Version: SNAPSHOT from 05/29/2007
Java arguments: -XX:MaxPermSize=256m -Xms256M -Xmx256M
WSDL2C arguments: -ss -sd -d adb -u
Schema: AIXM-5-RC1-7024-XML-20070124
Reporter: Alastair Fettes
Priority: Minor
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: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.InvocationTargetException
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
... 3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:194)
at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:924)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:910)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:597)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
at org.apache.axis2.schema.SchemaCompiler.processGroup(SchemaCompiler.java:2227)
at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1932)
at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
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(CStructWriter.java:612)
at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:503)
at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:426)
at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:315)
at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:189)
... 45 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Assigned: (AXIS2C-610) Null pionter exception on complex
schema code gen
Posted by "Dimuthu Gamage (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dimuthu Gamage reassigned AXIS2C-610:
-------------------------------------
Assignee: Dimuthu Gamage
> Null pionter exception on complex schema code gen
> -------------------------------------------------
>
> Key: AXIS2C-610
> URL: https://issues.apache.org/jira/browse/AXIS2C-610
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: Current (Nightly)
> Environment: Operating System: Windows XP
> Java version: 1.5.0_06
> Axis2 Version: SNAPSHOT from 05/29/2007
> Java arguments: -XX:MaxPermSize=256m -Xms256M -Xmx256M
> WSDL2C arguments: -ss -sd -d adb -u
> Schema: AIXM-5-RC1-7024-XML-20070124
> Reporter: Alastair Fettes
> Assignee: Dimuthu Gamage
> Priority: Minor
> Attachments: aixm.zip
>
>
> 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: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.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:194)
> at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:924)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:910)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:597)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processGroup(SchemaCompiler.java:2227)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1932)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> 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(CStructWriter.java:612)
> at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:503)
> at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:426)
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:315)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:189)
> ... 45 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXIS2C-610) Null pionter exception on complex
schema code gen
Posted by "Michael Mole (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539376 ]
Michael Mole commented on AXIS2C-610:
-------------------------------------
I'm not entirely sure what the code is doing when it crashes, so I'm reluctant to provide a patch, but the NullPointerException seems to be caused by invoking a method on a Null QName object on line 618 of org.apache.axis2.schema.writer.CStructWriter. I've made the following change to code to get around it until this is fixed.
QName schemaQName = metainf.getSchemaQNameForQName(name);
String nsUri = null;
if (!(schemaQName == null))
{
nsUri = schemaQName.getNamespaceURI();
}
if (!name.getNamespaceURI().equals(nsUri))
{
XSLTUtils.addAttribute(model, "child-nsuri", nsUri, property);
XSLTUtils.addAttribute(model, "child-nsprefix", getPrefixForURI(nsUri, null), property);
}
> Null pionter exception on complex schema code gen
> -------------------------------------------------
>
> Key: AXIS2C-610
> URL: https://issues.apache.org/jira/browse/AXIS2C-610
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: Current (Nightly)
> Environment: Operating System: Windows XP
> Java version: 1.5.0_06
> Axis2 Version: SNAPSHOT from 05/29/2007
> Java arguments: -XX:MaxPermSize=256m -Xms256M -Xmx256M
> WSDL2C arguments: -ss -sd -d adb -u
> Schema: AIXM-5-RC1-7024-XML-20070124
> Reporter: Alastair Fettes
> Priority: Minor
> Attachments: aixm.zip
>
>
> 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: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.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:194)
> at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:924)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:910)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:597)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processGroup(SchemaCompiler.java:2227)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1932)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> 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(CStructWriter.java:612)
> at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:503)
> at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:426)
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:315)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:189)
> ... 45 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXIS2C-610) Null pionter exception on complex
schema code gen
Posted by "Alastair Fettes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500403 ]
Alastair Fettes commented on AXIS2C-610:
----------------------------------------
WSDL File:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.foo.com/"
xmlns:tns="http://www.foo.com/"
xmlns:aixm="http://www.aixm.aero/schema/5.0"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.aixm.aero/schema/5.0"
schemaLocation="../aixm/AIXM-Feature.xsd"/>
</xsd:schema>
</wsdl:types>
<!-- ___________________________ GetFeature ____________________________ -->
<wsdl:message name="GetObstacleRequest">
<wsdl:part element="aixm:Obstacle" name="Body"/>
</wsdl:message>
<wsdl:message name="GetObstacleResponse">
<wsdl:part element="aixm:Obstacle" name="Body"/>
</wsdl:message>
<!-- ___________________________ AvnPortType ___________________________ -->
<wsdl:portType name="PortType">
<wsdl:operation name="GetObstacle">
<wsdl:input message="tns:GetObstacleRequest"/>
<wsdl:output message="tns:GetObstacleResponse"/>
</wsdl:operation>
</wsdl:portType>
<!-- _________________________ AvnPortBinding __________________________ -->
<wsdl:binding name="PortBinding" type="tns:PortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetObstacle">
<soap:operation/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<!-- ___________________________ AvnService ____________________________ -->
<wsdl:service name="ObstacleService">
<wsdl:port name="ObstaclePort" binding="tns:PortBinding">
<wsdl:documentation>
<wsi:Claim conformsTo="http://ws-i.org/profiles/basic/1.0" />
</wsdl:documentation>
<soap:address location="http://www.foo.com/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
> Null pionter exception on complex schema code gen
> -------------------------------------------------
>
> Key: AXIS2C-610
> URL: https://issues.apache.org/jira/browse/AXIS2C-610
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: Current (Nightly)
> Environment: Operating System: Windows XP
> Java version: 1.5.0_06
> Axis2 Version: SNAPSHOT from 05/29/2007
> Java arguments: -XX:MaxPermSize=256m -Xms256M -Xmx256M
> WSDL2C arguments: -ss -sd -d adb -u
> Schema: AIXM-5-RC1-7024-XML-20070124
> Reporter: Alastair Fettes
> Priority: Minor
>
> 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: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.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:194)
> at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:924)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:910)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:597)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processGroup(SchemaCompiler.java:2227)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1932)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> 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(CStructWriter.java:612)
> at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:503)
> at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:426)
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:315)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:189)
> ... 45 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXIS2C-610) Null pionter exception on complex
schema code gen
Posted by "Dimuthu Gamage (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549280 ]
Dimuthu Gamage commented on AXIS2C-610:
---------------------------------------
Currently The exception you mentioning here is not occuring, instead it rais a following kind of exception. (both in WSDL2Java and WSDL2C)
Exception in thread "main" java.lang.StackOverflowError
at java.util.AbstractList$Itr.<init>(AbstractList.java:318)
at java.util.AbstractList$Itr.<init>(AbstractList.java:318)
at java.util.AbstractList.iterator(AbstractList.java:273)
at org.apache.ws.commons.schema.XmlSchemaObjectCollection.getIterator(XmlSchemaObjectCollection.java:73)
at org.apache.ws.commons.schema.XmlSchema.getTypeByName(XmlSchema.java:167)
at org.apache.ws.commons.schema.XmlSchema.getTypeByName(XmlSchema.java:179)
at org.apache.ws.commons.schema.XmlSchema.getTypeByName(XmlSchema.java:179)
at org.apache.ws.commons.schema.XmlSchema.getTypeByName(XmlSchema.java:179)
at org.apache.ws.commons.schema.XmlSchema.getTypeByName(XmlSchema.java:179)
And I got to know, this is due to a bug in xml schema, failing to parse recursively referenced elements,
Ajith and Amila in the Java list is fixing the issue,
I will let this list and jira know, when it is fixed
> Null pionter exception on complex schema code gen
> -------------------------------------------------
>
> Key: AXIS2C-610
> URL: https://issues.apache.org/jira/browse/AXIS2C-610
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: Current (Nightly)
> Environment: Operating System: Windows XP
> Java version: 1.5.0_06
> Axis2 Version: SNAPSHOT from 05/29/2007
> Java arguments: -XX:MaxPermSize=256m -Xms256M -Xmx256M
> WSDL2C arguments: -ss -sd -d adb -u
> Schema: AIXM-5-RC1-7024-XML-20070124
> Reporter: Alastair Fettes
> Assignee: Dimuthu Gamage
> Priority: Minor
> Attachments: aixm.zip
>
>
> 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: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.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:194)
> at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:924)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:910)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:597)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processGroup(SchemaCompiler.java:2227)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1932)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> 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(CStructWriter.java:612)
> at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:503)
> at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:426)
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:315)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:189)
> ... 45 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Updated: (AXIS2C-610) Null pionter exception on complex
schema code gen
Posted by "Alastair Fettes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Fettes updated AXIS2C-610:
-----------------------------------
Attachment: aixm.zip
The (url corrected) AIXM schema that causes the exception listed on AXIS2C-610.
The changes from the original are in the import/include uri's from \ to /.
> Null pionter exception on complex schema code gen
> -------------------------------------------------
>
> Key: AXIS2C-610
> URL: https://issues.apache.org/jira/browse/AXIS2C-610
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: Current (Nightly)
> Environment: Operating System: Windows XP
> Java version: 1.5.0_06
> Axis2 Version: SNAPSHOT from 05/29/2007
> Java arguments: -XX:MaxPermSize=256m -Xms256M -Xmx256M
> WSDL2C arguments: -ss -sd -d adb -u
> Schema: AIXM-5-RC1-7024-XML-20070124
> Reporter: Alastair Fettes
> Priority: Minor
> Attachments: aixm.zip
>
>
> 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: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.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:194)
> at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:924)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:910)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:597)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processGroup(SchemaCompiler.java:2227)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1932)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> 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(CStructWriter.java:612)
> at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:503)
> at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:426)
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:315)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:189)
> ... 45 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Assigned: (AXIS2C-610) Null pionter exception on complex
schema code gen
Posted by "Milinda Lakmal Pathirage (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Milinda Lakmal Pathirage reassigned AXIS2C-610:
-----------------------------------------------
Assignee: Milinda Lakmal Pathirage (was: Dimuthu Gamage)
> Null pionter exception on complex schema code gen
> -------------------------------------------------
>
> Key: AXIS2C-610
> URL: https://issues.apache.org/jira/browse/AXIS2C-610
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: Current (Nightly)
> Environment: Operating System: Windows XP
> Java version: 1.5.0_06
> Axis2 Version: SNAPSHOT from 05/29/2007
> Java arguments: -XX:MaxPermSize=256m -Xms256M -Xmx256M
> WSDL2C arguments: -ss -sd -d adb -u
> Schema: AIXM-5-RC1-7024-XML-20070124
> Reporter: Alastair Fettes
> Assignee: Milinda Lakmal Pathirage
> Priority: Minor
> Attachments: aixm.zip
>
>
> 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: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.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:194)
> at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:924)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:910)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:597)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processGroup(SchemaCompiler.java:2227)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1932)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> 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(CStructWriter.java:612)
> at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:503)
> at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:426)
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:315)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:189)
> ... 45 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Resolved: (AXIS2C-610) Null pionter exception on complex
schema code gen
Posted by "Milinda Lakmal Pathirage (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Milinda Lakmal Pathirage resolved AXIS2C-610.
---------------------------------------------
Resolution: Later
Fix Version/s: Current (Nightly)
<xsd:complexType name="AngleType">
<xsd:simpleContent>
<xsd:restriction base="gml:MeasureType"/>
</xsd:simpleContent>
</xsd:complexType>
Types like above are still not supported by Axis2 ADB Code Generators Schema Compiler. We'll fix this after Axis2 ADB Code Generator support those types.
> Null pionter exception on complex schema code gen
> -------------------------------------------------
>
> Key: AXIS2C-610
> URL: https://issues.apache.org/jira/browse/AXIS2C-610
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: Current (Nightly)
> Environment: Operating System: Windows XP
> Java version: 1.5.0_06
> Axis2 Version: SNAPSHOT from 05/29/2007
> Java arguments: -XX:MaxPermSize=256m -Xms256M -Xmx256M
> WSDL2C arguments: -ss -sd -d adb -u
> Schema: AIXM-5-RC1-7024-XML-20070124
> Reporter: Alastair Fettes
> Assignee: Milinda Lakmal Pathirage
> Priority: Minor
> Fix For: Current (Nightly)
>
> Attachments: aixm.zip
>
>
> 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: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.InvocationTargetException
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:47)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:194)
> at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:924)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:910)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:597)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:454)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1857)
> at org.apache.axis2.schema.SchemaCompiler.processGroup(SchemaCompiler.java:2227)
> at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1932)
> at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1778)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:967)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1096)
> at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1067)
> at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:983)
> at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:904)
> at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:855)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:494)
> at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:465)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
> at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
> 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(CStructWriter.java:612)
> at org.apache.axis2.schema.writer.CStructWriter.populateInfo(CStructWriter.java:503)
> at org.apache.axis2.schema.writer.CStructWriter.getBeanElement(CStructWriter.java:426)
> at org.apache.axis2.schema.writer.CStructWriter.process(CStructWriter.java:315)
> at org.apache.axis2.schema.writer.CStructWriter.write(CStructWriter.java:189)
> ... 45 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org