[Issue 566] New - UnsupportedMediaException on remote server failure

View: New views
5 Messages — Rating Filter:   Alert me  

[Issue 566] New - UnsupportedMediaException on remote server failure

by mguennew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=566
                 Issue #|566
                 Summary|UnsupportedMediaException on remote server failure
               Component|jax-ws
                 Version|2.1.4
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|runtime
             Assigned to|issues@jax-ws
             Reported by|mguennew






------- Additional comments from mguennew@... Tue May 20 19:46:34 +0000 2008 -------
If using JAX-WS for the client side and the webservice server returns a HTTP
status code of 500 for an internal server error the HttpTransportPipe class
tries to read the content.
As usually a webservice sends back a HTML error page this fails with an
UnsupportedMediaException as the content type is then text/html instead of
text/xml for SOAP.

Due to some strange reason HttpTransportPipe.checkStatusCode explicitely
excludes HTTP status code 500 instead of throwing a ClientTransportException
with ClientMessage.HTTP_STATUS_CODE and the status code and error message.

This issue is related to 491 as the UnsupportedMediaException hides the real
cause, but instead of the purposed extension of the exception, a better fitting
one should be thrown like a ClientTransportException with
ClientMessage.HTTP_STATUS_CODE stating the status code and error message.

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 566] UnsupportedMediaException on remote server failure

by mguennew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=566



User mguennew changed the following:

                What    |Old value                 |New value
================================================================================
     Attachment is patch|                          |Created an attachment (id=
                        |                          |197)
Changed HtmlTransport
                        |                          |Pipe.checkStatusCode to no
                        |                          |t ignore server errors.

--------------------------------------------------------------------------------




------- Additional comments from mguennew@... Wed May 21 06:32:13 +0000 2008 -------
Created an attachment (id=197)
Changed HtmlTransportPipe.checkStatusCode to not ignore server errors.


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 566] UnsupportedMediaException on remote server failure

by mguennew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=566



User mguennew changed the following:

                What    |Old value                 |New value
================================================================================
     Attachment is patch|                          |Created an attachment (id=
                        |                          |202)
Changed HtmlTransport
                        |                          |Pipe.process to check for
                        |                          |HTML error pages send back
                        |                          | by server.

--------------------------------------------------------------------------------




------- Additional comments from mguennew@... Mon May 26 07:02:10 +0000 2008 -------
Created an attachment (id=202)
Changed HtmlTransportPipe.process to check for HTML error pages send back by server.


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 566] UnsupportedMediaException on remote server failure

by mguennew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=566






------- Additional comments from mguennew@... Mon May 26 07:04:53 +0000 2008 -------
Supplying a new patch (jaxws-566-take2.patch) as the first one breaks handling
of exceptions defined in the WSDL.
The new one checks for 'text/html' content type and HTTP status code 500 before
it throws a ClientTransportException as described above.


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 566] UnsupportedMediaException on remote server failure

by jitu-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=566



User jitu changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|issues@jax-ws             |jitu
--------------------------------------------------------------------------------




------- Additional comments from jitu@... Thu Jul 10 05:59:08 +0000 2008 -------
Assigning it to myself

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...