cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amol Deshpande (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-4440) Webservice Unavailable - Internal Server Error (Response code 500) not handled in HTTPConduit.java (One way webservice)
Date Mon, 23 Jul 2012 14:31:33 GMT

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

Amol Deshpande updated CXF-4440:
--------------------------------

    Description: 
Hi,

I am working on a CXF client for a one way JAX-RPC webservice.
I am testing a scenario where, the webservice is unavailable (The application for the webservice
on the server is stopped)

In this case, the server sends back a response Internal server error (Response code 500)

This response code is not handled by the httpConduit.handleResponseInternal() function because
it does not throw an error for response code 500.

              if (responseCode == HttpURLConnection.HTTP_NOT_FOUND                     &&
!MessageUtils.isTrue(outMessage.getContextualProperty(
                        "org.apache.cxf.http.no_io_exceptions"))) {
                    throw new IOException("HTTP response '" + responseCode + ": " + connection.getResponseMessage()
+ "'");
               }

Can you please let me know if this is a known issue or if there is a workaround to handle
this?

  was:
Hi,

I am working on a CXF client for a one way JAX-RPC webservice.
I am testing a scenario where, the webservice is unavailable (The application for the webservice
on the server is stopped)

In this case, the server sends back a response Internal server error (Response code 500)

This response code is not handled by the httpConduit.handleResponseInternal() function because
it does not throw an error for response code 500.

 2184               if (responseCode == HttpURLConnection.HTTP_NOT_FOUND
 2185                   && !MessageUtils.isTrue(outMessage.getContextualProperty(
 2186                       "org.apache.cxf.http.no_io_exceptions"))) {
 2187                   throw new IOException("HTTP response '" + responseCode + ": " 
 2188                       + connection.getResponseMessage() + "'");
 2189               }

Can you please let me know if this is a known issue or if there is a workaround to handle
this?

    
> Webservice Unavailable - Internal Server Error (Response code 500) not handled in HTTPConduit.java
(One way webservice)
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-4440
>                 URL: https://issues.apache.org/jira/browse/CXF-4440
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Amol Deshpande
>
> Hi,
> I am working on a CXF client for a one way JAX-RPC webservice.
> I am testing a scenario where, the webservice is unavailable (The application for the
webservice on the server is stopped)
> In this case, the server sends back a response Internal server error (Response code 500)
> This response code is not handled by the httpConduit.handleResponseInternal() function
because it does not throw an error for response code 500.
>               if (responseCode == HttpURLConnection.HTTP_NOT_FOUND                  
  && !MessageUtils.isTrue(outMessage.getContextualProperty(
>                         "org.apache.cxf.http.no_io_exceptions"))) {
>                     throw new IOException("HTTP response '" + responseCode + ": " + connection.getResponseMessage()
+ "'");
>                }
> Can you please let me know if this is a known issue or if there is a workaround to handle
this?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message