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 "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2006/10/03 08:20:19 UTC

[jira] Created: (AXIS2-1287) RawXMLINOnlyMessageReceiver throws a NPE if method is not found

RawXMLINOnlyMessageReceiver throws a NPE if method is not found
---------------------------------------------------------------

                 Key: AXIS2-1287
                 URL: http://issues.apache.org/jira/browse/AXIS2-1287
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: core
            Reporter: Asankha C. Perera
            Priority: Minor


The RawXMLINOnlyMessageReceiver throws a NPE SOAP fault back to the client if the method referenced is not found on the ServiceClass implementation. A meaningful SOAP fault should be returned.

<service >
  <parameter name="ServiceClass" locked="false">test.mr.MRTest1</parameter>
  <operation name="invalidMethodName">
      <messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
      <actionMapping>urn:invalidMethodName</actionMapping>
  </operation>
</service>

public class MRTest1 {
    public void invalidMethodNameX(OMElement element){
    	.....
    }
}

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


Re: [jira] Created: (AXIS2-1287) RawXMLINOnlyMessageReceiver throws a NPE if method is not found

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Ooops I meant to reply to issue 1286 .. 

Sanjiva.

On Tue, 2006-10-03 at 13:33 +0530, Sanjiva Weerawarana wrote:
> Is your solution the right one? If the biz logic returns null then its
> saying it has no XML to return. IMO that should result in the following
> message:
> 
> <s:Envelope>
> <s:Body/>
> </s:Envelope>
> 
> Boring, but valid SOAP message. Its not a fault to have no output. If
> this was a POX request this'll map to HTTP 200 OK with a content length
> of zero .. which is correct I'd argue.
> 
> Sanjiva.
> 
> On Mon, 2006-10-02 at 23:20 -0700, Asankha C. Perera (JIRA) wrote:
> > RawXMLINOnlyMessageReceiver throws a NPE if method is not found
> > ---------------------------------------------------------------
> > 
> >                  Key: AXIS2-1287
> >                  URL: http://issues.apache.org/jira/browse/AXIS2-1287
> >              Project: Apache Axis 2.0 (Axis2)
> >           Issue Type: Bug
> >           Components: core
> >             Reporter: Asankha C. Perera
> >             Priority: Minor
> > 
> > 
> > The RawXMLINOnlyMessageReceiver throws a NPE SOAP fault back to the client if the method referenced is not found on the ServiceClass implementation. A meaningful SOAP fault should be returned.
> > 
> > <service >
> >   <parameter name="ServiceClass" locked="false">test.mr.MRTest1</parameter>
> >   <operation name="invalidMethodName">
> >       <messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
> >       <actionMapping>urn:invalidMethodName</actionMapping>
> >   </operation>
> > </service>
> > 
> > public class MRTest1 {
> >     public void invalidMethodNameX(OMElement element){
> >     	.....
> >     }
> > }
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 


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


Re: [jira] Created: (AXIS2-1287) RawXMLINOnlyMessageReceiver throws a NPE if method is not found

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Is your solution the right one? If the biz logic returns null then its
saying it has no XML to return. IMO that should result in the following
message:

<s:Envelope>
<s:Body/>
</s:Envelope>

Boring, but valid SOAP message. Its not a fault to have no output. If
this was a POX request this'll map to HTTP 200 OK with a content length
of zero .. which is correct I'd argue.

Sanjiva.

On Mon, 2006-10-02 at 23:20 -0700, Asankha C. Perera (JIRA) wrote:
> RawXMLINOnlyMessageReceiver throws a NPE if method is not found
> ---------------------------------------------------------------
> 
>                  Key: AXIS2-1287
>                  URL: http://issues.apache.org/jira/browse/AXIS2-1287
>              Project: Apache Axis 2.0 (Axis2)
>           Issue Type: Bug
>           Components: core
>             Reporter: Asankha C. Perera
>             Priority: Minor
> 
> 
> The RawXMLINOnlyMessageReceiver throws a NPE SOAP fault back to the client if the method referenced is not found on the ServiceClass implementation. A meaningful SOAP fault should be returned.
> 
> <service >
>   <parameter name="ServiceClass" locked="false">test.mr.MRTest1</parameter>
>   <operation name="invalidMethodName">
>       <messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>       <actionMapping>urn:invalidMethodName</actionMapping>
>   </operation>
> </service>
> 
> public class MRTest1 {
>     public void invalidMethodNameX(OMElement element){
>     	.....
>     }
> }
> 


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


[jira] Assigned: (AXIS2-1287) RawXMLINOnlyMessageReceiver throws a NPE if method is not found

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1287?page=all ]

Asankha C. Perera reassigned AXIS2-1287:
----------------------------------------

    Assignee: Asankha C. Perera

> RawXMLINOnlyMessageReceiver throws a NPE if method is not found
> ---------------------------------------------------------------
>
>                 Key: AXIS2-1287
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1287
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>            Reporter: Asankha C. Perera
>         Assigned To: Asankha C. Perera
>            Priority: Minor
>
> The RawXMLINOnlyMessageReceiver throws a NPE SOAP fault back to the client if the method referenced is not found on the ServiceClass implementation. A meaningful SOAP fault should be returned.
> <service >
>   <parameter name="ServiceClass" locked="false">test.mr.MRTest1</parameter>
>   <operation name="invalidMethodName">
>       <messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>       <actionMapping>urn:invalidMethodName</actionMapping>
>   </operation>
> </service>
> public class MRTest1 {
>     public void invalidMethodNameX(OMElement element){
>     	.....
>     }
> }

-- 
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-1287) RawXMLINOnlyMessageReceiver throws a NPE if method is not found

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1287?page=all ]

Asankha C. Perera resolved AXIS2-1287.
--------------------------------------

    Resolution: Fixed

> RawXMLINOnlyMessageReceiver throws a NPE if method is not found
> ---------------------------------------------------------------
>
>                 Key: AXIS2-1287
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1287
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>            Reporter: Asankha C. Perera
>         Assigned To: Asankha C. Perera
>            Priority: Minor
>
> The RawXMLINOnlyMessageReceiver throws a NPE SOAP fault back to the client if the method referenced is not found on the ServiceClass implementation. A meaningful SOAP fault should be returned.
> <service >
>   <parameter name="ServiceClass" locked="false">test.mr.MRTest1</parameter>
>   <operation name="invalidMethodName">
>       <messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>       <actionMapping>urn:invalidMethodName</actionMapping>
>   </operation>
> </service>
> public class MRTest1 {
>     public void invalidMethodNameX(OMElement element){
>     	.....
>     }
> }

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