You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Kai Huener (JIRA)" <ji...@apache.org> on 2006/10/03 23:12:19 UTC
[jira] Created: (AXIS2-1294) Error during code generation
Error during code generation
----------------------------
Key: AXIS2-1294
URL: http://issues.apache.org/jira/browse/AXIS2-1294
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: wsdl
Affects Versions: nightly
Environment: Apache, Tomcat 5.5, Axis2 (nighly), self compiled XmlSchema from current SVN
Reporter: Kai Huener
Attachments: agreement_state_types.xsd, agreement_types.xsd, AgreementPortType.wsdl
Hello,
when I try to generate Java code (WSDL2Java.bat of current nightly) of the attached WSDL, I get the following error message (something about "array out of bounce") Since there is no more information given by the message, I have no idea how to handle this. The attached schemas are referenced in the WSDL, but their compilation works fine with other WSDLs, so I think the problem is within the attached WSDL.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:112)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: 0; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:240)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:103)
... 2 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.AddQNameReference(WSDL11ToAxisServiceBuilder.java:745)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:513)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:234)
... 3 more
Best regards,
Kai
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1294) Error during code generation
Posted by "Kai Huener (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1294?page=all ]
Kai Huener updated AXIS2-1294:
------------------------------
Attachment: agreement_state_types.xsd
> Error during code generation
> ----------------------------
>
> Key: AXIS2-1294
> URL: http://issues.apache.org/jira/browse/AXIS2-1294
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: nightly
> Environment: Apache, Tomcat 5.5, Axis2 (nighly), self compiled XmlSchema from current SVN
> Reporter: Kai Huener
> Attachments: agreement_state_types.xsd, agreement_types.xsd, AgreementPortType.wsdl
>
>
> Hello,
> when I try to generate Java code (WSDL2Java.bat of current nightly) of the attached WSDL, I get the following error message (something about "array out of bounce") Since there is no more information given by the message, I have no idea how to handle this. The attached schemas are referenced in the WSDL, but their compilation works fine with other WSDLs, so I think the problem is within the attached WSDL.
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:112)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: 0; nested exception is:
> java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:240)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:103)
> ... 2 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.AddQNameReference(WSDL11ToAxisServiceBuilder.java:745)
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:513)
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:234)
> ... 3 more
> Best regards,
> Kai
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1294) Error during code generation
Posted by "Kai Huener (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1294?page=all ]
Kai Huener updated AXIS2-1294:
------------------------------
Attachment: agreement_types.xsd
> Error during code generation
> ----------------------------
>
> Key: AXIS2-1294
> URL: http://issues.apache.org/jira/browse/AXIS2-1294
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: nightly
> Environment: Apache, Tomcat 5.5, Axis2 (nighly), self compiled XmlSchema from current SVN
> Reporter: Kai Huener
> Attachments: agreement_state_types.xsd, agreement_types.xsd, AgreementPortType.wsdl
>
>
> Hello,
> when I try to generate Java code (WSDL2Java.bat of current nightly) of the attached WSDL, I get the following error message (something about "array out of bounce") Since there is no more information given by the message, I have no idea how to handle this. The attached schemas are referenced in the WSDL, but their compilation works fine with other WSDLs, so I think the problem is within the attached WSDL.
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:112)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: 0; nested exception is:
> java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:240)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:103)
> ... 2 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.AddQNameReference(WSDL11ToAxisServiceBuilder.java:745)
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:513)
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:234)
> ... 3 more
> Best regards,
> Kai
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-1294) Error during code generation
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1294?page=all ]
Davanum Srinivas resolved AXIS2-1294.
-------------------------------------
Resolution: Fixed
WSDL is slightly off. Typo in the section below:
<wsdl:operation name="Terminate">
<wsdl:input name="TerminateRequest"
message="wsag:TerminateInputMessage" />
<wsdl:output name="TerminateResponse"
message="wsag:TerminateOuputMessage" />
<wsdl:fault name="ResourceUnknownFault"
message="wsrf-rp:ResourceUnknownFault" />
</wsdl:operation>
Please substitute wsrf-rp:ResourceUnknownFault with wsrf-rw:ResourceUnknownFault.
I've updated the code to throw a slightly better error message.
-- dims
> Error during code generation
> ----------------------------
>
> Key: AXIS2-1294
> URL: http://issues.apache.org/jira/browse/AXIS2-1294
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: nightly
> Environment: Apache, Tomcat 5.5, Axis2 (nighly), self compiled XmlSchema from current SVN
> Reporter: Kai Huener
> Attachments: agreement_state_types.xsd, agreement_types.xsd, AgreementPortType.wsdl
>
>
> Hello,
> when I try to generate Java code (WSDL2Java.bat of current nightly) of the attached WSDL, I get the following error message (something about "array out of bounce") Since there is no more information given by the message, I have no idea how to handle this. The attached schemas are referenced in the WSDL, but their compilation works fine with other WSDLs, so I think the problem is within the attached WSDL.
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:112)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: 0; nested exception is:
> java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:240)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:103)
> ... 2 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.AddQNameReference(WSDL11ToAxisServiceBuilder.java:745)
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:513)
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:234)
> ... 3 more
> Best regards,
> Kai
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1294) Error during code generation
Posted by "Kai Huener (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1294?page=all ]
Kai Huener updated AXIS2-1294:
------------------------------
Attachment: AgreementPortType.wsdl
The WSDL causing the error
> Error during code generation
> ----------------------------
>
> Key: AXIS2-1294
> URL: http://issues.apache.org/jira/browse/AXIS2-1294
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: nightly
> Environment: Apache, Tomcat 5.5, Axis2 (nighly), self compiled XmlSchema from current SVN
> Reporter: Kai Huener
> Attachments: agreement_state_types.xsd, agreement_types.xsd, AgreementPortType.wsdl
>
>
> Hello,
> when I try to generate Java code (WSDL2Java.bat of current nightly) of the attached WSDL, I get the following error message (something about "array out of bounce") Since there is no more information given by the message, I have no idea how to handle this. The attached schemas are referenced in the WSDL, but their compilation works fine with other WSDLs, so I think the problem is within the attached WSDL.
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:112)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: 0; nested exception is:
> java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(WSDL11ToAxisServiceBuilder.java:240)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:103)
> ... 2 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.AddQNameReference(WSDL11ToAxisServiceBuilder.java:745)
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:513)
> at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:234)
> ... 3 more
> Best regards,
> Kai
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org