Error with TaskSearchFilter using Java API by calling custom

I created a Java component customized for use in LC process Mgr.

On invoke the process containing the component, the component will fail with the following message:

2011-02-28 16:28:31, 260 ERROR [com.adobe.workflow.AWS] cannot force the object: com.adobe.idp.taskmanager.dsc.client.query.TaskSearchFilter@cf7e441 type: com.adobe.idp.taskmanager.dsc.client.query.TaskSearchFilter type: com.adobe.idp.taskmanager.dsc.client.query.TaskSearchFilter of the class

Code is pretty basic:

ServiceClientFactory myFactory = ServiceClientFactory.createInstance ();

TaskManagerQueryService queryManager = TaskManagerClientFactory.getQueryManager (myFactory);

TaskSearchFilter filter = new TaskSearchFilter();
filter.addCondition (TaskSearchingConstants.pSTATUS, Operator.EQUALS, "3");

The list of result < TaskRow > = queryManager.taskSearch (filter);

Error seems to happen with the creation of the list. This code works fine when run as a standalone file in Eclipse or Netbeans, but not in the component.

All required jars are included and are listed in the component.xml class path.

Someone at - it ideas?

Thank you

David

Looks like a problem of ClassLoader.  Usually this is caused by the presence of a class (TaskSearchFilte) in your component on the server.   In other words, there are two copies of the class of TaskSearchFilte - yours and already in LiveCycle - and they are in conflict.

If this is the case, the solution is simple:

  • remove the jar files containing the TaskSearchFilte (and LiveCycle customers) jar of your device file.  You may need in the way of construction, so your code can compile - but you don't need them in the jar of the final element.
  • remove references to these jars of the class-path of the component.xml file entry
  • Add a section import-package to your component.xml file.  This will not reference the jar files, but the package names.  For example:

com.adobe.idp.taskmanager.dsc.client.query.TaskSearchFilter

Tags: Adobe LiveCycle

Similar Questions

  • Search for users using java API IOM 11 with the value of null field

    Hello

    I find user using java api findUsers (HashMap hash), but I need get all users where a custom field is equal to null

    Example:

    HashMap userHash = new HashMap();
    userHash.put ("USR_UDF_CUSTOM", "NULL");
    userData tcResultSet = userOps.findUsers (userHash);

    Someone help me?

    Do not use this search functionality. The user that:

    UserManager usermgr = Platform.getService (UserManager.class);
    Criteria of SearchCriteria = new SearchCriteria ("Custom Label", null, SearchCriteria.Operator.EQUAL); Suppose USR_UDF_CUSTOM label is personalized
    List of users of = usermgr.search (null, null, criteria);
    for (user: user) {}
    perform the action here
    }

    -Kevin

  • Creation of posts of Siebel using JAVA API in IOM

    Hi Experts,

    I need to create positions of Siebel using JAVA API.

    I try to incorporate OIM 11 g-Siebel connector, but this connector is not able to create new positions of siebel.

    Please tell me where to find the info/examples of use of the api or how to best integrate?

    Thanks in advance

    Kiran

    This is useful.

    I was able to create a post of siebel using the model given here,

    Creating New position in Siebel using Siebel DataBean

  • problem installing with berkeley db java api

    Hello
    I have a problem to start Berkeley db 4.7 with java api.
    I followed the installation procedure described here http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_unix/intro.html
    and provided the - enable-java option during configuration.
    I've also updated the following configuration on the file .bashrc in the linux machine

    export CLASSPATH=/usr/local/BerkeleyDB.4.7/lib:$CLASSPATH
    export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.7/lib

    When you try to run the sample db. AccessExample (which is packed with berkley db) I get the following error:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/BerkeleyDB.4.7/lib/libdb_java-4.7.so: /usr/local/BerkeleyDB.4.7/lib/libdb_java-4.7.so: evil class ELF: ELFCLASS64 (Possible cause: incompatibility of width for the word architecture)

    The linux machine is a 64-bit computer java-version gives:
    Java version "1.6.0_03".
    Java (TM) SE Runtime Environment (build 1.6.0_03 - b05)
    Java hotspot Server VM (build 1.6.0_03 - b05, mixed mode)

    How can this problem be fixed?
    If it is related to 32 bit or 64 bit issues, is there a way to compile the berkeley db code with different config params?

    Thank you!

    Hello. -m32 is an indicator of compiler, you can tell BDB that signals to use by setting CFLAGS for configuration stage. There is a documentation on how to do it here:
    http://www.Oracle.com/technology/documentation/Berkeley-DB/DB/ref/build_unix/flags.html

    Ben Schmeckpeper

  • Applications using Java API 11 g MRI are precarious?

    Hello

    I was reading "Developers Guide for Oracle 11g IRM server" and I found this:

    Cryptography keys: an application that uses the Java API of MRI has the ability to get sealed content Cryptography keys. The MRI Java API stores these keys in memory of the calling process, so that they are used. The MRI Java API debugging, or do a memory dump could compromise the key material. Do not use MRI Java API if the environment in which the application runs is loose or not reliable (for example, a laptop).

    HotFolders and IRM Wrapper using MRI Java API, aren't they? Does this mean that these applications are not secure? I install these applications in a real environment. However, provide advice to guide doubt me.

    Thanks in advance.

    The documentation is currently fairly conservative.

    Re: Hot issues. If HF is configured to use the Java API, then it is true that the keys will be temporarily stored in its memory and Java is more susceptible to reverse engineering, say, C++. But the hot issues in use of production will generally be an application on the server side and not work on laptops to the end user. So the access to this application of HF running (and its own encrypted cache) can be fixed by using normal operating system access controls. If you are always worried about it, then do not use the API, use default web services. In this case no key material is always sent to the HF and all the sealing is made by the IRM server.

    Re: Wrapper. It does not use the Java API if never receives or hiding of key material.

    HTH,

    Martin

  • Numbers that come out to "1n7" instead of "1.7" when you use Java APIs

    I have an RTF template, and on the text in Word form field Options dialog box, I Format rule number field on "#, # 0.00000. When this model will be run in a concurrent program, or from the plug-ins office, numbers to format correctly in the form "1.7". But, when I run with a model with the Java API or the viewer of documents common region in the OPS, the numbers are formatted in the form "1n7". I get a "n" instead of a ".".

    Any ideas on what could be the cause?

    My calling code is below.

    Thanks in advance,
    Kurz
    OADBTransactionImpl oadbTrx = ( OADBTransactionImpl ) pageContext.getApplicationModule( webBean ).getOADBTransaction();
    DataTemplate dt = new DataTemplate( oadbTrx.getAppsContext(), "XXCUS", "XX_CNQCBSR" );
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    Hashtable htp = new Hashtable();
    htp.put(
         "P_AUCTION_HEADER_ID",
         this.auctionId
         );
    dt.setParameters( htp );
    dt.setOutput( bos );
    dt.processData();
    
    DocumentHelper.exportDocument(
              pageContext,
              "XX",
              "XX_CNQCBSR_MAIN",
              "en",
              "US",
              new ByteArrayInputStream( bos.toByteArray() ),
              "PDF",
              null
              );

    Maybe check the value of the profile option "ICX: numeric characters?

  • Problem with "correspondence with Contact" using BlackBerryContactList API in v4.2.0 Perle

    Hi all

    1. work on (BB Pearl 8100 Simulator) version is v4.2.02.

    2 opportunity BB JDE v4.2.0

    3A signature permissions

    4. the request is:

    I tested Simulator only.

    Opportunity API - BlackBerryContactList.items (strPhoneNumber)

    I have a phone number with "12345", if I said Dáil with the same number with ' 12, 123, 234, 345 "or anything what a game atleast 2 or 3 digits API above that the contact is exist."» It must match when I dail with number '12345' but why is - that behave like that?

    That's the problem with v4.2.0 or do I have to use different APIs

    Please help me on this.

    Here's something that I just created for you, probably does not compile, but you get the idea.

    Note that you must test this code in 4.6, I think that there is a problem experienced with obtaining the phone number - a funny character is inserted in it. You may find reference to this problem if you search around the forum.  But test your code and see what you see.

    I don't understand what you mean by:

    «Note: for the PIMItem, I can spend either MOBILE/HOME/HOME2/WORK/WORK2 something should be to create dynamically PIMItem.»

    Here is the code, no guarantee, I hope useful.

    Enumeration enumerate = bbContactList.items(number);
    BlackBerryContact matchingContact = null;
    
    //iterate through contacts
    while (enumerate.hasMoreElements() && matchingContact == null) {
    
        // Extract all telephone numbers and check these
        BlackBerryContact bbContact = (BlackBerryContact)enumerate.nextElement();
    
        for ( int atrCount = 0; atrCount < bbContact.countValues(BlackBerryContact.TEL); ++atrCount) {
            String numberToMatch = bbContact.getString(BlackBerryContact.TEL, atrCount);
            if ( numberToMatch != null &&
                 numberToMatch.equals(number) ) {
                matchingContact = bbContact;
            }
        }
    }
    

    Edit:

    Adding a "pause:" after "matchingContact = bbContact;" could save some processing too.

  • How to use 11g API for adaptars custom

    Hello
    I write adaptar customized for OIM 11 g. Old api using, I am able to write the code and it is woring fine. But I want to use 11g APIs. Please let me know how to get the dataprovider in 11g APIs.

    for example, I wrote the code to get the take below. and after you create the jar, I do address in the console of the design. dataprovider is maped reference of database. How to achieve the same using 11g APIs.

    in the Sub wxample, I used tcUserOperationsIntf but I want to use oracle.iam.identity.usermgmt.api.UserManager. Please let me know how to connect with IOM witout using tcDataProvider. using the connection of the customer we can do that, but in this case it must encode url, id, password etc I think that.


    {public long findUserKey (String employeeid, dataProvider tcDataProvider)

    HashMap map = new HashMap();
    Map.put ("Users.User ID", employeeid);
    long take = 0;

    try {}
    tcUserOperationsIntf userOperationsintf = (tcUserOperationsIntf) tcUtilityFactory.getUtility (dataProvider, "Thor.API.Operations.tcUserOperationsIntf");
    result = userOperationsintf.findUsers (map) tcResultSet;
    {if (result. {(GetRowCount ()! = 1)}
    return 0;
    } else {}
    Take = result.getLongValue("Users.Key");
    }
    } catch (Exception e) {}

    }

    Return take;
    }

    You need not to the map in the console design for use in your adapters. Just use Platform.getService in your adapter code and it gives you direct access to the API.

  • Runtime error in workflow using the API Web service with a VC:VirtualMachine parameter

    Hello

    I took the example for the execution of a workflow using powershell via the site Web of Joerg Lew Web service API and changed to pass an input parameter to the name of the Virtual Machine.

    I have no error in powershell, but when I check the events for the workflow in Orchestrator I see it failed with the error "Validation error for the parameter"vm". It's using out of the box "Start virtual machine and wait" stream  Is a problem with a virtual machine name is paid as a string? I tried to use the full name of the virtual machines and the ID.  I have provided the code below.  Can someone help with how to get this working?

    $vcoWS = new-WebServiceProxy-VCO, VCO - Namespace - Uri of the class http://192.168.1.65:8280 / vmware-vmo-webcontrol/webservice? WSDL
    $workflows = $vcoWS.getWorkflowsWithName ("Start the virtual machine and wait", "vcoadmin", "vcoadmin")
    $workflow = $workflows [0]
    # print the input parameters
    $workflow.inParameters
    # generates the table with input parameters (WorkflowTokenAttribute - objects)
    $inparams = @)
    # fill in the table, an entry for each input parameter
    $inparams += new-Object - TypeName VCO. WorkflowTokenAttribute
    $inparams [0] .name = "VM".
    $inparams [0] .Guy = "VC:VirtualMachine."
    $inparams [0] .value = "vm-113.
    #... turns on and off (use $null on $inparams if the workflow has no input parameter
    #... und implement
    $workflowToken = $vcoWS.executeWorkflow ($workflow.id, $inparams, "vcoadmin", "vcoadmin")

    Thank you

    David

    Hi David,

    > game $inparams [0] = "VC:VirtualMachine".

    This means that the type of entry for this workflow is an object of type 'VC:VirtualMachine '. So, passing the name of the virtual machine would not work. The expected value for such an entry is the string representation of an object which, in the case of the vCO is a unique object identifier. The object id unique vCO looks like this:

    dunes://service.dunes.ch/CustomSDKObject?ID= "15.23.34.34/vm-590'&dunesName='VC:VirtualMachine".

    but you don't need to know this (technically, if you know the ip address of the vCenter and the id of the virtual machine can be built but is not a recommended practice).

    The right way to find the string representation of the object "VC:VirtualMachine" with the name you need to do a few more things. I'll do the example in java and it should be easy to turn into powershell.

    QueryResult result = vcoWS.find ("VC:VirtualMachine", "xpath:name = \" vm-113\ "", username, password);

    String stringObjectRepresentation = null;

    If (result.getTotalCount () > 0) {}

    FinderResult = result.getElements () FinderResult [0];

    stringObjectRepresentation = finderResult.getDunesUri ();

    }

    Thus, the stringValue should be attributed to the line:

    $inparams [0] .value = stringObjectRepresentation

    Hope it will help.

    Without doubt, Joerg would be able to illustrate this solution with powershell later ;-)

  • Create the new virtual machine using Java API vCloud

    Hi guys,.

    I am trying to create the new virtual machine in TIME, but I've stuck here. The API I'm using is vcloud-java-sdk - 1.0.jar.

    Could you please show me a code snippet how to do this?

    For now I do it like this:

    RecomposeVAppParamsType recomposeVAppParamsType = new RecomposeVAppParamsType();

    List the items < CompositionItemParamType > = recomposeVAppParamsType.getItem ();
    ReferenceType vappTemplateVMRef = new ReferenceType();

    // ??? seems that new reference to the new virtual machine should be here. But how to create this VM
    CompositionItemParamType compositionItemParamType = new CompositionItemParamType();
    compositionItemParamType.setSource (vappTemplateVMRef);

    Items.Add (compositionItemParamType);
    ReferenceType vAppRef is Vdc.getVdcByReference (vcloudClient, vdcRef) .getVappRefByName ("vApp_Websrv");.

    Vapp.getVappByReference (vcloudClient, vAppRef) .recomposeVapp (recomposeVAppParamsType);

    One day before I played with Web Services SDK, which is much easier to understand. I was able to create the vApp and VMs in vSphere. Is it possible to import machines virtual vSphere to vCloud? Should what API I use for this?

    Thank you

    Hello

    You cannot add a new empty virtual machine in a paralytic.

    Instead, you can add a virtual machine from an existing vapp, vapptemplate.

    To import a vsphere vm to vcloud.

    Import vsphere vm as VAPP in vcloud. VMWVimserver-> importVmAsVApp()

    The importation of vsphere vm, as vAppTemplate, in vcloud. VMWVimserver-> importVmAsVAppTemplate()

    See also the example of ImportVmAsvAppTemplate.java, which is part of the vcloudjavasdk group.

    Kind regards

    Rajesh Kamal.

  • Error Trying to use java.lang.Class.forName ("oracle.jdbc.OracleDriver") ';

    I use SDDM 4.0.1.836.  I get the error message "wrapped java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver (Query Test n ° 3).

    importPackage(java.sql);
    java.lang.Class.forName ("oracle.jdbc.OracleDriver");
    conn = java.sql.DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:DESN", "READONLY_USER", "READONLY");
    stmt = conn.createStatement();
    rset = stmt.executeQuery("SELECT * FROM DUAL");
    rset.close();
    stmt.close();
    conn.close();
    
    

    There is an archived topic,unable to connect to oracle (not found driver) transformation script , but this issue has not been resolved.

    It seems that the thread has been forgotten.

    You need to add following the datanodeler64.conf and/or datamodeler.conf

    AddJavaLibFile... /... /JDBC/lib/ojdbc6.jar

    Philippe

  • Add the group with the ES2 Java API

    Hi all

    There is an example that shows how to create a new group using the ES2 API here:

    http://help.Adobe.com/en_US/LiveCycle/9.0/programLC/help/index.htm

    However, if you run the code to create a group, the code works fine and a new OID is returned. But if you go in the /AdminUI ES2 and the list of all groups, you don't see the 'AdobeGroup' group here! Also if you are looking to the /AdminUI for the group 'AdobeGroup' it is not found.

    If the code does not work or the Admin UI does not show the newly created group.

    What's not here?

    Thank you.
    Paul.

    After the code snippet should work for you

    public String createSampleGroup() throws UMException{        String groupOid = checkGroupExist(groupName);
    
            if(groupOid != null){            return groupOid;        }        String groupCanonicalName = groupName;
    
            GroupImpl group = new GroupImpl();        group.setCanonicalName(groupCanonicalName);        group.setDomainName(domainName);        group.setGroupType(Group.GROUPTYPE_PRINCIPALS);        group.setLocal(true);        group.setPrincipalType(Principal.PRINCIPALTYPE_GROUP);
    
            groupOid = directoryManager.createLocalGroup(group);        log("Sample group created with name %s",groupName);
    
            return groupOid;    }
    
        /**     * Search the groupwith the given name in the sample domain      */    private String checkGroupExist(String groupName) throws UMException{        PrincipalSearchFilter psf = new PrincipalSearchFilter();        psf.setCommonName(groupName);        psf.setSpecificDomainName(domainName);
    
            //By default the filter causes like search unless you are using the absolute version        //Setting this ensures that search is exact        psf.setMatchExactCriteria(true);
    
            //By default search returns obsolete users also. Set this to ensure that        //only active users are returned        psf.setRetrieveOnlyActive(); 
    
            //PrincipalReference are lightweight user objects and searching for them would be more performant        //compared to the User search. If you do not require any other user attribute then prefer this        //mode of search        List result = directoryManager.findPrincipalReferences(psf);        if(result.isEmpty()){            log("Sample group with name [%s] does not exist",groupName);            return null;        }else{            String oid = result.get(0).getOid();             log("Sample group with name [%s] already exist",groupName);            return oid;        }    }
    
  • Set the member formula using java api

    Hello

    I'm trying to define the formula by member using the java code and here is the code snippet I use. But some how, the formula is somewhere in cache, but not updated in the server of the ESS. I have appropriate privileges to update the data in Essbase. Any thoughts would be helpful. Thank you.

    try {}

    IEssCube = formulaCube

    olapSvr.getApplication (appName) .getCube (cube);

    IEssCubeOutline outline = formulaCube.openOutline (false, false, true);

    If (contour! = null) {}

    IEssMember requiredMember = outline.findMember (member);

    If (requiredMember! = null) {}

    System.out.println ("formula:" + requiredMember.getFormula ());

    requiredMember.setFormula ("[RL. LTV. CSE] + [RL. LTV. OPEX.0071]");

    System.out.println ("value according to formula:" + requiredMember.getFormula ());

    requiredMember.refreshPropertyValues ();

    requiredMember.updatePropertyValues ();

    System.out.println ("after updatevalues:" + requiredMember.getFormula ());

    }

    Outline.Save ();

    Outline.Verify ();

    outline.updatePropertyValues ();

    }

    It works if you restructure prior to closing.

    Outline.Save ();

    outline.restructureCube (IEssCube.EEssRestructureOption.KEEP_ALL_DATA);

    Outline.Close ();

    In theory, it should only do a restructuring outline only.

    See you soon

    John

  • Change the shared user using Java API Service

    Hi Experts,

    I have successfully run the example of classes Java from here: http://docs.oracle.com/cd/E17236_01/epm.1112/epm_security_api/frameset.htm?ch01s03.html
    And I need to change the code of UserFunctions.Java.

    UserFunctions.Java, I can create, edit, and delete a user.
    But in this sample program, when I want to edit a user, I should create a new user first.

    My requirement is I want to change the existing user passing the parameter when you run the program.
    So, when I want to launch the program, it should be like this:
    Java UserFunctions 'method' 'username', 'password', 'email', 'first name', 'last name '.

    FYI, I can create a user in passing the parameter as I mentioned above.
    But to edit a user, I still can't do it.

    Please find my codes below:

    public CSSNativeUserIF createUser (String username, String desc, String firstname, String lastname, String email, String pass) throws CSSException
    {
    The user CSSNativeUserIF = null;
    HashMap context = new HashMap();
    user = cssDMAPI.getNativeUserInstance (context, main);
    user.setLoginName (username);
    user.setDescription (desc);
    user.setFirstName (firstname);
    user.setLastName (lastname);
    user.setEmailAddress (email);
    user.setPassword (pass);
    cssDMAPI.addNativeUser (main user, context);

    return the user;
    }

    ' public void modifyUser (String username, String desc, String firstname, String lastname, String email, String pass) throws CSSException
    {
    The user CSSNativeUserIF = null;
    HashMap context = new HashMap();

    System.out.println ("Edit description user...");
    user = cssDMAPI.getNativeUserInstance (context, main);
    user.setLoginName (username);
    user.setDescription (desc);
    user.setFirstName (firstname);
    user.setLastName (lastname);
    user.setEmailAddress (email);
    user.setPassword (pass);
    cssDMAPI.updateNativeUser (main user, context);

    }

    -------

    in the Sub main():

    If (method.equals ("create"))
    {
    / * Create a native user * /.
    cu.printMsg (System.out, "- creating a user-" "");
    user = cu.createUser (username, desc, firstname, lastname, email, pass);
    cu.dumpUsers (System.out, "the user is created successfully," new CSSNativeUserIF [] {user});
    }
    ElseIf (method.equals ("update"))
    {
    / * Change native user * /.
    cu.printMsg (System.out, "- update a user-");
    cu.modifyUser (user name, desc, firstname, lastname, email, pass);
    cu.dumpUsers (System.out, "the user is updated", new CSSNativeUserIF [] {user});
    }

    Could you please help me with this?

    Thank you and best regards,

    Christophe

    Try this

    CSSUserIF [] usrs to = cssAPI.getUsers (context, principal, sLoginName);

    If (usrs.length > 0) {}
    CSSNativeUserIF natUser1 = (CSSNativeUserIF) usrs to [0];
    natUser1.setLoginName (sLoginName);
    natUser1.setFirstName (sFirstName);
    natUser1.setLastName (sLastName);
    natUser1.setEmailAddress (sEmail);
    natUser1.setDescription (sDescription);
    natUser1.setPassword (sPassword);

    cssDMAPI.updateNativeUser (context, principal, natUser1);
    }

  • Problem streaming of videos on Bold 9700 using java API but works on browser

    Hi all. I'm new to the BlackBerry development and having some problems streaming videos on the BlackBerry Bold 9700 by using RTSP.

    BlackBerry JDE: 5.0.0.14

    BlackBerry smartphone: BlackBerry Bold 9700 v5.0.0.296 (Platform 5.1.0.83)

    Streaming server: Darwin Streaming Server

    Connection: WiFi business

    File format: H264/3GPP/400 Kbits / s / 30 fps

    When I load the app in the BlackBerry device, it seems that nothing happens. But when I type the URL in the blackberry browser, he immediately start blackberry player and play the video.

    Here is a code snippet that I use:

    try {
          String videoFile="rtsp://172.24.7.115:554/dmc/3GPP_H264_400kbps_30fps.3gp";
          player = Manager.createPlayer(videoFile);
          player.start();
    } catch(MediaException me) {
    } catch (IOException io) {
    }
    

    I appreciate your help.

    Thank you.

    Your code does not work at least, because you tell the operating system to use the cell interface for access to the server that has a non-public IP address. You must add '; interface wifi ="at the end of the URL. This will tell the OS to connect via WiFi.

Maybe you are looking for