0 Replies Latest reply on Jul 16, 2015 9:25 AM by Eder F. Freitas

    Disabling Wildfly-8.0.2 StackTrace from the SOAP Fault?

    Eder F. Freitas Newbie

      @Hi all,

       

      I have a Web Service with JAX-WS implementation, and in some cases i throw specific exceptions, for this i use a class that extends Exception, when i throw de Exception a StackTrace is printed in console. How i can disable it?

       

      Sample my Web Service

       

      @WebMethod
      public boolean autenticarUsuario(@WebParam AutParams autParams) throws UsuarioNaoEncontradoException {
      ...
      }

       

       

      Log Wildfly

       

      2015-07-16 07:29:37,567 ERROR [org.jboss.as.webservices.invocation.InvocationHandlerJAXWS] (default task-31) JBAS015594: Method invocation failed with exception: null: br.company.sap.integracao.ordemproducao.ex.OrdemProducaoException

              at br.company.sap.integracao.ordemproducao.rfc.OrdemProducaoSAP.consultarOrdem(OrdemProducaoSAP.java:172) [classes:]

              at br.company.sap.integracao.ordemproducao.rfc.OrdemProducaoSAP.consultarOrdemProducaoPorCodigo(OrdemProducaoSAP.java:38) [classes:]

              at br.company.sap.integracao.ordemproducao.ws.OrdemProducaoWS.consultarOrdemProducaoPorCodigo(OrdemProducaoWS.java:46) [classes:]

              at sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source) [:1.7.0_71]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_71]

       

       

       

      Thanks.

       

      Regards,

      Eder. Freitas