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 "Andrey Chernyshev (JIRA)" <ji...@apache.org> on 2011/03/22 00:51:05 UTC

[jira] [Created] (AXIS2-4983) parts not found for WSRF's ResourceUnknownFault

parts not found for WSRF's ResourceUnknownFault  
-------------------------------------------------

                 Key: AXIS2-4983
                 URL: https://issues.apache.org/jira/browse/AXIS2-4983
             Project: Axis2
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.5.4
         Environment: Linux
            Reporter: Andrey Chernyshev


WSDL2Java does not seem to be correctly handling wsrf-r:ResourceUnknownFaultType. 
It's not picking up the part from this definition:
(from http://docs.oasis-open.org/wsrf/rw-2.wsdl):
<!-- ================= WS-Resource faults ========================= -->
  <wsdl:message name="ResourceUnknownFault">
     <part name="ResourceUnknownFault"
           element="wsrf-r:ResourceUnknownFault" />
  </wsdl:message> 

I was trying to run it against attached wsdl and got the following:

wsdl2java.sh  -uri test.wsdl
...
[ERROR] There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
[ERROR] There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1231)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:777)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:537)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:488)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
	at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:396)
	at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
	... 2 more
Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1231)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:777)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:537)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:488)
	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
	... 4 more

Is this a known limitation or bug in parsing code?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-4983) parts not found for WSRF's ResourceUnknownFault

Posted by "Andrey Chernyshev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Chernyshev updated AXIS2-4983:
-------------------------------------

    Attachment: test.wsdl

Run wsdl2java with this wsdl

> parts not found for WSRF's ResourceUnknownFault  
> -------------------------------------------------
>
>                 Key: AXIS2-4983
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4983
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.5.4
>         Environment: Linux
>            Reporter: Andrey Chernyshev
>         Attachments: test.wsdl
>
>
> WSDL2Java does not seem to be correctly handling wsrf-r:ResourceUnknownFaultType. 
> It's not picking up the part from this definition:
> (from http://docs.oasis-open.org/wsrf/rw-2.wsdl):
> <!-- ================= WS-Resource faults ========================= -->
>   <wsdl:message name="ResourceUnknownFault">
>      <part name="ResourceUnknownFault"
>            element="wsrf-r:ResourceUnknownFault" />
>   </wsdl:message> 
> I was trying to run it against attached wsdl and got the following:
> wsdl2java.sh  -uri test.wsdl
> ...
> [ERROR] There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> [ERROR] There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1231)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:777)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:537)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:488)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
> 	at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> 	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:396)
> 	at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
> 	... 2 more
> Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1231)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:777)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:537)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:488)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
> 	... 4 more
> Is this a known limitation or bug in parsing code?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-4983) parts not found for WSRF's ResourceUnknownFault

Posted by "David R Robison (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478942#comment-13478942 ] 

David R Robison commented on AXIS2-4983:
----------------------------------------

I'm having the same problem with the same WSDL. Has this problem been solved? Any suggestions on work arounds? TNX David
                
> parts not found for WSRF's ResourceUnknownFault  
> -------------------------------------------------
>
>                 Key: AXIS2-4983
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4983
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.5.4
>         Environment: Linux
>            Reporter: Andrey Chernyshev
>         Attachments: test.wsdl
>
>
> WSDL2Java does not seem to be correctly handling wsrf-r:ResourceUnknownFaultType. 
> It's not picking up the part from this definition:
> (from http://docs.oasis-open.org/wsrf/rw-2.wsdl):
> <!-- ================= WS-Resource faults ========================= -->
>   <wsdl:message name="ResourceUnknownFault">
>      <part name="ResourceUnknownFault"
>            element="wsrf-r:ResourceUnknownFault" />
>   </wsdl:message> 
> I was trying to run it against attached wsdl and got the following:
> wsdl2java.sh  -uri test.wsdl
> ...
> [ERROR] There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> [ERROR] There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1231)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:777)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:537)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:488)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
> 	at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> 	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:396)
> 	at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
> 	... 2 more
> Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: There are no parts for fault message : {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1231)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:777)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:537)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:488)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
> 	... 4 more
> Is this a known limitation or bug in parsing code?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org