org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> <HTML> <HEAD> <TITLE>Error 401--Unauthorized</TITLE> </HEAD> <BODY bgcolor="white"> <FONT FACE=Helvetica><BR CLEAR=all> <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all> <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 401--Unauthorized</H2> </FONT></TD></TR> </TABLE> <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer Protocol -- HTTP/1.1</i>:</H3> </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.2 401 Unauthorized</H4> </FONT><P><FONT FACE="Courier New">The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11.</FONT></P> </FONT></TD></TR> </TABLE> </BODY> </HTML>

Oracle Community | manjeetsd | 2 years ago
  1. 0

    Endeca Studio connection to Provisioning broken - was previously functional - strange HTTP header issue

    Oracle Community | 2 years ago | manjeetsd
    org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> <HTML> <HEAD> <TITLE>Error 401--Unauthorized</TITLE> </HEAD> <BODY bgcolor="white"> <FONT FACE=Helvetica><BR CLEAR=all> <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all> <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 401--Unauthorized</H2> </FONT></TD></TR> </TABLE> <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer Protocol -- HTTP/1.1</i>:</H3> </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.2 401 Unauthorized</H4> </FONT><P><FONT FACE="Courier New">The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11.</FONT></P> </FONT></TD></TR> </TABLE> </BODY> </HTML>
  2. 0

    Unexpected wrapper element when using CXF generated client

    Stack Overflow | 4 years ago | David Nedrow
    org.apache.cxf.interceptor.Fault: Unexpected wrapper element getRecordsResponse found. Expected {http://www.service-now.com/foo}getRecordsResponse.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Groovy Tom's Blog: CXF and MS CRM 2011

    blogspot.com | 1 month ago
    org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: (none)
  5. 0

    CXF 2.1.6 in RAD 7.5 (WebSphere Test server 6.1) - 2 errors

    Google Groups | 7 years ago | OceanBreeze
    org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: CXF - Service list Available services: HelloWorld sayHi Endpoint address: http://localhost:9081/Ws3/HelloWorld Wsdl: {http://spring.demo/}HelloWorldImplService Target namespace: http://spring.demo/

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.cxf.interceptor.Fault

      Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> <HTML> <HEAD> <TITLE>Error 401--Unauthorized</TITLE> </HEAD> <BODY bgcolor="white"> <FONT FACE=Helvetica><BR CLEAR=all> <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all> <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 401--Unauthorized</H2> </FONT></TD></TR> </TABLE> <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer Protocol -- HTTP/1.1</i>:</H3> </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.2 401 Unauthorized</H4> </FONT><P><FONT FACE="Courier New">The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11.</FONT></P> </FONT></TD></TR> </TABLE> </BODY> </HTML>

      at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage()
    2. Apache CXF Core
      ClientImpl.onMessage
      1. org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:79)
      2. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
      3. org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:700)
      3 frames
    3. Apache CXF Runtime HTTP Transport
      HTTPConduit$WrappedOutputStream.close
      1. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2261)
      2. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)
      3. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)
      3 frames
    4. Apache CXF Core
      AbstractConduit.close
      1. org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
      1 frame
    5. Apache CXF Runtime HTTP Transport
      HTTPConduit.close
      1. org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)
      1 frame
    6. Apache CXF Core
      ClientImpl.invoke
      1. org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
      2. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
      3. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
      4. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
      5. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
      5 frames
    7. Apache CXF Runtime Simple Frontend
      ClientProxy.invokeSync
      1. org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
      1 frame
    8. Apache CXF Runtime JAX-WS Frontend
      JaxWsClientProxy.invoke
      1. org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
      1 frame
    9. com.sun.proxy
      $Proxy279.pingEndecaServer
      1. com.sun.proxy.$Proxy279.pingEndecaServer(Unknown Source)
      1 frame
    10. com.endeca.portal
      ProvisioningService.pingEndecaServer
      1. com.endeca.portal.metadata.psconfig.ProvisioningService.pingEndecaServer(ProvisioningService.java:250)
      2. com.endeca.portal.metadata.psconfig.ProvisioningService.pingEndecaServer(ProvisioningService.java:244)
      2 frames
    11. com.endeca.portlet
      ProvisionServerConfigPortlet.processSaveProvisionServerConfigResource
      1. com.endeca.portlet.provision.server.ProvisionServerConfigPortlet.processSaveProvisionServerConfigResource(ProvisionServerConfigPortlet.java:139)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1542.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    13. com.endeca.portlet
      EndecaPortlet.serveResource
      1. com.endeca.portlet.EndecaPortlet.serveResource(EndecaPortlet.java:754)
      1 frame
    14. com.sun.portal
      FilterChainImpl.doFilter
      1. com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:177)
      1 frame
    15. Liferay Portal Service
      PortletServlet.service
      1. com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:76)
      2. com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:100)
      2 frames
    16. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    17. Atmosphere weblogic
      RequestDispatcherImpl.forward
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      4. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
      5. weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
      6. weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
      6 frames
    18. Liferay Portal Service
      InvokerPortletImpl.serveResource
      1. com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:615)
      2. com.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:724)
      3. com.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:498)
      3 frames
    19. Liferay Portal Impl
      LayoutAction.execute
      1. com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:681)
      2. com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:467)
      3. com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
      3 frames
    20. struts
      RequestProcessor.process
      1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      2 frames
    21. Liferay Portal Impl
      PortalRequestProcessor.process
      1. com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
      1 frame
    22. struts
      ActionServlet.doPost
      1. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      2. org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      2 frames
    23. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    24. Liferay Portal Impl
      MainServlet.service
      1. com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:511)
      2. com.liferay.portal.servlet.MainServlet.service(MainServlet.java:749)
      2 frames
    25. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    26. Atmosphere weblogic
      RequestDispatcherImpl.forward
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      4. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
      5. weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
      6. weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
      6 frames
    27. Liferay Portal Impl
      FriendlyURLServlet.service
      1. com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:131)
      1 frame
    28. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    29. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      4. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      5. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      5 frames
    30. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      1 frame
    31. com.liferay.portal
      AuditingPageAccessFilter.processFilter
      1. com.liferay.portal.servlet.filters.auditing.AuditingPageAccessFilter.processFilter(AuditingPageAccessFilter.java:263)
      1 frame
    32. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
      1 frame
    33. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    34. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      1 frame
    35. Liferay Portal Impl
      StripFilter.processFilter
      1. com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:177)
      1 frame
    36. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
      1 frame
    37. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    38. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      2. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
      2 frames
    39. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    40. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      1 frame
    41. Liferay Portal Impl
      SecureFilter.processFilter
      1. com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:168)
      1 frame
    42. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
      1 frame
    43. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    44. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      2. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
      2 frames
    45. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    46. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      1 frame
    47. Liferay Portal Impl
      CacheFilter.processFilter
      1. com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:384)
      1 frame
    48. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
      1 frame
    49. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    50. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      1 frame
    51. Liferay Portal Impl
      AutoLoginFilter.processFilter
      1. com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:259)
      1 frame
    52. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
      1 frame
    53. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    54. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      2. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
      2 frames
    55. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    56. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      1 frame
    57. Liferay Portal Impl
      VirtualHostFilter.doFilter
      1. com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:261)
      1 frame
    58. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    59. Liferay Portal Service
      BaseFilter.processFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      1 frame
    60. com.liferay.portal
      ThreadLocalCacheFilter.processFilter
      1. com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:55)
      1 frame
    61. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
      1 frame
    62. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    63. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
      2. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
      2 frames
    64. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    65. UrlRewriteFilter
      UrlRewriteFilter.doFilter
      1. org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
      1 frame
    66. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      1 frame
    67. com.liferay.portal
      EndecaIFrameFilter.processFilter
      1. com.liferay.portal.servlet.filters.security.EndecaIFrameFilter.processFilter(EndecaIFrameFilter.java:40)
      1 frame
    68. Liferay Portal Service
      BaseFilter.doFilter
      1. com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
      1 frame
    69. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
      2. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3748)
      3. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3714)
      3 frames
    70. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    71. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      1 frame
    72. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)
      2. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)
      3. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
      3 frames
    73. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      2 frames