glassfish
  1. glassfish
  2. GLASSFISH-5029

RFE: When web service tester catches an exception, output the casuing exception instead of the whole thing

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 9.1peur2
    • Fix Version/s: not determined
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      5,029

      Description

      My web service threw an application exception. The web service tester outputted
      a gigantic dump and I couldn't find useful error message until 20 lines or so
      into it, after "caused by:". You should just output the causing exception, so
      that the very first line I see is my application's exception and error message.

      javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at
      com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345)
      at
      com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121)
      at
      com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:140)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at
      com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:114) at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at
      com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87) at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at
      org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at
      com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      Caused by: java.lang.reflect.InvocationTargetException at
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597) at
      com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:316)
      ... 27 more Caused by:
      com.ijws.webin.services.oncommand.OnCommandServiceException_Exception: Unable to
      email folio to reservation '23800-01' at 'torph' because it is not already
      checked out. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
      Method) at
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at
      com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:127)
      at
      com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118) at
      $Proxy193.emailFolio(Unknown Source) ... 32 more Caused by:

          • THIS IS WHAT I WANTED TO SEE ****

      com.ijws.product.services.specific.SpecificServiceException: Unable to email
      receipt to reservation '23800-01' at 'torph' because it is not <edited out>.... at

      com.ijws.product.services.specific.SpecificService.emailReceipt(SpecificService.java:96)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597) at
      com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
      at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176) at
      com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
      at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986) at
      com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:189)
      at $Proxy186.emailFolio(Unknown Source) at
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597) at
      com.sun.enterprise.webservice.InvokerImpl.invoke(InvokerImpl.java:81) at
      com.sun.enterprise.webservice.EjbInvokerImpl.invoke(EjbInvokerImpl.java:82) at
      com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146) at
      com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
      at
      com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at
      com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at
      com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at
      com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at
      com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
      at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)
      at
      com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at
      com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at
      com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at
      com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at
      com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
      at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:317) at
      com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218)
      at
      com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129)
      at
      com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at
      com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at
      com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at
      com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at
      com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243) at
      com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
      at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244) at
      com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
      at
      com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:113)
      at
      com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:87)
      at
      com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:226)
      at
      com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:155)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at
      com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:114) at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at
      com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87) at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at
      org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      at
      com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
      ... 2 more

        Activity

        rdelaplante created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 5029 36633
        Tom Mueller made changes -
        Fix Version/s not determined [ 11149 ]
        Fix Version/s V3 [ 10981 ]

          People

          • Assignee:
            Bhakti Mehta
            Reporter:
            rdelaplante
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: