How to fetch already created sessions from Informatica Repository (Informatica SDK)

Hi guys,I'm using the Informatica SDK to create a java application that accesses the Informatica repository. I'm having a bit of an issue while trying to fetch the names of already created sessions from the Informatica Repository. I'm able to connect to the repo without any issues and have been able to add sources, targets, mappings, sessions, workflows, etc... and save them directly afterwards. However, when I try to fetch the session names from a folder in the repository, I get the following error:Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the pmrep process in the working directory: [C:\Informatica\9.6.1\clients\PowerCenterClient\client\bin].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the command [listobjects -o session -f "TechOps" -s . ]. Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the command [exit ].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Parsing the output of the ListObjects command for each folder.Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.]. The following errors occurred while running the ListObjects command: [ Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.].com.informatica.powercenter.sdk.mapfwk.exception.RepoOperationException: The following errors occurred while running the ListObjects command: [ Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.]. atcom.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source) atcom.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source) at com.mars.Main.main(Main.java:170)This doesn't really make sense to me as I'm able to connect to the repo fine to add and save changes. Here's my code for fetching:// Create a list of session names and store the names
List<String> sessionNames = null;
try {
    sessionNames = folder.fetchSessionNamesFromRepository();
} catch (RepoOperationException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
} catch (MapFwkReaderException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
// Print the list of session names
for (int i = 0; i < sessionNames.size(); i++) {
    System.out.println("Session " + i + " is " + sessionNames.get(i));
}I've confirmed that the folder object works fine as I can add and save other objects to that folder in the repo.The other odd thing is that if I go to the install path for Informatica on my machine and I run pmrep from the command prompt followed by the command to fetch session names, it works fine.Any help on this would be greatly appreciated.Thanks

Hi neel007,
Just use a List instead of a Vector, it's more performant :
List<Folder> rep_FetchedFolders = new ArrayList<Folder>();If you need to synchronize your list, then
List<Folder> rep_FetchedFolders = Collections.synchronizedList(new ArrayList<Folder>());Also, if you're using Java 5 or higher and if you're sure listOfTargets contains only Target objects, instead of this
for(int b=0; b<listOfTargets.size();b++){
   Target trg = ((Target)listOfTargets.get(b));
   t_folder.addTarget(trg);
}you may do this :
for (Target trg : listOfTargets) {
   t_folder.addTarget(trg);
}Edited by: Chicon on May 18, 2009 7:29 AM
Edited by: Chicon on May 18, 2009 7:35 AM

Similar Messages

  • How to fetch only WebI reports from the repository

    How to fetch only WebI reports from the repository, where in we have Deski reports also in the repository.. any macro??

    here is the query to fetch only webi reports:
    Open Administration Launchpad (.Net / Java) from:
    Start >> All Programs >> BusinessObjects XI Release 2 >> BusinessObjects Enterprise >
    Click on the 'Query Builder' under 'Administration Tools' on the left pane.
    Logon to Query Builder using Enterprise Administrator credentials.
    Run the following query for Web Intelligence Reports:
    SELECT SI_ID, SI_NAME, SI_OWNER FROM CI_INFOOBJECTS WHERE SI_KIND='WEBI'
    Thanks,
    Srikanth.

  • How to check if "create session" is being audited in the aud$

    Specifically, how do the determine if "create session" is being audited? Assume audit_trail=db_extended, audit_sys_operations=true and audit_file_dest has been set. Please specifically how to check if "create session" is being audited. Thanks

    SQL> connect test/test
    Connected.
    SQL> connect / as sysdba
    Connected.
    SQL> select username, action_name, to_char(timestamp,'DD/MON HH24:MI') from dba_audit_trail where action_name like 'LOG%';
    USERNAME                       ACTION_NAME                  TO_CHAR(TIMESTAMP,'DD/MONHH24
    TEST                           LOGON                        10/JANV. 19:32
    TEST                           LOGOFF                       10/JANV. 19:32
    SQL> select to_char(sysdate,'DD/MON HH24:MI') from dual;
    TO_CHAR(SYSDATE,'DD/MONHH24:M
    10/JANV. 19:33

  • How to fetch delivery note fiedl from MIGO

    Hi,
    how to fetch delivery note field from MIGO.
    Regards
    Mave

    see it is not the exact field.
    Regards
    Mave

  • How to fetch accounting document number from known material document number

    Hi,
    Using MIGO transaction, by giving mblnr(material document number) as input, I get accounting document number by clicking FI document.I have to add this accounting document number in my report for corresponding known mblnr(material document number) values.
    My question is how to fetch the accounting document number present in MIGO to add in my report program.
    I used the xblnr(Reference Document Number) which is present both in mkpf and bkpf tables to fetch values.
    I extracted xblnr values with known mblnr values from mkpf (Header: Material Document table).
    and then extracted belnr(accounting document number) from bkpf (Accounting Document Header table) by using xblnr values.
    But the query is running for a long time.
    Is there any other method  to extract the values in a simpler way.
    Kindly advise.
    Thanks and Regards,
    Sanjeev

    I had the values of xblnr and some other fields such as mblnr, budat etc in wi_item table.
    I created a new internal table i_xblnr and got down those values.
    And then created a new internal table i_belnr and tried to get values of belnr in it.
    The code I wrote is given below:
    IF not wi_item[] is initial.
    loop at wi_item.
       at new xblnr.
        ws_xblnr-xblnr = wi_item-xblnr.
         append ws_xblnr to i_xblnr.
       endat.
    endloop.
      select belnr xblnr from bkpf into table i_belnr for all entries in i_xblnr where xblnr = i_xblnr-xblnr.
    ENDIF.
    Kindly look after it.Thank you.
    Regards,
    Sanjeev

  • How to put value in Session from AM ?

    in AM : i have a condition like this
    if (tool_id != null)
    //initialize lov and pass this tool_id to lov's controller.
    how can I do it ? If I had to do it from the controller, I would have put the value in session parameter, but how Do I put a parameter's value in session from AM ?
    I dont have the method : putsessionvaluediret() in am ??
    or say : how do i pass a value from am to an lov's contoroller ?
    Edited by: OAF-dev on Mar 8, 2010 4:53 PM

    You can create a method of string type and return the value to the controller.
    IN AMImpl:
    public String getToolId(String InputParameterIfAny)
    //initialize lov and pass this tool_id to lov's controller.
    // Capture toolID in variable and return
    return toolID;
    In Controller:
    String toolId = (String)am.invokeMethod("getToolId",InputParameterIfAny);
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to Process "Being Created" Sessions

    Dear Experts,
    Program created sessions are tagged to be "Being Created". Can any one of you explain me how to process these sessions through a program again.?
    It would be of great help and useful answers are rewarded.
    Best Regards,
    Arunkumar S

    After BDC_CLOSE_GROUP use rsbdcsub to run the session.
    ex:
    DATA: l_abap_list       TYPE abaplist OCCURS 0 WITH HEADER LINE,
    l_ascii_list(200) TYPE c        OCCURS 0 WITH HEADER LINE.
    SUBMIT rsbdcsub AND RETURN EXPORTING LIST TO MEMORY
                         WITH mappe = c_bdcname  "Session name
                         WITH z_verarb = 'X'
                         WITH fehler = ' '.
      COMMIT WORK AND WAIT.
    Retrieve the output from memory and place into l_abap_list
      CLEAR l_abap_list.
      FREE  l_abap_list.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = l_abap_list
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc EQ 0.
        CLEAR l_ascii_list.
        FREE  l_ascii_list.
        CALL FUNCTION 'LIST_TO_ASCI'
          EXPORTING
            list_index         = -1
          TABLES
            listasci           = l_ascii_list
            listobject         = l_abap_list
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
        IF sy-subrc NE 0.
    'Unable to convert list from rsbdcsub to ascii'
          MESSAGE w368 WITH text-010.
        ENDIF.
      ENDIF.

  • How Do You Assume A Session From Event Gateways?

    I am using event gateways to send and receive via SMS, IM,
    and Email. I can go back and forth just fine, and if the client
    initiates the session, session persistence is not a problem.
    Sometimes, though, we need the server to initiate the session
    and the client to assume that session so we don't have to
    re-establish the thread before we move on.
    For example, if the client says "Approve John Doe" for
    something, the bot can respond with "John Doe found. Reply with A
    for admin rights, W for web rights", and so on. Because the client
    established the session, replies are cemented in the bots brain so
    they know if an "A" is returned, it will give John Doe Admin
    access.
    The trouble is if the SERVER initiates the call to the IM
    Client: "This is the server speaking. John Doe is attempting to
    access the double-secret files. Reply with A to Allow or X to send
    10,000 volts to their computer". Reply with A and the bot will
    respond with, basically, "request unknown" because the client
    actually initiated a new session and nothing the server said was
    heard or can be viewed by the client.
    When the server creates a session in the event gateway, there
    also appears to be no sessionid, cfid, or cftoken. Especially for
    SMS, it's difficult to pass a UUID or specially coded variable for
    the client to use to at least search and retrieve the particulars
    of the event.
    So, how does one get a CLIENT IM, Email or SMS to assume the
    Session from the server?
    Alternative solutions welcomed!
    RLS

    BKBK,
    Thank you for your response. That does adequately cover the
    client-originated sessions, but still leaves the ability I am
    looking for unavailable.
    It did serve to definitively answer my most pressing
    question, however, with this statement:
    Note: ColdFusion cannot create a session if an initiator
    application uses a SendGatewayMessage method to start an
    interaction with a client, such as an SMS user. In this case, the
    sending code must keep track (for example, in a database) of the
    messages it sends and their destinations. When a response event
    arrives, it can look up the origniatorID to determine whether it
    was in response to an outgoing message.
    I will play around with the Application scope to see if there
    might be a workable solution there.
    RLS

  • How to dynamic order of groups & How to fetch data at runtime from database

    Post Author: ferikpatel
    CA Forum: Formula
    I am using visual studio .net application having inbuilt crystal report feature. Now, what I want to do is, i have create 5 groups in crystal report, but dynamically want to change the order of those reports as per user's selection.
    How to do that?
    Also, how to fetch database item on runtime which is not selected through data expert as its relation is depends on situation. Say if one field's value is 5 than i want to get name of customer, but if same field's value is 6 than i want to get name of suppliers. In database both supplier and customers tables are different however they are connected with base table.
    I'm bit new in crystal report. Please help me out if it is possible.

    Post Author: Charliy
    CA Forum: Formula
    You don't actually change the order of the groups.  You group on a formula and change contents of the formula based on the parameter.
    IF {?Group1} = "Manager" then {table.Manager}
    else if {?Group1} = "Invoice Date" then Totext({table.InvDate},"yyyyMMdd")    note all options must be the same date type, so numbers and dates are converted
    else . . .

  • How to fetch all the records from ztable

    Hi 
    My program is outbound program.
    According to the requirement i have to fetch all the records from ztable which are not tranmitted before to the third party and once the records are extracted and written to output file they will be marked as 'X' in the "status" field of that ztable for the next days run.
    How to fetch the records.Please suggest me.
    Thanks,
    Neelima

    HI,
    Fetch all the records whose status is equal to 'X' as whatever data is sent to third party system is marked as 'X' in status field of table after sending.
    You need to first fetch the data into internal table using the select statement where status EQ space. You get the data which is not yet transmitted to third part. And later in the program after trasmitting the data to third party modify the Records in the DB table which are transmitted with Staus eq 'X'.

  • How to kill particular Oracle Session from the multiple Session of User

    Hi,
    I am working on Web Application using ASP.NET , C# with Oracle. I am excuting queries from multiple connection of same user. I want to kill particular user session. I have tried to Kill session by using ALTER SYSTEM KILL SESSION 'sid,serial#' it is working fine but how can i identify which session is generated by particular connection so that i can kill that particular session.
    Suppose there us user 'abc' there are multple instance of this user and all are active but same USERNAME. So Please tell me how can i identify that session through which i am executing the query.
    Thanks,
    Nitin

    Some ideas for how to pick the right session:
    -Look at the time the session was connected (logon_time)
    -Look at the time the session last started it's most recent statement (last_call_et)
    -Look at the sql that the session is running (join with sql_address and sql_hash_value over to v$sqltext_with_newlines or one of the other views that show you the sql they are running)
    That usually gets me most of the way, if it's possible to distinguish them. ("Yeah I just started this query and I want you to kill it." is different than "I started five different queries at about the same time and I'm not sure which one I need killed.")

  • How to noaudit a create session

    We turned this on in 10.1.0.3. I am not sure when it was done or exactly what command. however, the noaudit is not turning tihs off.
    We are currently in 11.1.0.7
    what is the noaudit command to turn this off?
    noaudit create session does not work. Please see below.
    SQL> select * from dba_stmt_audit_opts
    union
    select * from dba_priv_audit_opts;
    2 3
    USER_NAME PROXY_NAME
    AUDIT_OPTION SUCCESS FAILURE
    ANY CLIENT
    CREATE SESSION BY ACCESS BY ACCESS
    SQL> noaudit create session;
    Noaudit succeeded.
    SQL> select * from dba_stmt_audit_opts
    union
    select * from dba_priv_audit_opts;
    2 3
    USER_NAME PROXY_NAME
    AUDIT_OPTION SUCCESS FAILURE
    ANY CLIENT
    CREATE SESSION BY ACCESS BY ACCESS

    969389 wrote:
    Hi,
    Try,
    SQL> NOAUDIT CREATE SESSION WHENEVER SUCCESSFUL;
    SQL> NOAUDIT CREATE SESSION WHENEVER NOT SUCCESSFUL;
    That, should do it...
    I doubt the OP has been waiting 3 years for a solution ....

  • How to reference already created tables?

    I just started with Oracle and I created 5 tables. On two of the tables i created the references but I never clicked ADD, so they were not added. How can I link the tables after they are already created?

    You want to add primary and foreign key. There is alot of articles with how to do this.
    The basic solution is:
    ALTER TABLE table_name
    add CONSTRAINT constraint_name
    FOREIGN KEY (column1, column2, ... column_n)
    REFERENCES parent_table (column1, column2, ... column_n);

  • How to delete last user session from backend SQL query?

    Sometimes user session gets closed between some work by any reason.
    When next time that user logs to P6, he gets some error or particular functionaly dosen't work for that user or system hangs.
    In that case if i decided to clear last session history of that user from database, how to write SQL query?
    I don't want to delete all user sessions from table USESSION and USESSAUD, i simply want to delete last user session of particular user (E.g XYZ).

    I am quoting this from MOS Doc Id "Why would multiple session records be present in the User Sessions screen in P6 Web, and why might some of them have different IP addresses? (Doc ID 1600172.1)"
    Multiple sessions show up for users since different sections of P6 Web have their own sessions associated with them. If a user is authorized to use multiple areas of the software they will have multiple sessions each time they log in. Additionally, if users are closing their browsers before logging out of P6 Web Access you might see some past sessions still appearing in the list. These will eventually be cleared out by background jobs, however you can also reset the sessions in the software by clicking the "Reset User" link (Administer > User Sessions > Manage User Sessions), or by choosing the "Reset All Users" link (Administer > User Sessions > Manage User Sessions) to do this for all past sessions.
    Multiple IP addresses for sessions can happen when a user logs in from different machines. For example, a person may login at their desk, but then go to a colleagues workstation to discuss a project, and log in from there. Doing so will leave them with multiple IP addresses in the session records.
    Hope this helps
    Regards,
    Sachin Gupta

  • How to open an InDesign file from CMIS repository?

    We are using CS SDK 2.0 , looking to use CMIS to keep versionning of .indd file. The uss case as following:
    form our de4veloped InDesign pluging, user click a button
    the button will open a .indd file from cmis repository
    plugin check-out the file, open it within InDesign IDE
    user make changes
    user make save
    the plugin export a pdf and swf files from the current document, if the files exists it will update, aslo on CMIS repo to keep also versions of exported pdf and swf, if files not exist in first time .. it will create
    when user clos the document , it will check it in.
    the problem there is no sufficent sample code for, even was thinking to use Adobe Drive, but there is no Adobe Drive SDK for Flex.
    i used to fuse the sdk, but
    private function getFileByPath(sPath:String):Fileable {
    appStatus = ">> get File By Path";
    message = "";
    viewEnabled = false;
    var request:GetObjectByPathRequest = new GetObjectByPathRequest(session);
    var oFileable:Fileable;
    request.path = sPath;
    request.execute(onSuccess, onError);
    function onSuccess (event:GetObjectByPathResponse) : void {
    oFileable = event.object;
    //var oDoc2:Document = new Document(event.object);
    doc = event.object as Document ;
    //children = new ArrayCollection(vectorToArray(event.target));
    appStatus = ">> getFileByPath : Success";
    viewEnabled = true;
    return oFileable;
    private function checkOutFile(oFile:Document):Document{
    appStatus = ">> Check Out File";
    message = "";
    viewEnabled = false;
    var request:CheckoutRequest = new CheckoutRequest(session);
    request.object = doc;
    var oDocument:Document;
    request.execute(onSuccess, onError);
    function onSuccess (event:CheckoutResponse) : void {
    oDocument = event.object ;
    appStatus = ">> Check Out File : Success";
    viewEnabled = true;
    return oDocument;
    private function openTestFile():void {
                                            appStatus = "Open Test File";
                                            message = "";
                                            viewEnabled = false;
                                            var oFile:Fileable  = getFileByPath("/Collaboration/test.indd");
                                            //var oDoc2:Document = new Document(oFile);
                                            var oDoc:Document  = checkOutFile(doc);
    i do not know what method in the CS SDK to open document fom active window and  how to map CMIS Document to com.adobe.indesign Document ?

    Dear Seoras
    i fixed the to return the cmis path:
    public function resolveRemotePath(file:File):String
                                  if (file.nativePath.indexOf(LOCAL_FILE_CACHE.nativePath) != 0)
                                            return null;
                                  var remoptePath:String =file.nativePath.substr(LOCAL_FILE_CACHE.nativePath.length);
                                  trace("resolveRemotePath [11] : "+ remoptePath);
                                  if(File.separator!="/") {
                                            //var pattern:RegExp = /(\/)/g;
                                            var pattern:RegExp = /(\\)/g;
                                            remoptePath =  remoptePath.replace(pattern ,"/");
                                            trace("resolveRemotePath [22] : "+ remoptePath);
                                  return remoptePath;
    i have another issue, why everytime update the generated pdf it creates new pdf file with same name in the cmis repo .. does the pdf is not updatable over the cmis service ???
    Regards

Maybe you are looking for

  • Unable to install File Upload Utility in AIX system

    Hello, I installed the Forms File Upload Utility, through CGI, following the steps described in the html document provided with the utility. That is: - i copied the files UploadClient.jar.sig and UploadServer.jar to the directory /ias102/6iserver/for

  • How can I test the HBA driver?

    Hi. I'm a graduate student majoring in Computer Science. I'm interested in writing driver drivers, especially SCSI driver driver. I modified HBA driver and compiled. but I don't know how to test it To my thinking because HBA driver is automatically l

  • Skip Lines (Enter Key) in Adobe Story AV Scripts

    Hello, I'm working with Adobe Story online (not desktop application). I just began an AV script. My project requires that the visual aspects only come in every once in a while, and I need them to match up with the text they coincide with. I don't kno

  • (BUG?) Migrating updatable views trouble

    I have some simple updatable views created as: select * from table where primary_key in (select ...) which are working well on database Release1 (10.1.0.3.0 - Linux). After moving application to Release2 (10.2 - Microsoft Windows, 32-Bit) all these v

  • Inspector and Library Windows Disappearing?

    Hey everyone- hopefully someone can help me. I have started working on a project that I am using lower thirds that I created in Motion. I haven't opened Motion in about a month or two but now a dead line is approaching and i need to get them done. I