Forum Stats

  • 3,751,478 Users
  • 2,250,366 Discussions
  • 7,867,435 Comments

Discussions

Webservice method is getting called multiple times.

user1163882
user1163882 Member Posts: 67 Blue Ribbon
edited Mar 12, 2020 9:41PM in JDeveloper and ADF

Hello ,

Jdev - 11.1.1.9.0

deployment env-  JCS-SX

We have developed an Integration application that is exposed as a web service on JCS-SX.

we have created one more application where we have used .wsdl of Integration application and created a Webservice proxy to call the Integration methods.

This application is also deployed on the same jcs-sx instance.

Note: Integration has multiple jobs to perform which takes around 4-5 minutes to complete the flow. this is a synchronous call.

Issue: whenever the Integration method is called from the consuming application it is observed that the below method is getting called multiple times in an interval of about 3 minutes.

    @WebMethod

     public String expToPayroll(@WebParam(name = "arg0") String fileName , @WebParam(name = "arg1") int count){

       LOGGER.severe("inside expToPayroll");

        try{

        String reportProcessed="";

        //Application code to call the integration

          }

     }

so after every 3 minutes,   LOGGER.severe("inside expToPayroll") gets printed and application calls other flow, without manually calling the web service.

can anyone suggest what could be the issue for multiple calls in a specific time interval?

Thanks

Tagged:
«1

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,480 Red Diamond
    edited Mar 1, 2020 12:24PM

    Someone calls the web service if you see the log message. How do you call the web service in your app?

    In a getter?

    You can print a stack trace each time you get to the method.

    Timo


  • user1163882
    user1163882 Member Posts: 67 Blue Ribbon
    edited Mar 1, 2020 12:55PM

    Hi Timo,

    there is separate application with UI to call the webservice . i amusing webservice proxy client to call the service, below are the logs from calling application which is called only once;

    Mar 1, 2020, 03:24:30 AM Error Inside e2pActionListener

    Mar 1, 2020, 03:24:30 AM Error processid232891

    Mar 1, 2020, 03:24:30 AM Error Inside callE2PService--https://...oraclecloudapps.com/..-Model-context-root/ExpensesToPayrollPort?wsdl--processIdFinExmExportERToAPJobDef_232891

    Below are the logs from the Integration APP:

    Mar 1, 2020, 03:24:30 AM Error inside expToPayroll0

    Mar 1, 2020, 03:24:30 AM Error inside expToPayroll232891

    Mar 1, 2020, 03:24:30 AM Error processID232891

    Mar 1, 2020, 03:24:34 AM Error pidStatusYes

    Mar 1, 2020, 03:24:34 AM Error reportProcessedYes

    Mar 1, 2020, 03:24:38 AM Error reportTypeINTERNAL

    -------------------------------------------------- after 2 minutes----

    Mar 1, 2020, 03:26:32 AM Error inside expToPayroll0

    Mar 1, 2020, 03:26:32 AM Error inside expToPayroll232891

    Mar 1, 2020, 03:26:32 AM Error processID232891

    Thanks,

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,480 Red Diamond
    edited Mar 1, 2020 3:11PM

    Sorry, but that is not a stack trace when the web service is called. That 's just a log which will not give you the information who called the web service.

    I'm not even sure you get any useful info from the stack trace, but it'S what I would do first.

    Timo


  • user1163882
    user1163882 Member Posts: 67 Blue Ribbon
    edited Mar 1, 2020 6:17PM

    Hi Timo,

    do I need to call Thread.currentThread().getStackTrace(); before and after calling the service?

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,480 Red Diamond
    edited Mar 2, 2020 3:10AM

    Think about this a moment. You want to know who calls the web service, right?

    A stack trace give you the call stack or the path from the caller to the method. So, the answer is: in the web service right where you print out the message.

    Timo


    user1163882
  • user1163882
    user1163882 Member Posts: 67 Blue Ribbon
    edited Mar 2, 2020 7:44AM

    Hi Timo,

    PFB Stack trace :

    Mar 2, 2020, 06:04:30 PM Error inside expToPayroll0

    Mar 2, 2020, 06:04:30 PM Error stacktrace--java.lang.Thread.getStackTrace(Thread.java:1589)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.abc.expTopay.service.ExpensesToPayroll.expToPayroll(ExpensesToPayroll.java:46)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--java.lang.reflect.Method.invoke(Method.java:606)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:92)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:74)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:151)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.invoke(EndpointMethodHandlerImpl.java:268)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:100)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:403)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:539)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:177)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:311)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:99)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:166)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.security.internal.WebGateRedirectFilter.doFilter(WebGateRedirectFilter.java:176)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:138)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--java.security.AccessController.doPrivileged(Native Method)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:464)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:121)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:211)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:296)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3807)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3773)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2336)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2235)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1545)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.work.ExecuteThread.execute(ExecuteThread.java:378)

    Mar 2, 2020, 06:04:30 PM Error stacktrace--weblogic.work.ExecuteThread.run(ExecuteThread.java:307)

    -----------------------------------------------------------------------------------------------------------------------------------------------

    Mar 2, 2020, 06:06:31 PM Error inside expToPayroll0

    Mar 2, 2020, 06:06:31 PM Error stacktrace--java.lang.Thread.getStackTrace(Thread.java:1589)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.abc.expTopay.service.ExpensesToPayroll.expToPayroll(ExpensesToPayroll.java:46)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--java.lang.reflect.Method.invoke(Method.java:606)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:92)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:74)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:151)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.invoke(EndpointMethodHandlerImpl.java:268)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:100)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:403)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:539)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:177)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:311)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:99)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:166)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.security.internal.WebGateRedirectFilter.doFilter(WebGateRedirectFilter.java:176)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:138)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--java.security.AccessController.doPrivileged(Native Method)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:464)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:121)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:211)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:296)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3807)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3773)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2336)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2235)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1545)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.work.ExecuteThread.execute(ExecuteThread.java:378)

    Mar 2, 2020, 06:06:31 PM Error stacktrace--weblogic.work.ExecuteThread.run(ExecuteThread.java:307)

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,480 Red Diamond
    edited Mar 2, 2020 8:34AM

    OK, if you inspect the stack traces you'll see that each call is coming via the same path. From what I see it's a call from the outside to the web service method.

    So you need to start to dig into the client app that calls the web service.

    The line

    Mar 1, 2020, 03:24:30 AM Error Inside e2pActionListener

    from your other message suggests that an actionlistener is used to call the web service. What is this action listener exactly doing?

    Is the call to the web service directly from this actionlistener?

    Timo


  • user1163882
    user1163882 Member Posts: 67 Blue Ribbon
    edited Mar 2, 2020 9:09AM

    Hi Timo,

    I tried to call the webservice through soap UI as well still it repeats below are the logs:

    Mar 2, 2020, 07:25:02 PM Error inside expToPayroll0

    ---------------------------------------------------------------------

    Mar 2, 2020, 07:26:43 PM Error inside expToPayroll1

    one more thing I would like to highlight is as we are calling HCM data loader for elemententry and costallocation we are using Thread.sleep() , until elemententry is processed or failed.

    Jspx code for actionlistener:

      <af:commandButton actionListener="#{E2PSchedularBean.e2pActionListener}"                         

                                text="Call Expense To Payroll Service"

                                inlineStyle="font-weight:bold; font-size:large; color:Black;"

                                disabled="true"                          

                                id="cb1"

                                binding="#{E2PSchedularBean.cmdE2P}">

                              <af:clientListener method="showText" type="action"/>                       

       </af:commandButton>

    actionListener code:

    ExpenseToPayrollClientFacade e2p= new ExpenseToPayrollClientFacade();

      if(processid.getInputValue()!=null){

            e2pResult= e2p.callE2PService(processid.getInputValue().toString());

        }

    ExpenseToPayrollClientFacade code:

            expensesToPayrollService = new ExpensesToPayrollService();

            ExpensesToPayroll expensesToPayroll = expensesToPayrollService.getExpensesToPayrollPort();

           

            BindingProvider wsbp = (BindingProvider)expensesToPayroll;

            Map<String, Object> requestContext = wsbp.getRequestContext();

           

            requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceEndPoint);

            requestContext.put(BindingProviderProperties.REQUEST_TIMEOUT,300000);

            requestContext.put(BindingProviderProperties.CONNECT_TIMEOUT,300000);    

            e2PResult=  expensesToPayroll.expToPayroll(processId,count);

  • user1163882
    user1163882 Member Posts: 67 Blue Ribbon
    edited Mar 4, 2020 1:38PM

    Hi Timo,

    Any hints from the code?

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,480 Red Diamond
    edited Mar 5, 2020 2:16AM

    Sorry, I have no idea what's causing this issue. However, the thread.sleep() might be the problem. Do you see this behavior with other web service calls that don't use thread.sleep() too?

    Can you try to run without the sleep()?

    Timo