Re: Retrieve user role using Java

Dear all,
I have defined a role, says "Operator" in the Sun one Server. I tried to write a Java program to retrieve the role for my web application, but not successful. It only displayed the attribtues shown in Custom Editor such as givenName, cn and etc. But the attribute "nsrole" was shown in Generic Editor which I cannot retrieve in the Java Program.
How can I retrieve it using Java Program with using standard Java API only?
Regards,
Calvin

That attribute is an operational attribute. You must specify it in the list of attributes to retrieve in your search command.

Similar Messages

  • How can we get requester's user id using java code

    Hi,
    How can we get requester's user id using java code?
    eg: If i had logged in as xelsysadm and request a resource for user uid101 on the userid field it should display uid101 and not xelsysadm.
    also,
    I have a resoure "A" which on revoking should also revoke resources B and C. How can it be done. Resource A, B, and C are 3 different resource objects.
    ==Thanks,
    doki

    Ok, so there is a way, but it's not available during submission. You can use the findRequests api. From the result set, get the "Requests.Consolidated Data Value" value. In this information, you will get an xml formatted data. It provides the list of users on the request on the left side after submission. After the request is completed, this value is available. Upon completion, you could get the request information, get this value, and parse the information for user ids.
    In the same adapter, use the following API:
    formIntf.setObjectFormData(objInstanceKey, formHash)
    The formHash is a hashtable containing the field name on your object form, and the values you wish to populate it with. You could create a textarea box on your object form and populate the userids for who the request is for.
    However, this makes absolutely 0 sense. When you get a request, the list of userids are listed right there on the request.
    -Kevin

  • GetSelectedFields()  for time stamp and user stamp using java api

    using Java API's
    getSelectedFields() returns NULL  value if values presented also, for Time stamp and User stamp
    properties in Flat tables , is there any other alternative way to get the SelectedFields values ?
    Edited by: Vijaya Sekhar Reddy Alla on Mar 19, 2008 3:16 PM

    Well, I can't say I solved the problem, because I got another one afterwards.
    As usually I created a GetFieldListCommand, set its needed attributes and executed it. Then I read all the field properties out:
    FieldProperties[] fieldProp = getFieldListCommand.getFields();
    Afterwards it is possible to do what you want. Using a for-loop.
    for (FieldProperties fp : fieldProperties) {
        UserStampFieldProperties usfp = (UserStampFieldProperties) fp; // <= Cast error
        FieldId[] fieldIDs = usfp.getSelectedFields();
    And this is what I get now:
    Exception in thread "main" java.lang.ClassCastException: com.sap.mdm.schema.fields.FixedWidthTextFieldProperties cannot be cast to com.sap.mdm.schema.fields.UserStampFieldProperties
    Why this happens, I don't know. But it should somehow be solveable.

  • Retrieving User name using SAP id

    Hi Experts,
        I want to retrieve my name using my SAP user id. Can anyone say in which table I can find.
    I searched usr01,02,...06 table where I didn't get my user name. But in all session, in title bar I am getting my name. From where it may be taken.
    Thanks and regards,
    Venkat

    Use USR21 and ADR6 tables.
    you can check the same here.
    [Retrieving User name and id|Table for Username & Email address]

  • Adding a listener to Active directory for user creation using Java

    Hi,
    I would like to add a listener to active directory such that when a user is created to the "Users" container, I should be notified or informed. I would like to do this with Java. What should I do ?
    Regards,
    Anand Kumar D

    You should add a NamingListener or a NamespaceChangedListener.

  • Can MDM users & roles be managed by IDM

    Hello,
    Can IDM be used to connect to & manage MDM users & roles using provisioning mechanism or otherwise?
    Regards,
    Vishal

    Hello,
    we have implemented an adapter to connect the MDM to the IdM. The adapter handles roles and users of an MDM repository and allows the roles to be provisioned to MDM users and vice versa.
    I developed the adapter originally for MDM 5.5 SP5/SP6 and IdM 7.0 last year. As there are not that much differences between IdM 7.0 and 7.1 and the Java API of MDM 5.5 and 7.1 an update to MDM 7.1 and IdM 7.1 is a smaller to mid-sized task for me.
    If you want more information feel free to contact me. Just have a look in my user profile.
    Sorry for the late answer, but I had some holiday since June started.
    Best regards
    Dominik Trui
    Solution Consultant
    IBSolution GmbH

  • How to create/get user & role in Weblogic 9.2 programmatically?

    Hi,
    I am new to Weblogic 9.
    I need to create a web service to manage user/role in WebLogic 9.
    Searching thru the web and found some classes like:
    AtnSecurityMgmtHelper, AtnProviderDescription etc
    Are those the correct classes to create/retrieve user & role?
    If so, what jar file contains those classes and where is the jar
    file?
    Thanks in advance,
    Terry

    You can do it with WLST help
    http://e-docs.bea.com/wls/docs92/config_scripting/config_WLS.html#wp1019913
    or via JMX through http://e-docs.bea.com/wls/docs92/javadocs/weblogic/management/security/authentication/UserEditorMBean.html and such

  • Returning User Password in Java code for custom reports

    Hi I'm doing a custom report and for the life of me I can't seem to find the password field in the database. :(
    Anyways I'm thinking maybe I can use java code to return the password and then using the decrypt password function. Could someone please shed some light on this!!!
    Note: I need to return the User password using java code and not XPRESS code. It would be best if someone either shows me how you can get the password using a java method or tell me where the User password is stored as I'm going crazy trying to find it in the DB!!!
    Thanks in advance!!!

    well... not sure what your Java code does. But if you can get the WSUser object for each user, you could call getPassword on the object to get the user's password

  • How check the user roles in Business Partner edition screen?

    Hello Masters,
    I'm having a little problem figuring out how to check the user roles to allow modification in some fields.
    At the 'Manage Organizational Data' screen ('Manage Business Partners' -> Business Partner Data -> edit). I need to check the user roles to let him change the 'Tax Numbers' values. The values can be changed only if the user is a administrator; otherwise it must only show the value.
    I checked the HTML Template and found where I can restrict this edition option, but the problem is that I don't know how to check the user roles here. Maybe there is a function to do this?
    Any ideas of how I can do it? Is there any magical BAdI to check this?
    Thanks in advance,
    José Omar

    Hi José Omar,
    there is no BADI for this...
    You have to change the standard code to display only tax data if the SY-UNAME does not have correct role.
    You can retrieve user roles with BAPI_USER_GET_DETAIL, or access directly the activity groups table.
    Rgds
    Christophe

  • User Roles and Authorizations

    As we know in MM different user have different roles to play and they need different SAP transaction and related activies.
    In SAP we define the particular user who are actually allow to access only certain transactions only?
    What are the steps to do this in SAP?
    Secondly in which stage of implementation we define those user roles and assign duties to them in SAP ?
    bEST Regards,
    Kapil

    u can create the user role using tcode su01 and pfcg for authorization management

  • Retrieving suitcase jar back from BPEL PM using 'java client api' ?

    Hi All,
    I have ANT based TeamFoundationServer auto builds working for BPEL workflow. I also have custom ANT tasks that call oracle bpel java API to be able to clearWSDL cache in various non-production environments.
    I would now like to attempt retrieving suitcase jar that was deployed previously. Before describing any further, I guess, my first question would be whether this is a possible thing to do.
    While browsing the JAVA API , I came across a method in class --> IBPELDomainHandle ( getSuitcase ) that seem to be returning back byte[] if the suitcaseId was provided to it.
    If below approach is in right direction, what else could I be missing ? Once , below class begins to retrieve the suitcase jar, the goal is to package it in an already existing jar and make it part of regular auto builds ( using ANT 1.6.5's custom task) hosted on windows 2003 server.
    The line in bold below, when uncommented, gives error that is posted after the java code.
    ********START : LocallyConnect2BPELPM.java ************************************************
    package com.collaxa.cube.ant.taskdefs.deploy;
    import com.oracle.bpel.client.BPELProcessMetaData;
    import com.oracle.bpel.client.IBPELDomainHandle;
    import com.oracle.bpel.client.IBPELProcessHandle;
    import com.oracle.bpel.client.Locator;
    import java.util.Properties;
    import java.io.*;
    import org.apache.tools.ant.BuildException;
    public class LocallyConnect2BPELPM {
    public LocallyConnect2BPELPM() {
    public static void main(String[] args) {
    LocallyConnect2BPELPM locallyConnect2BPELPM = new LocallyConnect2BPELPM();
    args[0]="SOME_BPEL_DOMAIN";
    String BPELdomain;
    BPELdomain = args[0];
    try {
    Properties props = new Properties();
    String hostName = "hostAtMyWork";
    String port = "10000";
    String user = "SomeServiceAccount";
    String pwd = "SomePassword";
    String domain = BPELdomain ; //getProject().getProperty("domain");
    System.err.println("host name - " + hostName + " port - " + port + " passwd - " + pwd);
    props.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
    props.put("java.naming.provider.url", "t3://" + hostName + ":" +port);
    props.put("java.naming.security.principal", user);
    props.put("java.naming.security.credentials", pwd);
    System.out.println("test connection to host = " + hostName + " port " + port);
    Locator locator = new Locator(domain,"bpel",props);
    IBPELDomainHandle d = locator.lookupDomain();
    //get Handle to list of processes deployed in the domain
    IBPELProcessHandle[] processes = locator.listProcesses();
    for(int j = 0 ; j < processes.length ; j++) {
    IBPELProcessHandle process = processes[j];
    String processName = process.getProcessId().getProcessId() ;
    if ( process.isDefaultRevision())
    System.out.println(" processName = " + processName + "_" + process.getProcessId().getRevisionTag() + " in domain " + domain);
    /* I am intending to use class BPELProcessMetaData's java.lang.String getSuitcaseId() method to retrieve suitcaseId
    http://www.oracle.com/technology/products/ias/bpel/htdocs/apidocs/101340MLR4/com/oracle/bpel/client/BPELProcessMetaData.html
    attempting to use Interface IBPELDomainHandle's method --> byte[] getSuitcase(java.lang.String suitcaseId)
    since it needs suitcaseId, I am trying to get it from class BPELProcessMetaData's method --> java.lang.String getSuitcaseId() to retrieve suitcaseId .
    however, i always get suitcaseId as null for all processes resulting in error posted.
    // to get suitcaseId, BPELProcessMetaData has getSuitcaseId. pass this to d.getSuitcase
    String strFilePath = "D://bpel_"+processName +"_" + process.getProcessId().getRevisionTag() + ".jar";
    FileOutputStream fos = new FileOutputStream(strFilePath);
              // upon uncommenting the line below , I get error that is posted after the java code.
    // byte[] jarfile = d.getSuitcase(process.getMetaData().getSuitcaseId() );
    BPELProcessMetaData bpelMeta = process.getMetaData();
    String suitcaseId = bpelMeta.getSuitcaseId() ;
    System.out.println( processName + " suitcaseId = " + suitcaseId );
    // fos.write(d.getSuitcase(process.getMetaData().getSuitcaseId() ));
    System.out.println(strFilePath);
    fos.close();
    // uncomment below
    // d.getSuitcase(process.getMetaData().getSuitcaseId());
    }catch(Exception ex) {
    ex.printStackTrace();
    throw new BuildException(ex);
    String BPELdomain;
    public void setBPELdomain(String BPELdom) {
    BPELdomain = BPELdom;
    *************END : LocallyConnect2BPELPM.java **********************************************
    java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.ejb.container.internal.BaseEJBContext.setRollbackOnly(BaseEJBContext.java:361)
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:180)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.getSuitcase(BPELDomainManagerBean.java:1544)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl.getSuitcase(DomainManagerBean_tho2et_EOImpl.java:615)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Exception in thread "main" java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at com.collaxa.cube.ant.taskdefs.deploy.LocallyConnect2BPELPM.main(LocallyConnect2BPELPM.java:76)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:215)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_923_WLStub.getSuitcase(Unknown Source)
         at com.oracle.bpel.client.BPELDomainHandle.getSuitcase(BPELDomainHandle.java:234)
         at com.collaxa.cube.ant.taskdefs.deploy.LocallyConnect2BPELPM.main(LocallyConnect2BPELPM.java:60)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:184)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.getSuitcase(BPELDomainManagerBean.java:1544)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl.getSuitcase(DomainManagerBean_tho2et_EOImpl.java:615)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.ejb.container.internal.BaseEJBContext.setRollbackOnly(BaseEJBContext.java:361)
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:180)
         ... 13 more
    --- Nested Exception ---
    java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:215)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_923_WLStub.getSuitcase(Unknown Source)
         at com.oracle.bpel.client.BPELDomainHandle.getSuitcase(BPELDomainHandle.java:234)
         at com.collaxa.cube.ant.taskdefs.deploy.LocallyConnect2BPELPM.main(LocallyConnect2BPELPM.java:60)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:184)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.getSuitcase(BPELDomainManagerBean.java:1544)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl.getSuitcase(DomainManagerBean_tho2et_EOImpl.java:615)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.ejb.container.internal.BaseEJBContext.setRollbackOnly(BaseEJBContext.java:361)
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:180)
         ... 13 more
    Process exited with exit code 1.
    Thanks in advance for your time !!
    Sameer
    Server side:
    Oracle BPEL v10.1.3.4.0
    MLR 8 patched.
    Windows 2003
    underlying server : weblogic 9.2
    client side: (while running the above java code)
    windows vista
    ANT: version 1.6.5
    Java: Jrockit 1.5.2

    Hi
    I have been trying what you want to achieve. I was getting some other error.
    Then I tried to print the suitcase Id as returned by process.getMetaData().getSuitcaseId() and this is returning null.
    Is that the case with you too?

  • User Role problems in Sun Java Application Server Platform Edition 8

    I am having two problems setting up user roles in Sun Java Application Server Platform Edition 8. At first, I thought that it was a problem with the higher level features that I was using, so I created a very simple example using the simplest authentication I can use, but the problem still occurs. I am using the file realm and configuring the users in the App Server Admin Console. I create 2 users in different roles. One user should have access, the other should not.
    1) The first problem is that both users can access the page
    2) The second problem is that the isUserInRole() method returns false for both users with the role that it should be authenticating against.
    Here is a sample of my code:
    Users Configured in Console:
    username password roles
    user1 ********** admin
    user2 ********** noaccess
    web.xml
         <security-role>
              <role-name>admin</role-name>
         </security-role>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>My Protected Area</web-resource-name>
                   <url-pattern>/*</url-pattern>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>admin</role-name>
              </auth-constraint>
              <user-data-constraint>
                   <transport-guarantee>NONE</transport-guarantee>
              </user-data-constraint>
         </security-constraint>
         <login-config>
              <auth-method>BASIC</auth-method>
              <realm-name>file</realm-name>
         </login-config>
         <servlet>
              <servlet-name>
                   TestServlet
              </servlet-name>
              <servlet-class>
                   mypackage.TestServlet
              </servlet-class>
              <security-role-ref>
                   <role-name>admin</role-name>
                   <role-link>admin</role-link>
              </security-role-ref>
         </servlet>
         <servlet-mapping>
              <servlet-name>
                   TestServlet
              </servlet-name>
              <url-pattern>
                   /TestServlet
              </url-pattern>
         </servlet-mapping>
    TestServlet.java:
              out.println("admin role: " + request.isUserInRole("admin") + "<BR/>");
    Thanks before hand for any responses.
    - Brian

    Hi Jeanfrancois,
    Your suggestion has lead me to find my problem. There were actually three problems.
    1) First, you suggestion to reorder my xml file did not cause any errors to occur. I got suspicious that my web.xml file was wrong. I looked at some sample web-xml files and found that I was missing the header as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    2) When I added this information, the deploy feature failed stating the my web.xml file was out of order. I fixed the ordering. It now deployed, but the security still wasn't working.
    3) I then added the sun-web.xml file. This file was missing before hand as I thought it was unnessary. However, this file added the essential mapping from a role to a group. After adding this, it now started to work.
    Thanks so much for you time and effort. You really did help me.
    - Brian Blank

  • Error retrieving worklist using java

    Hi ,
    I am trying to retrieve the worklist for a particular user.
    The java code is :
    package cpa.apps.fin.wa.model;
    import java.util.ArrayList;
    import java.util.List;
    import javax.transaction.SystemException;
    import oracle.bpel.services.workflow.metadata.config.model.*;
    import java.util.ArrayList;
    import java.lang.Exception;
    import java.util.HashMap;
    import java.util.Map;
    import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
    import oracle.bpel.services.workflow.client.IWorkflowServiceClientConstants;
    import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
    import oracle.bpel.services.workflow.query.ITaskQueryService;
    import oracle.bpel.services.workflow.task.ITaskService;
    import oracle.bpel.services.workflow.task.model.Task;
    import oracle.bpel.services.workflow.verification.IWorkflowContext;
    import utils.system;
    public class workflowClient {
    public static void main(String[] args){
    Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties = new
    HashMap<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>();
    properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.MODE,
    IWorkflowServiceClientConstants.MODE_DYNAMIC);
    properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.SOAP_END_POINT_ROOT,
    "http://abc.xyz.pqr.us:8001");
    IWorkflowServiceClient client =
    WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.SOAP_CLIENT,
    properties, null);
    try
    //Create JAVA WorflowServiceClient
    IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(
    WorkflowServiceClientFactory.REMOTE_CLIENT);
    //Get the task query service
    ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
    //Login as efs_generic_3
    IWorkflowContext ctx = querySvc.authenticate("efs_generic_3","Password2011".toCharArray(),null); **//this is point where i get the error.**
    //Set up list of columns to query
    List queryColumns = new ArrayList();
    queryColumns.add("TASKID");
    queryColumns.add("TASKNUMBER");
    queryColumns.add("TITLE");
    queryColumns.add("OUTCOME");
    //Query a list of tasks assigned to jstein
    List tasks = querySvc.queryTasks(ctx,
    queryColumns,
    null, //Do not query additional info
    ITaskQueryService.AssignmentFilter.MY,
    null, //No keywords
    null, //No custom predicate
    null, //No special ordering
    0, //Do not page the query result
    0);
    //Get the task service
    ITaskService taskSvc = wfSvcClient.getTaskService();
    //Loop over the tasks, outputting task information, and approving any
    //tasks whose outcome has not been set...
    for(int i = 0 ; i < tasks.size() ; i ++)
    Task task = (Task)tasks.get(i);
    int taskNumber = task.getSystemAttributes().getTaskNumber();
    String title = task.getTitle();
    String taskId = task.getSystemAttributes().getTaskId();
    String outcome = task.getSystemAttributes().getOutcome();
    /* if(outcome == null)
    outcome = "APPROVE";
    taskSvc.updateTaskOutcome(ctx,taskId,outcome);
    System.out.println("Task #"+taskNumber+" ("+title+") is "+outcome);
    catch (Exception e)
    //Handle any exceptions raised here...
    System.out.println("Caught workflow exception: "+e.getMessage());
    When trying to debug, this is where it threw the error :(
    // IWorkflowContext ctx = querySvc.authenticate("skyadav","welcome1".toCharArray(),null); **//this is point where i get the error.**
    Caught workflow exception: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination]
    Process exited with exit code 0.
    Reading further I understood that i also need to set up a Workflow client Configuration, which i have done using a MAP but i found that we also need to configure wf_client_config.xml
    Can anyone one put some light where i need to keep this file and what sort of configurationis required in it .
    Thanks
    Sumit Yadav
    Edited by: Sumit Yadav on Jul 8, 2011 8:39 AM

    have done the above mentioned steps .
    Fom Oracle worklist page i am able to login .
    but when ever in my program i amtrying it gives the following error.
    Note:
    We are using SSO for authentication:
    but it always gives the error pointing to jazn file .
    Error in authenticating user.
    Error in authenticating and creating a workflow context for user jazn.com/efs_generic_3.
    Verify that the user credentials and identity service configurations are correct.
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_1034_WLStub.authenticate(Unknown Source)
         at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:122)
         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 oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invokeTarget(WFClientRetryInvocationHandler.java:133)
         at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invoke(WFClientRetryInvocationHandler.java:72)
         at $Proxy14.authenticate(Unknown Source)
         at cpa.apps.fin.wa.model.workflowClient.main(workflowClient.java:43)
    Caught workflow exception: Error in authenticating user.
    Error in authenticating and creating a workflow context for user jazn.com/efs_generic_3.
    Verify that the user credentials and identity service configurations are correct.
    Process exited with exit code 0.
    there are 2 methods :
    oracle.bpel.services.workflow.verification.IWorkflowContext authenticate(java.lang.String p1, java.lang.String p2, java.lang.String p3, java.lang.String p4) { }
    oracle.bpel.services.workflow.verification.IWorkflowContext authenticate(java.lang.String p1, char[] p2, java.lang.String p3) { }
    once i tried
    IWorkflowContext ctx = querySvc.authenticate("efs_generic_3","Password2011".toCharArray(),null);
    and again
    IWorkflowContext ctx = querySvc.authenticate("efs_generic_3","Password2011",null,null);
    but evertime it gives the same error :
    Error in authenticating and creating a workflow context for user jazn.com/efs_generic_3
    Why it point to jazn/XYZ.. even though I have not implemented ADF security
    Please advise.
    Thanks
    Sumit Yadav
    Edited by: Sumit Yadav on Jul 15, 2011 9:24 AM

  • Is it possible to retrieve Address Book from MS Exchange using Java IMAP

    My JSP is required to display all valid email address to end user.
    Is there any way i can retrieve Name & Email information (Address Book) from M.S Exchange server using Java implementation of IMAP protocal?
    I believe M.S Exchange server is IMAP compatible so i should'nt be required to do any configuration on mail server side ?
    If somebody has recently done this please share the implementation details , thanks,.
    Please also let me know how to attach duke dollars with this thread.

    No, because that Java implementation you refer to is completely oriented towards handling messages. The Exchange address book has nothing to do with that.

  • Error while assigning roles to java users

    Hi Experts,
    I am trying to create a user on a Java system ( databse not LDAP) and assign a role. I am able to create a user successfully but it fails with following error;
    Pass: SetJavaRole&GroupForUser.
    Error putNextEntry failed storingtestidm123
    Exception from Add operation:com.sap.idm.ic.ToPassException: No such objectclass defined
    Exception from Modify operation:com.sap.idm.ic.ToPassException: SPML exception: No valid id to modify defined
    ACCOUNTD1U testidm123
    MXREF_MX_PRIVILEGE 316
    MX_ENTRYTYPE MX_PERSON
    DISPLAYNAME test user
    MX_LASTNAME idm
    MX_FIRSTNAME test
    ACCOUNTD1E testidm123%
    TEMPACCOUNTD1E testidm123
    MSKEY 6179
    MSKEYVALUE testidm123
    The pass reads as follows;
    SPMLID : %MSKEYVALUE%
    assignedrole : PRIV:ROLE:SID:idm.authenticated
    Regards,
    Shailesh
    Edited by: Shailesh Deshpande on May 3, 2011 6:43 PM

    Hi Shailesh,
    Can you please take a look at note 1476301. I hope it helps.
    Thanks,
    Anderson

Maybe you are looking for

  • Insert in master page, the first page and the last page of my article...

    I need insert in the master page, the first page and the last page of my article... (Indesign CS3-4) Is this possible ???? Thanks for read me...

  • Problem to play Netflix on Apple TV

    Hi I can play Netflix movie on Apple TV to start off, however, after a few moment, picture disappears from screen but can still hear sound. This is Apple TV was bought last week and latest software is installed. Any suggestion please?

  • EPMA server service not started

    Hi All, I installed Hyperion 11.1.2.2 Essbase, Planning, EPMA, Calculation Manager, FDM and HFM in the single machine in windows server 2008 R2. but i am facing two issues. 1. In services, EPMA Server service not started. 2. In FDM, I am getting erro

  • Icloud deleted 2nd phone contacts and apps

    I connected to iCloud when upgrading my iPhone 4 to v5 s/w. I also upgraded my wife's iPhone 3 to v5 s/w. She uses the same iTunes account to download apps, songs. All her stuff was backed up to iTunes during the upgrade. I went ahead and connected h

  • Programmatically setting SQL Query string?

    Post Author: JoeM CA Forum: Data Connectivity and SQL Hi, I recently updated to Crystal Reports 11 from 8.5 and am having some problems getting my reports to properly function.  I need to set the SQL query string in the report at runtime in our C++ b