java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.

JBoss Issue Tracker | Jaroslav Jankovič | 4 years ago
  1. 0

    STEP: create dynamic web project and register web.xml (to be able to create simple soap web service) STEP: create simple web service (File -> New -> Other -> JBoss Tools -> Simple Web Service with default settings STEP: run a server, deploy a project STEP: open Web Service Tester, enter url of web service and try to invoke its default method (sayHello) STEP: open the generated web service class (HelloWorld.java) STEP: add a new web method like this: {code} @WebMethod() public String echo() { return "Hello World"; } {code} redeploy the project STEP: open web service tester again, url should be still set on text box, so click on the "Get from WSDL" STEP: in opened dialog, choose the new method "echo", and press OK ASSERT: generated request message has valid format {code} <?xml version="1.0" encoding="UTF-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header/> <soap:Body> <ns2:echo xmlns:ns2="http://webservices.samples.jboss.org/"/> </soap:Body> </soap:Envelope> {code} ASSERT: invoking the generated message tends to valid response FAIL: generated request message has invalid format {code} <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > <soap:Header> </soap:Header> <soap:Body> </soap:Body> </soap:Envelope> {code} FAIL: invoking the message throws a SOAPFaultException: {code} java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing. at org.jboss.tools.ws.ui.utils.JAXWSTester2.doTest(JAXWSTester2.java:205) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2.handleWSTest(JAXRSWSTestView2.java:1823) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2.access$34(JAXRSWSTestView2.java:1809) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2$21.run(JAXRSWSTestView2.java:1726) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing. at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178) at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111) at com.sun.xml.internal.ws.client.dispatch.DispatchImpl$DispatchAsyncInvoker$1.onCompletion(DispatchImpl.java:450) at com.sun.xml.internal.ws.client.Stub$1.onCompletion(Stub.java:381) at com.sun.xml.internal.ws.api.pipe.Fiber.completionCheck(Fiber.java:502) at com.sun.xml.internal.ws.api.pipe.Fiber.run(Fiber.java:420) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {code} This issue occurs only the first time. After the first try, other tries are successful in words of SOAP message generation.

    JBoss Issue Tracker | 4 years ago | Jaroslav Jankovič
    java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
  2. 0

    STEP: create dynamic web project and register web.xml (to be able to create simple soap web service) STEP: create simple web service (File -> New -> Other -> JBoss Tools -> Simple Web Service with default settings STEP: run a server, deploy a project STEP: open Web Service Tester, enter url of web service and try to invoke its default method (sayHello) STEP: open the generated web service class (HelloWorld.java) STEP: add a new web method like this: {code} @WebMethod() public String echo() { return "Hello World"; } {code} redeploy the project STEP: open web service tester again, url should be still set on text box, so click on the "Get from WSDL" STEP: in opened dialog, choose the new method "echo", and press OK ASSERT: generated request message has valid format {code} <?xml version="1.0" encoding="UTF-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header/> <soap:Body> <ns2:echo xmlns:ns2="http://webservices.samples.jboss.org/"/> </soap:Body> </soap:Envelope> {code} ASSERT: invoking the generated message tends to valid response FAIL: generated request message has invalid format {code} <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > <soap:Header> </soap:Header> <soap:Body> </soap:Body> </soap:Envelope> {code} FAIL: invoking the message throws a SOAPFaultException: {code} java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing. at org.jboss.tools.ws.ui.utils.JAXWSTester2.doTest(JAXWSTester2.java:205) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2.handleWSTest(JAXRSWSTestView2.java:1823) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2.access$34(JAXRSWSTestView2.java:1809) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2$21.run(JAXRSWSTestView2.java:1726) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing. at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178) at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111) at com.sun.xml.internal.ws.client.dispatch.DispatchImpl$DispatchAsyncInvoker$1.onCompletion(DispatchImpl.java:450) at com.sun.xml.internal.ws.client.Stub$1.onCompletion(Stub.java:381) at com.sun.xml.internal.ws.api.pipe.Fiber.completionCheck(Fiber.java:502) at com.sun.xml.internal.ws.api.pipe.Fiber.run(Fiber.java:420) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {code} This issue occurs only the first time. After the first try, other tries are successful in words of SOAP message generation.

    JBoss Issue Tracker | 4 years ago | Jaroslav Jankovič
    java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
  3. 0

    In my opinion, if I want to test some web service with Web Service tester and provide some wsdl file with improper URL location, message in Response Body should be adequate. There is no need to throw error in error log.

    JBoss Issue Tracker | 5 years ago | Jaroslav Jankovič
    java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: The AXIS engine could not find a target service to invoke! targetService is HelloWorld
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am unable to invoke SOAP web service in WS Tester from http://www.webservicex.net/BibleWebservice.asmx?WSDL. In Response Body of WS Tester I got the message: {code} javax.xml.ws.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: . at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) {code} In error log I got the error: {code} java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: . at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) at org.jboss.tools.ws.ui.utils.JAXWSTester2.doTest(JAXWSTester2.java:205) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2.handleWSTest(JAXRSWSTestView2.java:1803) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2.access$34(JAXRSWSTestView2.java:1789) at org.jboss.tools.ws.ui.views.JAXRSWSTestView2$21.run(JAXRSWSTestView2.java:1706) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: javax.xml.ws.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: . at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178) at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111) at com.sun.xml.internal.ws.client.dispatch.DispatchImpl$DispatchAsyncInvoker$1.onCompletion(DispatchImpl.java:450) at com.sun.xml.internal.ws.client.Stub$1.onCompletion(Stub.java:381) at com.sun.xml.internal.ws.api.pipe.Fiber.completionCheck(Fiber.java:502) at com.sun.xml.internal.ws.api.pipe.Fiber.run(Fiber.java:420) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {code}

    JBoss Issue Tracker | 4 years ago | Jaroslav Jankovič
    java.lang.Exception: javax.xml.ws.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: . at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
  6. 0

    javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: unexpected element

    apache.org | 11 months ago
    javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: unexpected element (uri:"", local:"predefinedSearchCriteria"). Expected elements are <{http://server.ws.workflow.mm.nextgate.com/}predefinedSearchCriteria> at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:447)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at com.nextgate.dqm.presentation.amfendpoint.DqmAMFEndpoint.serviceMessage(DqmAMFEndpoint.java:92)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at com.nextgate.dqm.presentation.amfendpoint.DqmMessageBrokerFilter.invoke(DqmMessageBrokerFilter.java:169)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:101)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)[267:com.nextgate.mm.PersonDQM:1.0.0.SNAPSHOT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)[64:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0] at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[64:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:185)[78:org.ops4j.pax.web.pax-web-runtime:3.1.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)[79:org.ops4j.pax.web.pax-web-jetty:3.1.0] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)[79:org.ops4j.pax.web.pax-web-jetty:3.1.0] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:77)[79:org.ops4j.pax.web.pax-web-jetty:3.1.0] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.Server.handle(Server.java:370)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[69:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]

    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. javax.xml.ws.soap.SOAPFaultException

      Fault occurred while processing.

      at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException()
    2. Java RT
      Thread.run
      1. com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
      2. com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
      3. com.sun.xml.internal.ws.client.dispatch.DispatchImpl$DispatchAsyncInvoker$1.onCompletion(DispatchImpl.java:450)
      4. com.sun.xml.internal.ws.client.Stub$1.onCompletion(Stub.java:381)
      5. com.sun.xml.internal.ws.api.pipe.Fiber.completionCheck(Fiber.java:502)
      6. com.sun.xml.internal.ws.api.pipe.Fiber.run(Fiber.java:420)
      7. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      9. java.lang.Thread.run(Thread.java:722)
      9 frames