[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2849) Failed to parse response code in netty based http client

Heiko Braun (JIRA) jira-events at lists.jboss.org
Tue Dec 1 08:41:29 EST 2009


    [ https://jira.jboss.org/jira/browse/JBWS-2849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12497437#action_12497437 ] 

Heiko Braun commented on JBWS-2849:
-----------------------------------

Within riftsaw,we experience this exception in some situations:

Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.Integer 
        at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:66) 
        at org.jboss.ws.core.client.transport.NettyClient.invokeInternal(NettyClient.java:189) 


Here's the corresponding JBossWS code:

 public Object read(InputStream inputStream, Map<String, Object> metadata) throws IOException
   {
      if (log.isTraceEnabled())
         log.trace("Read input stream with metadata=" + metadata);

      try
      {
         Integer resCode = (Integer)metadata.get(NettyClient.RESPONSE_CODE);
         if (resCode == null)
         {
            log.warn("No HTTP resonse code, assuming: SC_OK");
            resCode = HttpServletResponse.SC_OK;
         }
         
[...]
}


It's not clear to me how the ClassCastException might occur. But it seems to be a JBossWS problem.

> Failed to parse response code in netty based http client
> --------------------------------------------------------
>
>                 Key: JBWS-2849
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2849
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-native
>    Affects Versions:  jbossws-metro-3.2.1
>            Reporter: Heiko Braun
>             Fix For:  jbossws-native-3.2.2
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list