Dual Executable​s appear

I have captured the TestStand 3.5 OI LabVIEW files in a LabVIEW 8.20 project file.  I've customized the OI a bit, and I use the Build Specifications area to build an executable.  When I run the executable, my customized OI appears, I can load sequence files, run, etc.  Down at the Windows status area, however, I notice that have two execs running - I've attached the bitmap (note: the names have been changed for proprietary reasons).  Anyway, the real problem is that when I exit my OI, one of the executables continues to run.  I have to go to the Windows Task Manager to kill it.  Any ideas?
Attachments:
DualExec.PNG ‏70 KB

Let me start with the two names of the executables ... I modified the [TSUI_OI_MAIN_PANEL]
TESTSTAND_OPERATOR_INTERFACE in UIControlOperatorInterfaceStrings.ini in C:\Program Files\National Instruments\TestStand 3.5\Components\User\Language\English so as to get the different heading.  So, instead of "TestStand Operator Interface", it has my custom name.  On the machine where things work, I changed that constant to "MrBean OI" for a test.  So (again, on the working PC), when I dbl-clk on the "TE Exec" shortcut, I see (down at the Windows status bar)
TE Exec
TestStand Operator Interface
MrBean OI
then the reverse when I click exit.  All of this occurs in ONE panel on the status bar (if you know what I mean)
At the machine where things don't work (as well), this is what I see when I dbl-clk the TE Exec shortcut -
TE Exec      MrBeanOI         LabVIEW (if I run some tests)
                                              Getting Started
When I dbl-clk Exit,
TE Exec
Other than TE Exec which never goes away (until I kill it using the Task Manager), the other panels disappear too quickly to see if they change text.  I assume MrBeanOI temporarily transitions to TestStand Operator Interface, then exits.
Hopefully this helps you help me

Similar Messages

  • Dual 2ghz G5 appears with only one processor in Activity Monitor

    Here's something I haven't seen before... a dual 2ghz G5 appears as a single processor machine in Activity Monitor. I ran the hardware test from the CD and everything checked out fine. I then rebooted and zapped PRAM using commandoption+PR... I held the keys down for a while and zapped it three times. System booted up and showed both procs in Activity Monitor. Restarted system again and now shows only a single CPU.
    Anyone seen this before?
    TIA!
    G5 dual 2ghz   Mac OS X (10.4.8)  

    Did you ever use CHUD or Open Firmware to disable a cpu?
    My preference with G5s is to boot into Open Firmware and
    reset-nvram
    set-defaults
    reset-all
    which should and is easier to rebuild the device tree rather than zap pram (once is enough, older OldWorld systems urban legend was you needed multiple reboots to be sure).

  • I am trying to download itunes from the web, but meanwhile I am executing the installation error 2202 appears. Does this problem happens to anyone?

    I have a problem when I am trying to download itunes from the itunes web page. After i download the software and execute it appears error 2202 and it is not possible to continue. Does anyone knows how to solve this problem. Francesc from Barcelona

    Hi amazer55,
    If you are having issues downloading and installing iTunes, or if your computer for some reason thinks you have already installed iTunes when you have not, you may want to try manually removing all of the associated iTunes files and reinstalling the application entirely from scratch. You may find the following article helpful:
    Apple Support: Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    Regards,
    - Brenden

  • PL/SQL: Executing a procedure from within another procedure

    Hello, I'm a newbie and I need help on how to execute procedures from within another procedure. The procedure that I call from within the procedure have return values that I want to check.
    I tried: EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    but I get the error message:
    PLS-00103: Encountered the symbol "USER_GET_FORUM_INFO" when expecting one of the following::= . ( @ % ; immediate
    The symbol ":=" was substituted for "USER_GET_FORUM_INFO" to continue.
    And when I tried: EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    I get the error message:
    PLS-00222: no function with name 'USER_GET_FORUM_INFO' exists in this scope
    PL/SQL: Statement ignored
    The procedure USER_GET_FORUM_INFO exists. (don't understand why it says "no FUNCTION with name", it's a procedure I'm executing)
    I'm stuck so thanks for any help...
    Below is all the code. I'm using Oracle 9i on RedHat Linux 7.3.
    ================================================================================
    CREATE OR REPLACE PROCEDURE user_forum_requestsaccess (
    p_forumid IN NUMBER,
    p_requestmessage IN VARCHAR2
    AS
    var_forumid NUMBER;
    var_forum_exists NUMBER;
    var_forum_access NUMBER;
    request_exists NUMBER;
    var_forumname VARCHAR2(30);
    FORUM_DOESNT_EXIST EXCEPTION;
    FORUM_USER_HAS_ACCESS EXCEPTION;
    FORUM_REQUEST_EXIST EXCEPTION;
    BEGIN
    SELECT SIGN(NVL((SELECT request_id FROM forum.vw_all_forum_requests WHERE forum_id = p_forumid AND db_user = user),0)) INTO request_exists FROM DUAL;
    EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    IF var_forum_exists = 0 THEN
    RAISE FORUM_DOESNT_EXIST;
    ELSIF var_forum_access = 1 THEN
    RAISE FORUM_USER_HAS_ACCESS;
    ELSIF request_exists = 1 THEN
    RAISE FORUM_REQUEST_EXIST;
    ELSE
    INSERT INTO tbl_forum_requests VALUES (SEQ_TBL_FORUM_REQ_REQ_ID.NEXTVAL, SYSDATE, p_requestmessage, p_forumid, user);
    INSERT INTO tbl_forum_eventlog VALUES (SEQ_TBL_FORUM_EVNTLOG_EVNT_ID.NEXTVAL,SYSDATE,1,'User ' || user || ' requested access to forum ' || var_forumname || '.', p_forumid,user);
    COMMIT;
    END IF;
    EXCEPTION
    WHEN
    FORUM_DOESNT_EXIST
    THEN RAISE_APPLICATION_ERROR(-20003,'Forum doesnt exist.');
    WHEN
    FORUM_USER_HAS_ACCESS
    THEN RAISE_APPLICATION_ERROR(-20004,'User already have access to this forum.');
    WHEN
    FORUM_REQUEST_EXIST
    THEN RAISE_APPLICATION_ERROR(-20005,'A request to this forum already exist.');
    END;
    GRANT EXECUTE ON user_forum_requestsaccess TO forum_user;
    ================================================================================
    Regards Goran

    you don't have to use execute when you want to execute a procedure (only on sql*plus, you would use it)
    just give the name of the funtion
    create or replace procedure test
    as
    begin
        dbms_output.put_line('this is the procedure test');
    end test;
    create or replace procedure call_test
    as
    begin
        dbms_output.put_line('this is the procedure call_test going to execute the procedure test');
        test;
    end call_test;
    begin
        dbms_output.put_line('this is an anonymous block calling the procedure call_test');
        call_test;
    end;
    /

  • [Solved] Reference apex_application.g_fXX in "execute immediate" statement

    Hi!
    I created a dynamically generated tabular form - the number of columns is not known in advanced. Each cell of the form is a text item generated with apex_item.text().
    I want to write an after-submit process that saves the values from the form into a database table. In this process I already know how many columns there are in the report so I want to do the following:
    --for each row...
    for i in 1..apex_application.g_f01.count loop
      -- and for each column in that row (number of columns is in v_col_count)
      for j in 1..v_col_count loop
        -- get the value of text item
        v_query := 'select apex_application.g_f0' || j || '(' || i || ')' || ' from dual';
        execute immediate v_query into v_value;
        -- now do some DML with v_value
      end loop;
    end loop;The problem is that I get an error: ORA-06553: PLS-221: 'G_Fxx' is not a procedure or is undefined where xx is the number from the generated query.
    My question is - am I doing something wrong or is is just not possible to reference apex_application.g_fxx in "execute immediate"? Will I have to manually check for all 50 possibilites of apex_application.g_fxx? Is there another way?
    TIA,
    Jure

    Well now I know what was wrong and what you were trying to tell me - apex_application.g_fxx is not visible in "plain" SQL. And now I also have a solution to this problem. The point is to wrap the select statement with begin - end block so that the statement is rendered as pl/sql:
    --for each row...
    for i in 1..apex_application.g_f01.count loop
      -- and for each column in that row (number of columns is in v_col_count)
      for j in 1..v_col_count loop
        -- get the value of text item
        v_query := 'begin select apex_application.g_f0' || j || '(:i)' || ' into :x from dual; end;';
        execute immediate v_query using i, out v_value;
        -- now do some DML with v_value
      end loop;
    end loop;This works great :).
    Jure

  • Getting an error while executing ddl commands using dblink

    Hi,
    i am using Oracle9iR2 Version.
    i have created a procedure like below to execute ddl commands on remote database through dblink using dbms_sql.
    CREATE OR REPLACE PROCEDURE run_remote_ddl (p_dblink VARCHAR2, qry VARCHAR2)
    AS
    c_handle NUMBER;
    feedback INTEGER;
    stat VARCHAR2 (2000);
    BEGIN
    stat := 'select DBMS_SQL.open_cursor' || p_dblink || ' from dual';
    EXECUTE IMMEDIATE stat
    INTO c_handle;
    stat :=
    'begin DBMS_SQL.parse'
    || p_dblink
    || ' ('
    || c_handle
    || ','''
    || qry
    || ''', DBMS_SQL.v7); end;';
    EXECUTE IMMEDIATE stat;
    stat :=
    ' select DBMS_SQL.EXECUTE' || p_dblink || '(' || c_handle
    || ') from dual';
    EXECUTE IMMEDIATE stat
    INTO feedback;
    stat :=
    'declare x integer; begin x:= :1; DBMS_SQL.close_cursor'
    || p_dblink
    || '(x); end;';
    EXECUTE IMMEDIATE stat
    USING c_handle;
    END;
    when i run this procedure like below
    begin
    run_remote_ddl ('@dblink', 'create table scott.ttt(num number)');
    end;
    got an error:
    ORA-06553: PLS-103: Encountered the symbol ".2" when expecting one of the following:
    . ( * @ & = - + ; < / > at in is mod not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between ||
    The symbol ". was inserted before ".2" to continue.
    ORA-06512: at RUN_REMOTE_DDL", line 9
    ORA-06512: at line 2
    Please tell me how to resolve this.
    Thanks in advance.

    Hi,
    >
    ORA-06553: PLS-103: Encountered the symbol ".2" when expecting one of the following:
    . ( * @ & = - + ; < / > at in is mod not rem
    <an exponent (**)> or != or ~= >= <= <> and or like
    between
    >
    Hope you are not typing 2 instead of @ as both are on the same key
    Can you run the following and see what is happening
    CREATE OR REPLACE PROCEDURE run_remote_ddl (p_dblink VARCHAR2, qry VARCHAR2)
    AS
    c_handle NUMBER;
    feedback INTEGER;
    stat VARCHAR2 (2000);
    BEGIN
    dbms_output.put_line(p_dblink);
    stat := 'select DBMS_SQL.open_cursor@dblink from dual';
    --stat := 'select DBMS_SQL.open_cursor from dual';
    EXECUTE IMMEDIATE stat
    INTO c_handle;
    END;
    exec run_remote_ddl('@dblink', 'create table scott.ttt(num number)');Regards
    Edited by: yoonus on Feb 20, 2013 3:47 AM

  • Error in executing dynamic SQL

    i am getting error in executing dynamic SQL
    declare
    vr_RenewService NUMBER(10,0);
    vr_sql VARCHAR2(50);
    begin
    vr_sql:='Select Case
    when 5 <= 365 Then 1
    When 1= 0 Then 1
    else 0 end into' || TO_CHAR(vr_RenewService) || 'from dual;';
    execute immediate vr_sql;
    --dbms_output.put_line(vr_RenewService);
    end;
    ERROR
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 6
    06502. 00000 - "PL/SQL: numeric or value error%s"
    *Cause:   
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    i too have tried this before you posted this solution but getting error message
    declare
    vr_RenewService NUMBER(10,0);
    vr_sql VARCHAR2(100);
    begin
    vr_sql:='Select Case
    when 5 <= 365 Then 1
    When 1= 0 Then 1
    else 0 end from dual;';
    execute immediate vr_sql into vr_RenewService;
    --dbms_output.put_line(vr_RenewService);
    end;
    ORA-06512: at line 11
    00911. 00000 - "invalid character"
    *Cause:    identifiers may not start with any ASCII character other than
    letters and numbers. $#_ are also allowed after the first
    character. Identifiers enclosed by doublequotes may contain
    any character other than a doublequote. Alternative quotes
    (q'#...#') cannot use spaces, tabs, or carriage returns as
    delimiters. For all other contexts, consult the SQL Language
    Reference Manual.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Execute immediate on DBMS_METADATA.GET_DDL with error of ORA-01031: insufficient privileges

    I want to mirror a schema to a existing schema by creating DDL and recreate on the other schema with same name.
    I wrote the code below:
    create or replace
    PROCEDURE                                    SCHEMA_A."MAI__DWHMIRROR"
    AS
    v_sqlstatement CLOB:='bos';
    str varchar2(3999);
    BEGIN
      select
        replace(
          replace(replace(
          replace(DBMS_METADATA.GET_DDL('TABLE','XXXX','SCHEMA_A'),'(CLOB)',''),';','')
        ,'SCHEMA_A'
        ,'SCHEMA_B'
      into v_sqlstatement
      from dual;
      select  CAST(v_sqlstatement AS VARCHAR2(3999)) into str from dual;
      execute immediate ''||str;
    END;
    And Executing this block with below code:
    set serveroutput on
    begin
    SCHEMA_A.MAI__DWHMIRROR;
    end;
    But still getting the following error code:
    Error report:
    ORA-01031: insufficient privileges
    ORA-06512: at "SCHEMA_A.MAI__DWHMIRROR", line 47
    ORA-06512: at line 2
    01031. 00000 -  "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
               without the appropriate privilege. This error also occurs if
               attempting to install a database without the necessary operating
               system privileges.
               When Trusted Oracle is configure in DBMS MAC, this error may occur
               if the user was granted the necessary privilege at a higher label
               than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
               the required privileges.
               For Trusted Oracle users getting this error although granted the
               the appropriate privilege at a higher label, ask the database
               administrator to regrant the privilege at the appropriate label.

    user5199319 wrote:
    USER has DBA Role
    when all  else fails Read The Fine Manual
    DBMS_METADATA

  • Pass Pl/sql table into USING clause in EXECUTE IMMEDIATE statment

    Getting error when I try to pass the PL/SQL table into USING clause in EXECUTE IMMEDIATE statment:
    Declare
    result NUMBER;
    TYPE values_tab IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
    lv_tab values_tab;
    lv_exp varchar2(300);
    lv_exec varchar2(300);
    BEGIN
    lv_tab(1) := 5;
    lv_tab(2) := 48;
    lv_tab(3) := 7;
    lv_tab(4) := 6;
    lv_exp := ':b1+:b2+(:b3*:b4)';
    lv_exec := 'SELECT '||lv_exp ||' FROM DUAL';
    EXECUTE IMMEDIATE
    lv_exec
    INTO
    result
    USING
    lv_tab;
    DBMS_OUTPUT.PUT_LINE(result);
    END;
    Error at line 1
    ORA-06550: line 20, column 12:
    PLS-00457: expressions have to be of SQL types
    ORA-06550: line 15, column 8:
    PL/SQL: Statement ignored
    I am trying to evaluate the expression ":b1+:b2+(:b3*:b4)" which is stored in table. This table has different expressions (around 300 expressions). I want to use the bind variables in expression because each expression evaluated thousand of time may be more in some case. If I don't use bind variable then it fill shared pool.
    Is there any way I can pass the USING (IN) parameters dynamically instead of writing "USING lv_tab(1), lv_tab(2), lv_tab(3), lv_tab(4)"? As number of input parameters change depend on the expression in the table.
    If not possible please suggest any other ideas/approches
    Please help..
    Edited by: satnam on Jun 11, 2009 11:50 AM

    Well, you keep changing reqs faster I can keep up. Anyway, assuming N-th bind variable (left-to-right) corresponds to collection N-th element:
    Declare
        result NUMBER;
        lv_tab values_tab := values_tab();
        lv_exp varchar2(300);
        lv_exec varchar2(300);
        lv_i number := 0;
    BEGIN
        lv_tab.extend(4);
        lv_tab(1) := 5;
        lv_tab(2) := 48;
        lv_tab(3) := 7;
        lv_tab(4) := 6;
        lv_exp := ':5000135+:5403456+(:5900111*:5200456)';
        lv_exec := lv_exp;
        While regexp_like(lv_exec,':\d+') loop
          lv_i := lv_i + 1;
          lv_exec := REGEXP_REPLACE(lv_exec,':\d+',':b(' || lv_i || ')',1,1);
        end loop;
        lv_exec := 'BEGIN :a := ' || lv_exec || '; END;';
    DBMS_OUTPUT.PUT_LINE(lv_exec);
    EXECUTE IMMEDIATE lv_exec USING OUT result,IN lv_tab;
    DBMS_OUTPUT.PUT_LINE(result);
    END;
    BEGIN :a := :b(1)+:b(2)+(:b(3)*:b(4)); END;
    95
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Executing function inside a procedure

    I have a function like fun_a(a varchar) which returns a number
    I execute the function in sql prompt by select fun_a('hello') from dual;
    Now i have to execute that function inside a procedure and return the output of the function to a variable like the following
    create or replace procedure x is
    a number;
    vsql varchar2(255);
    i varchar2(40):='hello';
    begin
    vsql :='select fun_a('||i||') from dual';
    execute immediate VSQL INTO a;
    dbms_output.put_line(a);
    end;
    I am not getting the output . Please help me in this

    Or even:
    CREATE OR REPLACE PROCEDURE x
    IS
    vsql  VARCHAR2(255);
    i     VARCHAR2(40) := 'EMP';
    i1    VARCHAR2(40) := 'EMPNO';
    a     NUMBER := primary_check_fun(i, i1);
    BEGIN
    dbms_output.put_line(a);
    END;or just for fun,
    CREATE OR REPLACE PROCEDURE x
    IS
    vsql  VARCHAR2(255);
    i     VARCHAR2(40) := 'EMP';
    i1    VARCHAR2(40) := 'EMPNO';
    BEGIN
    dbms_output.put_line(primary_check_fun(i, i1));
    END;
    Well if we're going to extremes Will we could look at it and say that the parameters are pre-defined and just have...
    exec dbms_output.put_line(primary_check_fun('EMP','EMPNO'));
    ;)

  • Display results from dynamic query created and executed inside procedure

    Hi;
    I have created this code:
    CREATE OR REPLACE PROCEDURE RunDynamicQuery(Var1 IN VARCHAR2, Var2 IN VARCHAR2, VAR3 IN VARCHAR2) AS
    -- Do something
    -- That ends up with a variable holding a query.... (just an example)
    MainQuery :='select sysdate from dual';
    end RunDynamicQuery;
    How can I run this procedure and see the result on the dymanic query generated inside it?
    BEGIN
    compare_tables_content('VAR1','VAR2','VAR3');
    END;
    Expected Output for this given example:
    20-05-2009 11:04:44 ( the result of the dymanic query inside the procedure variable MainQuery :='select sysdate from dual';)
    I tested with 'execute immediate':
    CREATE OR REPLACE PROCEDURE RunDynamicQuery(Var1 IN VARCHAR2, Var2 IN VARCHAR2, filter IN VARCHAR2) AS
    -- Do something
    -- That ends up with a variable holding a query.... (just an example)
    MainQuery :='select sysdate from dual';
    execute immediate (MainQuery );
    end RunDynamicQuery;
    BEGIN
    compare_tables_content('VAR1','VAR2','VAR3');
    END;
    Output:"Statement processed'' (no sysdate displayed ! )
    Please consider that the collums in the query are always dynamic... PIPELINE Table would not work because I would need to define a container, example:
    CREATE OR REPLACE TYPE emp_tabtype AS TABLE OF emp_type;
    FUNCTION RunDynamicQuery (p_cursor IN sys_refcursor)
    RETURN emp_tabtype PIPELINED
    IS
    emp_in emp%ROWTYPE;
    BEGIN
    LOOP
    FETCH p_cursor
    INTO emp_in;
    EXIT WHEN p_cursor%NOTFOUND;
    PIPE ROW (...)

    That would be a nice solution, thanks :)
    ''For now'' I implemented like this:
    My dynamic query now returns a single string ( select col1 || col2 || col3 from bla)
    This way I don't have dynamic collumns issue, and from business side, this ''string'' format works for them.
    This way I can use the pipelines to get the result out...
    OPEN myCursor FOR MainQuery;
    FETCH myCursor
    INTO myRow;
    WHILE (NOT myCursor%notFound) LOOP
    PIPE ROW(myRow);
    FETCH myCursor
    INTO myRow;
    END LOOP;
    CLOSE myCursor;

  • How to execute dynamic if statement...

    Hi All,
    My PL/SQL Blocks looks like this
    declare
    i_string :='if 3>20 then 1 else 2 end if;' varchar2(100);
    begin
    end;
    Between begin and end i want a piece of code which executes that if statement and sends 2 as output in dbms_output.put_line since 3 is not >20 .Basically i want to know how to execute dynamic if statement.Please help
    Thanks,
    Preethi

    Hi,
    i agree with Cyn. Dynamic SQL is often a bad idea. Try to avoid it.
    Dynamic PL/SQL is even worse. If you really must do something dynamic, at least try to cast it as SQL rather than PL/SQL.
    Does this do what you want?
    CREATE OR REPLACE FUNCTION     eval_case
    (     in_txt     IN     VARCHAR2
    RETURN     NUMBER
    DETERMINISTIC
    IS
         return_val     NUMBER;
         sql_txt          VARCHAR2 (1000);
    BEGIN
         sql_txt := 'SELECT  CASE '
              ||           in_txt
              || '         END'
              || '  FROM  dual';
         EXECUTE IMMEDIATE sql_txt INTO return_val;
         RETURN     return_val;
    END     eval_case;
    SHOW ERRORSYou might use the function above like this:
    declare
         i_string  varchar2(100) :='WHEN 3>20 THEN 1 ELSE 2';
    begin
         dbms_output.put_line (  TO_CHAR (eval_case (i_string))
                        || ' = results of eval_case ('''
                        || i_string
                        || ''')'
    end;
    /

  • Autosaved as Unix Executable Files after editing font size?

    When I open a .txt file in TextEdit, and change the font, in the Finder I see a new Unix Executable File appear, with (Autosaved) after the file name. This is in addition to the original .txt file - so there are now 2 files of the same name showing.
    However, when I manually save the file, the Unix exe file disappears from the Finder, leaving the newly saved .txt file.
    Is this normal? If not, please let me know what else I can try to fix it. I've already tried both suggestions in this thread & neither of them worked.
    Thanks!

    Ok I noticed that TextEdit preferences shows an option to "delete the automatic backup file" so that's why it's disappearing...
    ...but what happens if TextEdit quits on me unexpectedly (which it has before)? Will I be able to open the autosaved Unix executable file with TextEdit or will it be "unrecognized?"
    If anyone can give me confirmation that their autosaved files are Unix exe files and/or if they've been able to open the Unix exe backup files in the program they were created from, that would help.

  • Multiple calls to execute() on an OperationBinding fail after first call

    (I am using jDeveloper v11.1.1.5.0.)
    I have a method in a ViewObjectImpl class that does a simple "findByKey", using a string that is passed to the method as the key, and returns the found row. I have the method bound to a page, and in a backing bean, I am trying to call the method. I get a handle to the OperationBinding for the method, get the ParameterMap object, and add (put) a parameter of the string I want to pass to the method. I then call execute() on the OperationBinding and get back the Row (if found).
    This all works the first time.
    The problem is that in my bean, I am actually doing this iteratively. The first time, everything works. The second time I call execute(), it appears that the parameter map is not getting passed to the method, as all of the parameters are 'null' from within the method.
    Below is the code for the method in the ViewObjectImpl class for my view object:
        public Boolean isCommonWord(String word) {
            System.out.println("Checking word: " + word);
            if (word == null) return false; // short-circuit for null values
            Object[] keys = new Object[1];
            keys[0] = word.toUpperCase();
            Row[] rows = this.findByKey(new Key(keys), 1);
            System.out.println("Found " + rows.length + " matching words.");
            if (rows.length > 0) System.out.println("Word row 1: " + ((CommonWordsLOVRowImpl)rows[0]).getWord());
            return (rows.length == 1);
        }As you can see, "word" is the single parameter to the method. I dump the value to the console for debug, then (if not null) use it to create a Key object to use in findByKey, then return the row, if found.
    Here's the relevant code from my bean:
                    OperationBinding isCommonWord = ADFUtils.findOperation("isCommonWord");
                    params = isCommonWord.getParamsMap();
                    // Loop through all words in the string 'searchStr'
                    StringTokenizer st = new StringTokenizer(searchStr);
                    Collection<String> wordList = new HashSet<String>();
                    while (st.hasMoreTokens()) {
                        String s = st.nextToken();
                        _logger.finest(this.getClass().getName(), "findUserAndPlan","Checking word: " + s);
                        // Look up word
                        params.put("word", s);
                        _logger.finest(this.getClass().getName(), "findUserAndPlan","Parameters: " + params.toString());                   
                        if (!(Boolean)isCommonWord.execute()) {
                            // nope - add to collection
                            _logger.finest(this.getClass().getName(), "findUserAndPlan","Word OK");
                            boolean add = wordList.add(s);
                    }If 'searchStr' is "delta 36 inc", my output on the console is this:
    <CreateAccountBean> <findUserAndPlan> Checking word: delta
    <CreateAccountBean> <findUserAndPlan> Parameters: {word=delta}
    Checking word: delta
    Found 0 matching words.
    <CreateAccountBean> <findUserAndPlan> Word OK
    <CreateAccountBean> <findUserAndPlan> Checking word: 36
    <CreateAccountBean> <findUserAndPlan> Parameters: {word=36}
    Checking word: null
    <CreateAccountBean> <findUserAndPlan> Word OK
    <CreateAccountBean> <findUserAndPlan> Checking word: inc
    <CreateAccountBean> <findUserAndPlan> Parameters: {word=inc}
    Checking word: null
    <CreateAccountBean> <findUserAndPlan> Word OKAs you can see, it calls the method three times, once for each word. In all three calls, you can see that the Parameters Map has one item in the map called "word", and it is set to the actual word from the searchStr (e.g. "delta", then "36", then "inc"). However the very next line is the output from within the method itself. The first time, the method shows it got the word ("Checking word: delta"), but in calls 2 and 3, the value it receives for 'word' is null! This is the problem.
    I'm sure I'm doing something wrong, but don't know what that is! :-) Thanks in advance for any suggestions.
    Edited by: Karl C on Mar 21, 2012 5:04 AM

    So, after sleeping on it, and having a clear(er) head this morning, I tried a few things. I was obviously setting my value in the "params" map, but it was not getting through to the method after the first call. So, I theorized that perhaps I couldn't reuse the "params" map on each call, and that the framework generated a new parameter map for each call.
    To test, I moved the one line of code where I get a handle to the parameter map to be inside the loop, as follows:
                    OperationBinding isCommonWord = ADFUtils.findOperation("isCommonWord");
                    // Loop through all words in 'searchStr'
                    StringTokenizer st = new StringTokenizer(searchStr);
                    Collection<String> wordList = new HashSet<String>();
                    while (st.hasMoreTokens()) {
                        String s = st.nextToken();
                        _logger.finest(this.getClass().getName(), "findUserAndPlan","Checking word: " + s);
                        // Look up word
                        params = isCommonWord.getParamsMap(); // <<=== This is the line I moved
                        params.put("word", s);
                        _logger.finest(this.getClass().getName(), "findUserAndPlan","Parameters: " + params.toString());                   
                        if (!(Boolean)isCommonWord.execute()) {
                            // nope - add to collection
                            _logger.finest(this.getClass().getName(), "findUserAndPlan","Word OK");
                            boolean add = wordList.add(s);
                    }Guess what? It worked!
    So, I solved my own problem. I hope that this post perhaps can save someone else from beating their head against a wall for hours wondering why things aren't working! :-)

  • Using oci_fetch on dual is returning nothing.

    I am prototyping some PHP to Oracle applcations. I have a simple connection setup to fetch data on of dual, but nothing is being returned. The connection is occurring since no errors are generated.
                   <?
                   print'<tr>';
                        $db='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ike.arsc.uscg.mil)(PORT = 1521))
                             (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=attest.arsc.uscg.mil)))';
                        $conn = oci_connect("scott","tiger",$db) or die;
                        if (!$conn)
                             $e = @oci_error();
                        $stmt = @oci_parse($conn, "select * from dual");
                        if (!$stmt)
                             $e = @oci_error($conn); // For oci_parse errors pass the connection handle
                             echo htmlentities($e['message']);
                             echo "<td>Broke</td>";
                        $r = @oci_execute($stmt);
                        if (!$r)
                             $e = @oci_error($stmt); // For oci_execute errors pass the statementhandle
                             echo htmlentities($e['message']);
                             echo "<td>Broke</td>";
                        while (@oci_fetch($r))
                                            print '<td>---- data ----</td>';
                             print '<td>'. ociresult($stmt).'</td>';
                        print '<td>test</td>';
                        print '</tr>';
                   ?>
    What am I doing wrong?

    This will work for you:
    <?php
    // Connect to the database.
    if ($c = @oci_connect("<i>username</i>","<i>passwd</i>","<i>oracle_sid</i>"))
    // Parse a query to a resource statement.
    $s = oci_parse($c,"SELECT * FROM dual");
    // Execute query without an implicit commit.
    oci_execute($s,OCI_DEFAULT);
    // Read fetched headers.
    for ($i = 1;$i <= oci_num_fields($s);$i++)
    print oci_field_name($s,$i).'&lt;br /&gt;';
    // Read fetched data.
    while (oci_fetch($s))
    for ($i = 1;$i <= oci_num_fields($s);$i++)
    print oci_result($s,<b>$i</b>).'&lt;br /&gt;';
    // Disconnect from database.
    oci_close($c);
    else
    // Assign the OCI error and format double and single quotes.
    $errorMessage = oci_error();
    print htmlentities($errorMessage['message'])."&lt;br /&gt;";
    ?>
    Good luck, Michael

Maybe you are looking for

  • Satellite P845T-107 with Win 8 PRO but after Win 8.1 update it isn't PRO

    Yesterday at Saturn Salzburg bought the notebook. It has on the bottom a PRO Windows 8 label. Unfortunately, I first initiated the update to 8.1 and then only a backup created on a USB stick. Windows has muddled up the the Pro version after Win 8.1 u

  • Not able to recognize any video/audio devices using jmf and java soun

    Hi , I need one help from your side. Here I am expecting some clarifications from you. Before that let you my environement. My working environment : Eclipse tool and added jmf jar to my project I did not do any thing more. If any thing I need to do j

  • Remote Diosc OS X 10.8.3

    Hello, I downloaded the update 10.8.3.  I am trying to use remote disc from my windows computer to my macair.  I downloaded the program on the windows computer and it worked fine.  When I go to preferences on my mac there is not a DVD/CD box to check

  • Will adding global access change my domestic plan?

    Will adding global access to my phone now change my domestic calling plan and if so should I wait until I'm out of the country to change it?

  • Any way to install Windows 7 by copying the install disk to a HD first?

    Any way to install Windows 7 by copying the install disk to a HD first? I have HDs installed in my optical bays. I can copy the Win 7 install disk to a new freshly formatted HD if needed. I am unable to install from my Firewire DVD. It will not work.