cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "viola.lu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-4611) Set jaxws.provider.interpretNullAsOneway as true by default
Date Thu, 08 Nov 2012 02:36:11 GMT

     [ https://issues.apache.org/jira/browse/CXF-4611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

viola.lu updated CXF-4611:
--------------------------

    Description: 
Discussion about this jira in cxf user list: 
http://cxf.547215.n5.nabble.com/Re-Get-a-null-pointer-if-provider-returns-null-response-in-payload-message-mode-td5717406.html#a5717410
Now jaxws.provider.interpretNullAsOneway is set as false, this will result in null pointer
exception if provider return null response. 
According to JAXWS spec :

5.1.1 Invocation
A Provider based service instance’s invoke method is called for each message received for
the service.
When an invoke method returns null, it is considered that no response needs to be sent by
service.

No response should be sent. 

So by default set it as true

  was:
Now jaxws.provider.interpretNullAsOneway is set as false, this will result in null pointer
exception if provider return null response. 
According to JAXWS spec :

5.1.1 Invocation
A Provider based service instance’s invoke method is called for each message received for
the service.
When an invoke method returns null, it is considered that no response needs to be sent by
service.

No response should be sent. 

So by default set it as true

    
> Set jaxws.provider.interpretNullAsOneway as true by default
> -----------------------------------------------------------
>
>                 Key: CXF-4611
>                 URL: https://issues.apache.org/jira/browse/CXF-4611
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.6.2, 2.7.0
>            Reporter: viola.lu
>            Priority: Minor
>             Fix For: 2.7.1
>
>         Attachments: CXF4611.patch
>
>
> Discussion about this jira in cxf user list: 
> http://cxf.547215.n5.nabble.com/Re-Get-a-null-pointer-if-provider-returns-null-response-in-payload-message-mode-td5717406.html#a5717410
> Now jaxws.provider.interpretNullAsOneway is set as false, this will result in null pointer
exception if provider return null response. 
> According to JAXWS spec :
> 5.1.1 Invocation
> A Provider based service instance’s invoke method is called for each message received
for the service.
> When an invoke method returns null, it is considered that no response needs to be sent
by service.
> No response should be sent. 
> So by default set it as true

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

Mime
View raw message