0 Replies Latest reply: Aug 4, 2009 1:53 PM by 715187 RSS

    WorkflowServiceClientException for getTaskQueryService- worklist 11g

    715187
      Hi,

      Am trying to authenticate with the WorkflowService, but getting the following error. My application is deployed on Jdeveloper internal server and the worklist application is running on localhost server. Am accessing through the SOAP client. This works fine when running the code from a simpe java file (the workflow java sample runs fine).

      Code Snippet -
      IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(protocol, properties, null);

      System.out.println("authenticate - wfSvcClient: "+wfSvcClient);

      ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
      System.out.println("authenticate - querySvc: "+querySvc);

      System.out.println("authenticate - Before authenticate: ");
      IWorkflowContext ctx = querySvc.authenticate(user, password.toCharArray(), "jazn.com");
      System.out.println("authenticate - After authenticate: ");

      Error Trace -
      authenticate - protocol: SOAP
      authenticate - user: jcooper
      authenticate - password: welcome1
      authenticate - wfSvcClient: oracle.bpel.services.workflow.client.SOAPWorkflowServiceClient@1be0bdf
      oracle.bpel.services.workflow.client.WorkflowServiceClientException
           at oracle.bpel.services.workflow.client.WorkflowServiceClientContext.getSOAPIdentityPropagationMode(WorkflowServiceClientContext.java:365)
           at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.<init>(TaskQueryServiceSOAPClient.java:101)
           at oracle.bpel.services.workflow.client.SOAPWorkflowServiceClient.getTaskQueryService(SOAPWorkflowServiceClient.java:113)
           at ae.dtps.eservices.worklist.bo.WorklistBO.authenticate(WorklistBO.java:48)
           at ae.dtps.eservices.worklist.bo.WorklistBO.login(WorklistBO.java:27)
           at ae.dtps.eservices.worklist.bd.WorklistBD.login(WorklistBD.java:18)
           at ae.dtps.eservices.worklist.action.LoginAction.execute(LoginAction.java:49)
           at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
           at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
           at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
           at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

      wf_client_config.xml -
      <soapClient>
      <rootEndPointURL>http://localhost:7001</rootEndPointURL>
      </soapClient>

      Any ideas what could be going wrong?