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>

Oracle Community | 3004 | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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>

    Root Cause Analysis

    1. 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>

      at com.netsboss.WSBE.QueryProcessor.query()
    2. com.netsboss.WSBE
      QueryProcessor.query
      1. com.netsboss.WSBE.QueryProcessor.query(QueryProcessor.java:42)
      1 frame