[
http://jira.jboss.com/jira/browse/JBREM-543?page=comments#action_12339644 ]
Tom Elrod commented on JBREM-543:
----------------------------------
The response object type in this case is indeed java.lang.String. I have update the test
case to print it out (See ServletInvokerTestClient or SSLServletInvokerTestClient). The
output I get from JBossAS is:
<html><head><title>Apache Tomcat/5.5.17 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color
: black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 - Error occurred processing invocation
request. </h1><HR size="1"
noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u>Error occurred processing
invocation request. </u></p><p><b>description</b>
<u>The server encountered an internal error (Error occurred processing invocation
request. ) that prevented it from fulfilling this request.</u></p><HR
size="1" noshade="noshade"><h3>Apache
Tomcat/5.5.17</h3></body></html>
I agree that would be best for the http/servlet client invoker to thrown an exception as
is done with other transports, but was changed a while back to this format per request
from the web services team. I am re-opening this discussion with them
(
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958247#...).
fix servlet invoker error handling to be more like that of the http
invoker
---------------------------------------------------------------------------
Key: JBREM-543
URL:
http://jira.jboss.com/jira/browse/JBREM-543
Project: JBoss Remoting
Issue Type: Task
Security Level: Public(Everyone can see)
Affects Versions: 2.0.0.Beta2 (Boon)
Reporter: Tom Elrod
Assigned To: Tom Elrod
Fix For: 2.0.0.CR1 (Boon)
Need to change the servlet invoker so on client side will not throw an exception out of
the Client's invoke() method call, but just return the error (as text in most cases)
and have the response code indicate the error status code (e.g. 500). Although this is
not exactly how the http invoker handles exceptions from the http server invoker, is only
way to reliably get errors from web containers (like Tomcat).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira