Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2878

When I use @Addressing JAX-WS annotation and a reply URI for a JSP page the service responds with the reply to the JSP page but then it tries to also respond to the JAX-WS client and it throws an exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • jbossws-native-3.2.2
    • ws-addressing
    • None

      When I use @Addressing JAX-WS annotation and a reply URI for a JSP page the service responds with the reply to the JSP page but then it tries to also respond to the JAX-WS client and it throws an exception. If I try the same thing using the Metro JAX-WS framework, the service sends the response to the REPLY URI and stops. The difference here is that when Metro is used, the service only sends the response to the REPLY URI and just sends an HTTP 202 response to the client without the payload. When JBOSS JAX-WS framework is used the service sends the response to the REPLY URI and it also attempts to send an HTTP 200 response with the full payload back to the client and throws the exception. I think this is wrong. I am using JBOSS 5.1.0 GA version.

      Here is the stdout output showing the JSP page received the response but the service also tried to send the same response to the JAX-WS client and threw this exception.

      16:08:05,406 INFO [STDOUT]
      ************Echo JSP Page******************
      16:08:05,453 INFO [STDOUT] <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'><wsa:To>http:
      //localhost:8080/DocumakerService/echo.jsp</wsa:To><wsa:Action></wsa:Action><wsa:RelatesTo>uuid:16f0bffe-da89-4699-825d-e0ce5778316a</wsa:RelatesTo></env:Header><env:Body
      ><DoCallIDSResponse xmlns="http://oracle.com/webservices/documaker" schemaVersion="1.0"><DSIMSG><MSGVARS><VAR NAME="ERRORCOUNT">0</VAR><VAR NAME="IDSGUID">67ace337bd1d022
      b2ebf24853d941422</VAR><VAR NAME="IDSHOSTNAME">jrobertsnb1</VAR><VAR NAME="LASTRESTART">Dec 18, 2009 2:45:34 PM EST</VAR><VAR NAME="reqtype">SSS</VAR><VAR NAME="RESTARTCO
      UNT">0</VAR><VAR NAME="RESULTS">SUCCESS</VAR><VAR NAME="SERVERTIMESPENT">0.000</VAR><VAR NAME="SUCCESSCOUNT">31</VAR><VAR NAME="UPTIME">Dec 18, 2009 2:45:34 PM EST</VAR><
      VAR NAME="WARNINGCOUNT">0</VAR><ROWSET NAME="LIBRARIES"><ROW NUM="1"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">dsicrule</VAR><VAR NAME="TIME">21:38:49</VAR><VAR
      NAME="VERSION">200.022.001<
      16:08:05,484 INFO [STDOUT] /VAR></ROW><ROW NUM="2"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">DSIOS2</VAR><VAR NAME="TIME">21:39:40</VAR><VAR NAME="VERSION">200.
      022.002</VAR></ROW><ROW NUM="3"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">dsijava</VAR><VAR NAME="TIME">21:39:48</VAR><VAR NAME="VERSION">200.022.001</VAR></ROW>
      <ROW NUM="4"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">jexec</VAR><VAR NAME="TIME">21:38:47</VAR><VAR NAME="VERSION">200.022.001</VAR></ROW><ROW NUM="5"><VAR NAM
      E="DATE">Nov 19 2009</VAR><VAR NAME="NAME">ARC</VAR><VAR NAME="TIME">19:54:44</VAR><VAR NAME="VERSION">400.115.020</VAR></ROW><ROW NUM="6"><VAR NAME="DATE">Nov 19 2009</V
      AR><VAR NAME="NAME">CAR</VAR><VAR NAME="TIME">19:45:16</VAR><VAR NAME="VERSION">400.115.010</VAR></ROW><ROW NUM="7"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">CRM
      </VAR><VAR NAME="TIME">19:54:48</VAR><VAR NAME="VERSION">400.115.010</VAR></ROW><ROW NUM="8"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">DAL</VAR><VAR NAME="TIME">
      19:55:31</VAR><VAR NAME="VE
      16:08:05,484 INFO [STDOUT] RSION">400.115.010</VAR></ROW><ROW NUM="9"><VAR NAME="DATE">Nov 20 2009</VAR><VAR NAME="NAME">DB</VAR><VAR NAME="TIME">08:38:51</VAR><VAR NAME
      ="VERSION">400.115.015</VAR></ROW><ROW NUM="10"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">DPR</VAR><VAR NAME="TIME">20:12:22</VAR><VAR NAME="VERSION">400.115.001
      </VAR></ROW><ROW NUM="11"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">DS</VAR><VAR NAME="TIME">19:43:04</VAR><VAR NAME="VERSION">400.115.013</VAR></ROW><ROW NUM="1
      2"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">DTBL</VAR><VAR NAME="TIME">19:45:30</VAR><VAR NAME="VERSION">400.115.011</VAR></ROW><ROW NUM="13"><VAR NAME="DATE">N
      ov 19 2009</VAR><VAR NAME="NAME">DXM</VAR><VAR NAME="TIME">19:41:13</VAR><VAR NAME="VERSION">400.115.004</VAR></ROW><ROW NUM="14"><VAR NAME="DATE">Nov 19 2009</VAR><VAR N
      AME="NAME">FAP</VAR><VAR NAME="TIME">19:42:19</VAR><VAR NAME="VERSION">400.115.003</VAR></ROW><ROW NUM="15"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">GRF</VAR><V
      AR NAME="TIME">19:45:21</VA
      16:08:05,484 INFO [STDOUT] R><VAR NAME="VERSION">400.115.010</VAR></ROW><ROW NUM="16"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">GUI</VAR><VAR NAME="TIME">19:45:
      05</VAR><VAR NAME="VERSION">400.115.010</VAR></ROW><ROW NUM="17"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">INI</VAR><VAR NAME="TIME">19:40:25</VAR><VAR NAME="VER
      SION">400.115.020</VAR></ROW><ROW NUM="18"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">LBY</VAR><VAR NAME="TIME">19:55:54</VAR><VAR NAME="VERSION">400.115.011</VAR
      ></ROW><ROW NUM="19"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">LGN</VAR><VAR NAME="TIME">19:56:11</VAR><VAR NAME="VERSION">400.115.010</VAR></ROW><ROW NUM="20"><
      VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">LOG</VAR><VAR NAME="TIME">19:48:31</VAR><VAR NAME="VERSION">400.115.010</VAR></ROW><ROW NUM="21"><VAR NAME="DATE">Nov 19
      2009</VAR><VAR NAME="NAME">PRT</VAR><VAR NAME="TIME">19:43:19</VAR><VAR NAME="VERSION">400.115.011</VAR></ROW><ROW NUM="22"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="
      NAME">USR</VAR><VAR NAME="T
      16:08:05,484 INFO [STDOUT] IME">19:55:00</VAR><VAR NAME="VERSION">400.115.010</VAR></ROW><ROW NUM="23"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">UTL</VAR><VAR N
      AME="TIME">19:40:55</VAR><VAR NAME="VERSION">400.115.010</VAR></ROW><ROW NUM="24"><VAR NAME="DATE">Nov 19 2009</VAR><VAR NAME="NAME">VMM</VAR><VAR NAME="TIME">19:39:14</V
      AR><VAR NAME="VERSION">400.115.003</VAR></ROW></ROWSET></MSGVARS></DSIMSG><Results><Result>0</Result></Results></DoCallIDSResponse></env:Body></env:Envelope>
      16:08:05,484 INFO [STDOUT]
      *********************************************
      16:08:05,531 ERROR [SOAPMessageUnMarshallerHTTP] Cannot unmarshall SOAPMessage
      javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=ISO-8859-1
      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:272)
      at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:82)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:570)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:369)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:231)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:161)
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
      at org.jboss.remoting.Client.invoke(Client.java:1724)
      at org.jboss.remoting.Client.invoke(Client.java:629)
      at org.jboss.remoting.Client.invokeOneway(Client.java:678)
      at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:239)
      at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)
      at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:143)
      at org.jboss.ws.core.soap.SOAPConnectionImpl.callOneWay(SOAPConnectionImpl.java:87)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.sendResponse(RequestHandlerImpl.java:372)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:332)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
      at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)
      16:08:05,578 ERROR [RequestHandlerImpl] Error processing web service request
      org.jboss.ws.WSException: javax.xml.soap.SOAPException: java.io.IOException: Could not transmit message
      at org.jboss.ws.WSException.rethrow(WSException.java:68)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:336)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
      at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.xml.soap.SOAPException: java.io.IOException: Could not transmit message
      at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:152)
      at org.jboss.ws.core.soap.SOAPConnectionImpl.callOneWay(SOAPConnectionImpl.java:87)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.sendResponse(RequestHandlerImpl.java:372)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:332)
      ... 24 more
      Caused by: java.io.IOException: Could not transmit message
      at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:265)
      at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)
      at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:143)
      ... 27 more
      Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker after 1 attempt(s)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:249)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:161)
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
      at org.jboss.remoting.Client.invoke(Client.java:1724)
      at org.jboss.remoting.Client.invoke(Client.java:629)
      at org.jboss.remoting.Client.invokeOneway(Client.java:678)
      at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:239)
      ... 29 more
      Caused by: java.io.IOException: javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=ISO-8859-1
      at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:90)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:570)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:369)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:231)
      ... 35 more
      Caused by: javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=ISO-8859-1
      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:272)
      at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:82)
      ... 38 more
      16:08:05,578 ERROR [[DocumakerServiceSoap11]] Servlet.service() for servlet DocumakerServiceSoap11 threw exception
      javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=ISO-8859-1
      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:272)
      at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:82)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:570)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:369)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:231)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:161)
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
      at org.jboss.remoting.Client.invoke(Client.java:1724)
      at org.jboss.remoting.Client.invoke(Client.java:629)
      at org.jboss.remoting.Client.invokeOneway(Client.java:678)
      at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:239)
      at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)
      at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:143)
      at org.jboss.ws.core.soap.SOAPConnectionImpl.callOneWay(SOAPConnectionImpl.java:87)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.sendResponse(RequestHandlerImpl.java:372)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:332)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
      at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)

              ropalka Richard Opalka
              joe_roberts_z_jira Carl Roberts (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: