title: Invalid Token Error in Verification Service in Oracle custom worklist portlet
body: <p>I am working with Oracle WebCenter Portal, with SOA/BPEL. I have created a custom worklist application ( portlet ) following guidelines from here :</p>
  
  <p><a href="http://docs.oracle.com/cd/E28280_01/dev.1111/e10224/bp_worklistcust.htm#SOASE839" rel="nofollow">Oracle Documentation</a></p>
  
  <p>It shows up as portlet, so deployment is fine. When I access this portlet page, it gives me following error. </p>
  
  <blockquote>
    <p>ORABPEL-30503 : Invalid Token Error in Verification Service. Invalid
    Token Error in Verification Service. Received invalid token in
    getTokenType. Verify that correct token is passed</p>
  </blockquote>
  
  <p>Here's my code snippet, and the complete stack trace below.</p>
  
  <pre><code>Map&lt;IWorkflowServiceClientConstants.CONNECTION_PROPERTY, String&gt; properties = new HashMap&lt;IWorkflowServiceClientConstants.CONNECTION_PROPERTY, String&gt;();
  properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE, WorkflowServiceClientFactory.SOAP_CLIENT);
  properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.SOAP_END_POINT_ROOT, "http://&lt;hostname&gt;:&lt;port&gt;");
  IWorkflowServiceClient  wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.SOAP_CLIENT,properties, null);
  ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
  IWorkflowContext wfCtx = querySvc.authenticate(userName,password.toCharArray(),null);
  </code></pre>
  
  <p>I think the code is correct, as it gives "Error in authenticating user" if i use incorrect credentials. But when I use correct credentials, it gives this :</p>
  
  <pre><code>SEVERE: &lt;.&gt; getTokenType: invalid token: a0a4daf4-33ad-4bdf-91d0-c7e22e70efc9;;W3JtvUSwovCa7zQLbYhVjAB8yAfYcPrl6iECyPso9bjnlUp6qzy50EApOPEQmV/3nKWySh+41yNhD4Rl8Ati72glbm1DL6wm/6Kc0nwkXCZaBFE13wFClSdg4m1a4CBqeAEC6TWNdV45mB9popu3phvDTl8LKbfq3mBv/MHTAWSmY/XnqSF+nVtH/Hq3wTOLMQ73aonamjhuKGDzVfFk6pogBKXBOqPZnbhTjfLeu/oGeBjLkwWdIC0F0wrohjgL SEVERE: &lt;.&gt; Invalid Token Error in Verification Service. Invalid Token Error in Verification Service. Received invalid token in getTokenType. Verify that correct token is passed.
  
  ORABPEL-30503
  
  Invalid Token Error in Verification Service. Invalid Token Error in Verification Service. Received invalid token in getTokenType. Verify that correct token is passed.
  
      at oracle.bpel.services.workflow.verification.impl.Token.getTokenType(Token.java:545)   at oracle.bpel.services.workflow.verification.impl.Token.&lt;init&gt;(Token.java:188)     at oracle.bpel.services.workflow.verification.impl.WorkflowContext.getWorkflowContextFromJAXBObject(WorkflowContext.java:795)   at oracle.bpel.services.workflow.verification.impl.WorkflowContext.getWorkflowContextFromElement(WorkflowContext.java:746)  at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.authenticate(AbstractDOMTaskQueryServiceClient.java:186)    at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.authenticate(AbstractDOMTaskQueryServiceClient.java:205)    at com.kpit.cams.UAPWorklistMain.main(UAPWorklistMain.java:329)
  </code></pre>