javax.xml.rpc.soap.SOAPFaultException: opps my fault

Oracle Community | 3004 | 1 decade ago
  1. 0

    catch self-define exception in client(ignore previous wrong format new)

    Oracle Community | 1 decade ago | 3004
    javax.xml.rpc.soap.SOAPFaultException: oops my fault all: BUILD SUCCESSFUL Total time: 1 minute 17 seconds Stephen Zeng wrote: Hi Bruce: <p> Thank you for your attention. I have built the fault.zip example use wls7.0, the error is the sample as my last post pointed out. The sample code is the way I am trying to make. <p> The client.java in the example has compile error showing MyException is unreachable. The point is MyservicePort.java only throw RemoteException. I think serviceGen did not generate MyException in *Port.java. <p> (SOAPFaultException)e.getCause()).getDetail() show that RemoteException wrap MyException. Even I let MyException extend RemoteException to let it reachable in Client.java. Client.java can not catch MyException, since it is wrap in RemoteException. <p> You change make 3 changes in Fault.izp to see my point. <br> 1.Client.java bug <br> should change "MySerice l=" to MyService_Impl l = new MyService_Impl <br> 2. MyException extend RemoteException <br> 3. (SOAPFaultException)e.getCause()).getDetail() <p> Catch and log for your reference:<br> } catch (FormatException e){ //extend RemoteException<br> System.out.println("catch custom exception");<br> e.printStackTrace();<br> } catch (RemoteException e) {<br> System.out.println("remote exception");<br> System.out.println(e.getCause().getMessage());<br> System.out.println(((SOAPFaultException)e.getCause()).getDetail());<p> log: <br> remote exception <br> wrong formate <br> <detail><bea_fault:stacktrace xmlns:bea_fault=" http://www.bea.com/servers/wls70/webservice/fault/1.0.0 ">com.netsboss.WSBE.inf.FormatException: wrong formate <br>
  2. 0

    catch self-define exception in client(ignore previous wrong format new)

    Oracle Community | 1 decade ago | 3004
    javax.xml.rpc.soap.SOAPFaultException: oops my fault all: BUILD SUCCESSFUL Total time: 1 minute 17 seconds Stephen Zeng wrote: Hi Bruce: <p> Thank you for your attention. I have built the fault.zip example use wls7.0, the error is the sample as my last post pointed out. The sample code is the way I am trying to make. <p> The client.java in the example has compile error showing MyException is unreachable. The point is MyservicePort.java only throw RemoteException. I think serviceGen did not generate MyException in *Port.java. <p> (SOAPFaultException)e.getCause()).getDetail() show that RemoteException wrap MyException. Even I let MyException extend RemoteException to let it reachable in Client.java. Client.java can not catch MyException, since it is wrap in RemoteException. <p> You change make 3 changes in Fault.izp to see my point. <br> 1.Client.java bug <br> should change "MySerice l=" to MyService_Impl l = new MyService_Impl <br> 2. MyException extend RemoteException <br> 3. (SOAPFaultException)e.getCause()).getDetail() <p> Catch and log for your reference:<br> } catch (FormatException e){ //extend RemoteException<br> System.out.println("catch custom exception");<br> e.printStackTrace();<br> } catch (RemoteException e) {<br> System.out.println("remote exception");<br> System.out.println(e.getCause().getMessage());<br> System.out.println(((SOAPFaultException)e.getCause()).getDetail());<p> log: <br> remote exception <br> wrong formate <br> <detail><bea_fault:stacktrace xmlns:bea_fault=" http://www.bea.com/servers/wls70/webservice/fault/1.0.0 ">com.netsboss.WSBE.inf.FormatException: wrong formate <br>
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    webservice client and weblogic.jar

    Oracle Community | 1 decade ago | 3004
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.ClassCastException (see Fault Detail for s tacktrace)
  5. 0

    Getting a ClassCastException in webservice client for Array of Complex Type

    Oracle Community | 1 decade ago | 666705
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.ClassCastException (see Fault Detail for stacktrace)

    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.rpc.soap.SOAPFaultException

      opps my fault

      at weblogic.webservice.component.slsb.SLSBInvocationHandler.invoke()
    2. weblogic.webservice.component
      SLSBInvocationHandler.invoke
      1. weblogic.webservice.component.slsb.SLSBInvocationHandler.invoke(SLSBInvocationHandler.java:93)
      1 frame
    3. weblogic.webservice.core
      DefaultPort.invoke
      1. weblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.java:78)
      2. weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java:131)
      3. weblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:514)
      4. weblogic.webservice.core.DefaultPort.invoke(DefaultPort.java:297)
      4 frames
    4. weblogic.webservice.server
      WebServiceServlet.doPost
      1. weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(ServletBase..java:323)
      2. weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebServiceServlet.java:256)
      3. weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:310)
      4. weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServlet.java:231)
      4 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2 frames
    6. Atmosphere weblogic
      ServletStubImpl$ServletInvocationAction.run
      1. weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
      1 frame