Missing IN or OUT parameter problem

I have really weird behaviour in only one call to stored procedure.
Sometimes this problem is stable. Sometimes it starts working after passing
the method once in a debuger. I can change sql to call different stored
procedure and it doesn't affect the behavioir. This is WLS813 and Oracle 9i.
I would appreciate any advice.
The source code is simple and is used in multiple places in the application
(I tried its different variations with the same result):
DataSource ds = EJBContext.getInstance().getDefaultDataSource();
conn = ds.getConnection();
stmt = conn.prepareCall("{ ? = development_pkg.Get_AddUnit_BlockList ( ?,
stmt.registerOutParameter(1, OracleTypes.CURSOR);
stmt.setObject(2, developmentId);
stmt.setObject(3, isCallerInAllSocietyViewRole() ? null :
getCallerUserEntity().getSocietyId());
stmt.setString(4, getCallerName());
stmt.execute(); - this line generates an exception
Exception if isCallerInAllSocietyViewRole() is true (1st call after
restarting the server):
java.sql.SQLException: Missing IN or OUT parameter at index:: 2 at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at
oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1678)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
at
oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
at
weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
at
Exception if isCallerInAllSocietyViewRole() is true (any consecuent call):
java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at
oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1539)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
at
oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
at
weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
at
Exception if isCallerInAllSocietyViewRole() is false:
java.lang.NullPointerException at
oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:728) at
oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:787)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
at
oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
at
weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
at ...
Thanks,
Mikhail Stolpner

Hi Joe,
Thank you for your reply. I tried multiple different ways: setNull,
setObject. The behavior is the same. The following is the original code
(before I played with it) and it worked fine in WLS812:
DataSource ds = EJBContext.getInstance().getDefaultDataSource();
conn = ds.getConnection();
stmt = conn.prepareCall("{ ? = call development_pkg.Get_AddUnit_BlockList
stmt.registerOutParameter(1, OracleTypes.CURSOR);
stmt.setInt(2, developmentId.intValue());
if (isCallerInAllSocietyViewRole()) {
stmt.setNull(3, OracleTypes.INTEGER);
} else {
stmt.setInt(3, getCallerUserEntity().getSocietyId().intValue());
stmt.setString(4, getCallerName());
stmt.execute();
I created a BEA case but I think that it would be very difficult to
reproduce the problem as the same code works fine for me in all other
cases!!! And despite spending a lot of time I couldn't figure out why it is
failing in this particular case. This is not related to the stored procedure
as I changed the sql and it didn't change anything.
Sincerely,
Mikhail Stolpner
"Joe Weinstein" <[email protected]> wrote in message
news:[email protected]...
Hi. So are you saying it always fails with a setObject(3, null), or only
after first running it the other way? This sounds like a problem with the
oracle drivers setObject() with null as input. What I would like to see is
if this works:
if ( isCallerInAllSocietyViewRole() )
stmt.setNull(3, Types.VARCHAR );
else
stmt.setObject( 3, getCallerUserEntity().getSocietyId() );
Joe
Mikhail wrote:
I have really weird behaviour in only one call to stored procedure.
Sometimes this problem is stable. Sometimes it starts working after
passing the method once in a debuger. I can change sql to call different
stored procedure and it doesn't affect the behavioir. This is WLS813 and
Oracle 9i. I would appreciate any advice.
The source code is simple and is used in multiple places in the
application (I tried its different variations with the same result):
DataSource ds = EJBContext.getInstance().getDefaultDataSource();
conn = ds.getConnection();
stmt = conn.prepareCall("{ ? = development_pkg.Get_AddUnit_BlockList
stmt.registerOutParameter(1, OracleTypes.CURSOR);
stmt.setObject(2, developmentId);
stmt.setObject(3, isCallerInAllSocietyViewRole() ? null :
getCallerUserEntity().getSocietyId());
stmt.setString(4, getCallerName());
stmt.execute(); - this line generates an exception
Exception if isCallerInAllSocietyViewRole() is true (1st call after
restarting the server):
java.sql.SQLException: Missing IN or OUT parameter at index:: 2 at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at
oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1678)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
at
oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
at
weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
at
Exception if isCallerInAllSocietyViewRole() is true (any consecuent
call):
java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at
oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1539)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
at
oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
at
weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
at
Exception if isCallerInAllSocietyViewRole() is false:
java.lang.NullPointerException at
oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:728) at
oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:787)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
at
oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
at
weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
at ...
Thanks,
Mikhail Stolpner

Similar Messages

  • Missing IN or OUT parameter at index on Data Modeler

    Hi,
    I'm using Data Modeler 2.0.0 build 570 (with Java 1.5.0 (build 1.5.0_15-b04)).
    Usually I import tables from Data Dictionary (Oracle Database 10g Enterprise Edition Release 10.2.0.3.0) into a relational model, I modify them and then I export relational model informations into a Reporting Schema (different oracle schema inside same db).
    I cannot understand why sometimes, during these exports, I get the error "Missing IN or OUT parameter at index"
    Here an extract of the Data Modeler log file:
    2009-09-15 16:00:36,601 [Thread-6] ERROR ReportsHandler - Error Exporting to Reporting Schema:
    java.sql.SQLException: Missing IN or OUT parameter at index:: 10
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1737)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3376)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1061)
         at oracle.dbtools.crest.exports.reports.RSCheckConstraint.export(Unknown Source)
         at oracle.dbtools.crest.exports.reports.RSColumns.export(Unknown Source)
         at oracle.dbtools.crest.exports.reports.RSRelationalModel.export(Unknown Source)
         at oracle.dbtools.crest.exports.reports.ReportsHandler.export(Unknown Source)
         at oracle.dbtools.crest.swingui.ControllerApplication$ExportToReportsSchema$1.run(Unknown Source)
    Does anyone know how to solve this problem?

    Hi,
    the problem is solved in latest published version (build 584). What is your version?
    If you still have issue with build 584 please provide information from log file.
    The constraint is generic if its syntax is not bound to specific database (vendor or version). So if you use syntax introduced in Oracle 10g then you have to define constraint as "Oracle 10g" related and it'll be generated for Oracle 10g and next versions of database.
    Philip

  • Missing IN or OUT parameter at index:: 1

    Hi all my view is based on the following query.
    Statement: SELECT FLVV.lookup_code
         ,FLVV.description , xxxpa_util.Get_rate(:1, FLVV.lookup_type ,FLVV.lookup_code,:2 ) rate
    ,FLVV.meaning , null project_id , null startDate
    FROM fnd_lookup_values_vl           FLVV
         ,fnd_lookup_values_dfv           FLVD
    WHERE FLVV.row_id                          = FLVD.row_id
    AND FLVV.lookup_type                = 'SERVICE TYPE' AND enabled_flag = 'Y'
    AND :3 between nvl(start_date_active,:4) AND nvl(end_date_active,:5)
    when i press the lov ,in process request , i bind all the variables .and it displays the proper values in the lov when i press lov's GO Button
    My problem is when I type % in the lov field and press lov button.it gives following error
    Missing IN or OUT parameter at index:: 1
    what cud be the cause??
    pls hepl ..this is very urgent.
    i have checked one thread but cudnt get the much..
    naveen

    but this happens only once .
    if i dont wtite anything in the lov field and clicks on lov button .after that i close the lov and type % in the lov field and press lov button ..then it works fine.
    but for the very first time if i do the same (% and click on lov button) i get the following error
    SELECT * FROM (SELECT FLVV.lookup_code
         ,FLVV.description , xxx_pa_util.Get_rate(:2, FLVV.lookup_type ,FLVV.lookup_code,:3 ) rate
    ,FLVV.meaning , null project_id , null startDate
    FROM fnd_lookup_values_vl           FLVV
         ,fnd_lookup_values_dfv           FLVD
    WHERE FLVV.row_id                          = FLVD.row_id
    AND FLVV.lookup_type                = 'SERVICE TYPE' AND enabled_flag = 'Y'
    AND :4 between nvl(start_date_active,:5) AND nvl(end_date_active,:5)
    and 1 =:6) QRSLT WHERE (( UPPER(MEANING) like :1 AND (MEANING like :2 OR MEANING like :3 OR MEANING like :4 OR MEANING like :5)))

  • "Missing IN or OUT parameter at index:: 1" - dbms_xmlquery vs dbms_xmlgen

    It looks like DBMS_XMLQuery doesn't like bind variables among selected columns.
    While DBMS_XMLGEN handles them without any problems.
    A simple example:
    -- xml query - fails
    declare
    ctx dbms_xmlquery.ctxHandle;
    begin
    ctx := dbms_xmlquery.newContext(
    'select a.*, :r_max the_end from scott.emp a where rownum <= :r_max');
    dbms_xmlquery.setBindValue(ctx, 'r_max', 10);
    dbms_output.put_line(dbms_xmlquery.getxml(ctx));
    dbms_xmlquery.closeContext(ctx);
    end;
    The error is <ERROR>oracle.xml.sql.OracleXMLSQLException: Missing IN or OUT parameter at index:: 1</ERROR>
    -- xml gen - works
    declare
    ctx dbms_xmlgen.ctxHandle;
    begin
    ctx := dbms_xmlgen.newContext(
    'select a.*, :r_max the_end from scott.emp a where rownum <= :r_max');
    dbms_xmlgen.setBindValue(ctx, 'r_max', 10);
    dbms_output.put_line(dbms_xmlgen.getxml(ctx));
    dbms_xmlgen.closeContext(ctx);
    end;
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod

    Looks like you need two binds to accomplish your task:
    SQL> declare
      2     ctx   dbms_xmlquery.ctxhandle;
      3  begin
      4     ctx := dbms_xmlquery.newcontext('select emp.*, :r_max1 the_end from emp where rownum <= :r_max2');
      5     dbms_xmlquery.setbindvalue (ctx, 'r_max1', 4);
      6     dbms_xmlquery.setbindvalue (ctx, 'r_max2', 4);
      7     dbms_output.put_line (dbms_xmlquery.getxml (ctx));
      8     dbms_xmlquery.clearbindvalues (ctx);
      9     dbms_xmlquery.closecontext (ctx);
    10  end;
    11  /
    PL/SQL procedure successfully completed.
    SQL> set serverout on
    SQL> /
    <?xml version = '1.0'?>
    <ROWSET>
       <ROW num="1">
          <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7902</MGR>
    <HIREDATE>12/17/1980 0:0:0</HIREDATE>
          <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
          <THE_END>4</THE_END>
       </ROW>
       <ROW num="2">
    <EMPNO>7499</EMPNO>
          <ENAME>ALLEN</ENAME>
          <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
          <HIREDATE>2/20/1981 0:0:0</HIREDATE>
    <SAL>1600</SAL>
          <COMM>300</COMM>
          <DEPTNO>30</DEPTNO>
    <THE_END>4</THE_END>
       </ROW>
       <ROW num="3">
          <EMPNO>7521</EMPNO>
    <ENAME>WARD</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
    <HIREDATE>2/22/1981 0:0:0</HIREDATE>
          <SAL>1250</SAL>
    <COMM>500</COMM>
          <DEPTNO>30</DEPTNO>
          <THE_END>4</THE_END>
       </ROW>
    <ROW num="4">
          <EMPNO>7566</EMPNO>
          <ENAME>JONES</ENAME>
    <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>4/2/1981
    0:0:0</HIREDATE>
          <SAL>2975</SAL>
          <DEPTNO>20</DEPTNO>
    <THE_END>4</THE_END>
       </ROW>
    </ROWSET>
    PL/SQL procedure successfully completed.

  • ODI "Missing IN or OUT parameter at index" error

    Hi,
    Im trying to load data from several Oracle DB datasets to an Oracle table and I get the following error:
    "ODI-1228: Task CAPEX (Export) fails on the target ORACLE connection DEV Staging Area.
    Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 3"
    This error appears when loading data from each dataset temporary tables (C$_0CAPEX...C$_4CAPEX) to a temporary general table (C$_CAPEX). The LKM that im using is SQL to SQL
    I think the problem might be related to "target_code" generated by ODI on this step,
    insert into C$_CAPEX
      CUENTA,  PERIODO,  ANIO,  ESCENARIO,  F_SOLICITANTE,  PROYECTO0,  VERSION,  AFC,  DATA
    values
      :CUENTA,  :PERIODO,  :SP2F.Anio,  :ESCENARIO,  :F_SOLICITANTE,  :PROYECTO0,  :VERSION,  :AFC,  :DATA
    Please share your valuable answers.
    Regards

    Thank you KK and Tina Wang for your answers,
    I've found that one of the ODI variables (SP2F.Anio) I was using on a filter had the same name of one column (Anio) of the target table. Considering KK comment I've tried moving this filter to staging, but the problem persisted.
    Just in case someone has the same problem I've changed the name of the ODI variable from "Anio" to another name and now the flow executes without error.
    Regards

  • [SOLVED] !BUG! - 10.1.3.1.0 - Missing IN or OUT parameter at index...

    Hi,
    please help on this bug:
    String s = "CREATE OR REPLACE TRIGGER cagone BEFORE UPDATE ON HW_RECEIV_CH_VALUES FOR EACH ROW\n" +
        "BEGIN :new.lu := sysdate; END;";
    PreparedStatement p = c.prepareStatement(s); 
    p.execute();
    now jdbc think that :new is a parameter...
    Is there a workaround on this?
    thanks
    aldo
    Exception in thread "main" java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1566)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2996)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3093)
         at myOracle.StaticAccess81.main(StaticAccess81.java:949)

    Date sysdate = null;
    sysdate = new Date(new java.sql.Timestamp(System.currentTimeMillis()));
    String s = "CREATE OR REPLACE TRIGGER cagone BEFORE UPDATE ON HW_RECEIV_CH_VALUES FOR EACH ROW\n" +
    "BEGIN :new.lu := " + sysdate + "; END;";
    Statement s = c.Statement(s);
    s.execute();
    there are 2 possibilits for this is correct
    1 - your SQLquery was broke
    2 - when you use PreparedStatement your SQLquery is going to be gerates only at server side
    I has the same problem but I was used a VO with bindVariables, and ]ADF have a bug with the ordem of de params
    just try help
    god bless us
    Message was edited by:
    VictorHugoMuniz

  • Create a trigger -- Missing IN or OUT parameter at index:: 1

    Hi all,
    I got the "Missing IN or OUT parameter at index:: 1" error message when I executed the following trigger creation.
    CREATE OR REPLACE TRIGGER my_table
    BEFORE INSERT OR UPDATE ON my_table
    FOR EACH ROW
    BEGIN
         IF inserting THEN
         SELECT my_sequence.nextval
    INTO :NEW.id
    FROM dual;
    END IF;
    END;
    Note! my_sequence already existed.
    Did I do something wrong?
    Please help me.
    Thanks,

    What tool are you using to run this code? I don't have any problems running this code via SQL*Plus
    SQL> create table my_table (
      2    id number
      3  );
    Table created.
    SQL> create sequence my_sequence;
    Sequence created.
    SQL> CREATE OR REPLACE TRIGGER my_table
      2  BEFORE INSERT OR UPDATE ON my_table
      3  FOR EACH ROW
      4  BEGIN
      5  IF inserting THEN
      6  SELECT my_sequence.nextval
      7  INTO :NEW.id
      8  FROM dual;
      9  END IF;
    10  END;
    11  /
    Trigger created.My hunch is that whatever tool you are using is incorrectly parsing the SQL statement and trying to turn :NEW into a bind variable.
    Justin

  • Export To Excel - Missing IN or OUT parameter at index:: 1

    Hi All,
    I have designed new OAF search page along with Export to Excel button on Result table but after search event when i try to export the data into Excel using inbuilt "Export to Excel" btn feature, I am getting below exception. How can I resolve this exception ..I have added search parameters programmatically in code and it also wrking.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT DISTINCT CONTRACT_ID, SERIAL_NUM,
    SITE_NAME, MODEL_ID,
    MODEL_VER, PROCESS_STATUS,
    DECODE(PROCESS_STATUS,'ERRORED','OraErrorText', 'SUCCESS', 'OraTipLabel' )AS FONT_COLOR
    FROM GEPS_ICAM_SCHEDULE) QRSLT WHERE (CONTRACT_ID = :1 AND MODEL_ID = :2 AND SERIAL_NUM = :3 AND SITE_NAME = :4 AND PROCESS_STATUS = :5)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2680)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:82)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.driver.OracleStatement.checkBindsInAndOut(OracleStatement.java:2000)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2924)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4481)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:613)
         at oracle.apps.fnd.framework.webui.OAExportHelper.getRegionResults(OAExportHelper.java:737)
         at oracle.apps.fnd.framework.webui.OAExportHelper.getPageResults(OAExportHelper.java:454)
         at oracle.apps.fnd.framework.webui.OAExportHelper.processFormRequest(OAExportHelper.java:306)
         at oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean.processFormRequest(OASubmitButtonBean.java:515)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean.processFormRequest(OAFlowLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1037)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OATableHelper.processFormRequest(OATableHelper.java:404)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processFormRequest(OATableBean.java:1053)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2676)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:82)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    Thanks
    Yogesh

    Thanks Kumar for reply ..but I already handled it thru programmatically and we dont do this for "Export to Excel" button.. It automatically extract result data from the attached VO ....The thing that I dont understand is the binding exception upon "Export to excel" button selection..
    Just fyi .. have used below query to get result data in VOImpl ..
    public void initScheduleSearch(String strContractNum,
    String strModelId,
    String strSerialNum,
    String strSiteName,
    String strScheduleStatus
    this.setQuery("");
    StringBuffer whereClause = null;
    try
    whereClause = new StringBuffer(1000);
    Vector parameters = new Vector(6);
    int clauseCount = 0;
    int bindCount = 0;
    setWhereClauseParams(null); // Always reset
    if ((strContractNum != null) && (!("".equals(strContractNum.trim()))))
    whereClause.append(" CONTRACT_ID = :");
    whereClause.append(++bindCount);
    parameters.addElement(strContractNum);
    clauseCount++;
    else
    whereClause.append(" CONTRACT_ID IS NULL");
    clauseCount++;
    if((strModelId != null) && (!("".equals(strModelId.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" MODEL_ID = :");
    whereClause.append(++bindCount);
    parameters.addElement(strModelId);
    clauseCount++;
    } else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" MODEL_ID IS NULL");
    clauseCount++;
    if ((strSerialNum != null) && (!("".equals(strSerialNum.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SERIAL_NUM = :");
    whereClause.append(++bindCount);
    parameters.addElement(strSerialNum);
    clauseCount++;
    }else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SERIAL_NUM IS NULL");
    clauseCount++;
    if ((strSiteName != null) && (!("".equals(strSiteName.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SITE_NAME = :");
    whereClause.append(++bindCount);
    parameters.addElement(strSiteName);
    clauseCount++;
    else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SITE_NAME IS NULL");
    clauseCount++;
    if (!"ALL".equals(strScheduleStatus) && !"".equals(strScheduleStatus) &&
    null!= strScheduleStatus)
    System.out.println(" After strScheduleStatus" + strScheduleStatus );
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" PROCESS_STATUS = :");
    whereClause.append(++bindCount);
    parameters.addElement(strScheduleStatus);
    clauseCount++;
    setWhereClause(whereClause.toString());
    if (bindCount > 0)
    Object[] params = new Object[bindCount];
    parameters.copyInto(params);
    setWhereClauseParams(params);
    this.executeQuery();
    catch(OAException e)
    if(isLoggingEnabled(1))
    return;
    finally
    whereClause.delete(0,whereClause.length());
    whereClause = null;
    setWhereClauseParams(null);
    this.setQuery("");
    }

  • OAF - Missing In or Out Parameter at Index Error

    Hello,
    Here below is my requirement
    I have developed a custom OAF page which queries a list of suppliers from a custom table. I have a button at the bottom of the table which. when clicked should query the SEEDED supplier page (this page is same as the supplier page accessed from the Payables Manager responsibility -> Suppliers -> Supplier Entry/Inquiry -> query any supplier -> the first page that shows up is the QuickUpdatePG). I want to pass parameters to this seeded QuickUpdatePG page with the values selected in my custom OAF Page. I am using SetForwardURL with little luck. Here below is the code I have tried to use and this code is in the CO of my custom page (ProcessFormRequest)
    -- The below code works but doesn't query the supplier in the destination page
    pageContext.setForwardURL(
    "POS_HT_SP_B_QUK_UPD" //"AP_APXVDMVD"
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,h
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    StringBuffer whereclause = new StringBuffer(100);
    OAViewObject suppview = (OAViewObject)am.findViewObject("SuppSummVO");
    SuppSummVOImpl suppvo = (SuppSummVOImpl)am.getSuppSummVO1();
    SuppSummVORowImpl suppvorow = (SuppSummVORowImpl)suppvo.getCurrentRow();
    whereclause.append( "1=1 and Vendor_name="+"'"vorow.getSupplierName()"'");
    whereclause.append(" and segment1 = "+"'"vorow.getSupplierNumber()"'");
    suppvo.setWhereClause(whereclause.toString());
    System.out.println ("Query is "+suppvo.getQuery());
    suppvo.executeQuery();
    suppvo.createRow();
    suppvo.setCurrentRow(suppvorow);
    -- I searched forums and also the OAF Dev Guide and have tried this code below. This raises the error as "Missing IN or OUT parameter at index:: 2" I am unable to find a fix for this
    pageContext.setForwardURL(
    "POS_HT_SP_B_QUK_UPD" //"AP_APXVDMVD"
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,h
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    Vector parameters = new Vector (1);
    int bindCount = 0;
    int clauseCount = 0;
    OAViewObject suppliervo = (OAViewObject)am.getVendorsVO1();
    suppliervo.setWhereClauseParams(null);
    StringBuffer whereclause = new StringBuffer(100);
    whereclause.append("Vendor_id = :");
    whereclause.append(++bindCount);
    parameters.addElement(vorow.getVendorId());
    clauseCount++;
    suppliervo.setWhereClause(whereclause.toString());
    if (bindCount > 0){
    Object[] params = new Object[1];
    params.toString();
    parameters.copyInto(params);
    System.out.println("value again is "+parameters.get(0));
    suppliervo.setWhereClauseParams(params);
    } else {
    System.out.println("");
    suppliervo.executeQuery();
    The seeded page takes 1 parameter (Vendor ID) to query the details. I am passing the details of Vendor ID using Vector and setWhereClauseParams. The where clause of the page is as below
    select co1, col2, col3.....from po_vendors pv, ap_awt_groups aag,
    ap_awt_groups pay_aag
    , rcv_routing_headers rcpt
    , fnd_currencies_tl fct
    , fnd_currencies_tl pay
    , fnd_lookup_values pay_group
    , ap_terms_tl terms
    , po_vendors parent
    , per_employees_current_x emp
    , hz_parties hp
    , AP_INCOME_TAX_TYPES aptt
    , per_all_people_f papf
    where pv.vendor_id = :1
    and pv.party_id = hp.party_id
    and pv.parent_vendor_id = parent.vendor_id
    and pv.awt_group_id = aag.group_id
    and pv.pay_awt_group_id = pay_aag.group_id
    and pv.RECEIVING_ROUTING_ID = rcpt.ROUTING_HEADER_ID(+)
    and fct.language = userenv('lang')
    and pay.language (+)= userenv('lang')
    and pv.invoice_currency_code = fct.currency_code
    and pv.payment_currency_code = pay.currency_code
    and
    pv.pay_group_lookup_code = pay_group.lookup_code
    and pay_group.lookup_type (+)='PAY GROUP'
    and pay_group.language (+)=userenv('lang')
    and pv.terms_id = terms.term_id
    and terms.language = userenv('LANG')
    and terms.enabled_flag ='Y'
    and pv.employee_id = emp.employee_id
    and pv.employee_id = papf.person_id
    and pv.type_1099 = aptt.income_tax_type (+)) QRSLT WHERE (Vendor_id = :1)
    My doubt is should the :1 have the actual value passed or is the query built righly. At the end of this query is the error that says "java.sql.SQLException: Missing IN or OUT parameter at index:: 2"
    Any help is highly appreciated.
    Please let me know if any additional information is needed to have a better idea about the issue I am facing.
    Thanks,
    Sudhamsu

    Hi Sudhamsu,
    This error is coming becoz ur using same bind variable :1 in the VO query.
    extend the VO and use different bind variabale like (:1,:2);
    and pass the parameters using setWhereClauseParames in CO..it will fix the issue.
    Thanks
    GK

  • Java.sql.SQLException: Missing IN or OUT parameter at index:: 1

    Hi,
    I am facing the above issue and can not determine why. I would like to create a messagechoice item on a region and when i do, and attach my VO to the messagechoice item i get the above error. When i use a region with a table view on it it seems to work fine.
    The query in the vo is something like (i am using an example)
    select person_id
    , start_date
    from employee_table
    where employee_number = :0
    the VO is created using oracle positional.
    The code in the mainpage controller is
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String personId = String.valueOf(pageContext.getEmployeeId());
    Serializable [] s = {personId };
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod ("initLOV", s);
    the AM
    public void initLOV(String PersonId)
    ViewObjImpl vo = getViewObj1();
    if (vo!= null)
    vo.initQuery(PersonId);
    and the VO
    public void initQuery(String personId)
    int XpersonId = 8791;
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, XpersonId);
    executeQuery();
    The error i get is below. thanks in advance!
    Rupesh
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1566)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2996)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
         at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
         at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
         at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.MessageComponentLayoutRenderer.renderColumn(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.MessageComponentLayoutRenderer._renderColumns(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.MessageComponentLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
         at oracle.cabo.ui.laf.swan.desktop.ContentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(Unknown Source)
         at OA.jspService(_OA.java:87)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1

    thanks for your quick reply, however here is the actual code for my Vo. As you can see - it isnt a sraightforward query where i can set the where clause. Do i need to initial he messageChoice item somehow? this is strange as it works when i create a tabular item.
    SELECT DISTINCT ppa.payroll_action_id
    , ppa.payroll_id
    , ptp.time_period_id
    , ppa.effective_date
    , hr_payrolls.display_period_name(ppa.payroll_action_id) display_period
    , DECODE(papf.per_information9||papf.per_information10,'YY',null,'Assignment '||paaf.assignment_number||' ')
    ||'Payroll Date '||fnd_date.date_to_chardate(ppa.effective_date) display_request
    FROM per_all_people_f papf
    , per_all_assignments_f paaf
    , pay_assignment_actions paa
    , pay_payroll_actions ppa
    , per_time_periods ptp
    WHERE papf.person_id = :0
    AND papf.effective_start_date = (select max(a.effective_start_date)
    from per_all_people_f a
    where a.person_id = papf.person_id)
    AND paaf.person_id = papf.person_id
    AND paaf.effective_start_date = (select max(a.effective_start_date)
    from per_all_assignments_f a
    where a.assignment_id = paaf.assignment_id)
    AND paa.assignment_id = paaf.assignment_id
    AND ppa.payroll_action_id = paa.payroll_action_id
    AND ppa.action_type = 'P'
    AND ptp.payroll_id = ppa.payroll_id
    AND ppa.effective_date BETWEEN ptp.start_date AND ptp.end_date
    AND ((NVL(papf.per_information9,'N') = 'Y'
    AND NVL(papf.per_information10,'N') = 'Y'
    AND xxlcc_hr_payslip_pkg.calc_net_pay(ppa.payroll_action_id,papf.person_id,NULL) > 0)
    OR ((NVL(papf.per_information9,'N') <> 'Y'
    OR NVL(papf.per_information10,'N') <> 'Y')
    AND xxlcc_hr_payslip_pkg.calc_net_pay(ppa.payroll_action_id,papf.person_id,paaf.assignment_id) > 0))
    Edited by: rupz112 on 01-Jul-2009 09:13

  • Java.sql.SQLException: Missing IN or OUT parameter at index:: 8

    we are getting the below error msg in OAF ,can anybody help us how to get resolved the error
    error details
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT NVL(PAA.DATE_START, PAA.DATE_PROJECTED_START) START_DATE, NVL(PAA.DATE_END, PAA.DATE_PROJECTED_END) END_DATE, PAATTL.NAME ABSENCE_TYPE, PAAT.ABSENCE_ATTENDANCE_TYPE_ID ABSENCE_ATTENDANCE_TYPE_ID, FCL.MEANING ABSENCE_CATEGORY, PAAT.ABSENCE_CATEGORY ABSENCE_CATEGORY_CODE, NVL(PAA.ABSENCE_HOURS, HR_ABSUTIL_SS.GETABSDURHOURS(PAAT.ABSENCE_ATTENDANCE_TYPE_ID, PAA.BUSINESS_GROUP_ID, PAA.CREATION_DATE, PAA.PERSON_ID, PAA.DATE_PROJECTED_START, PAA.DATE_PROJECTED_END, PAA.TIME_PROJECTED_START, PAA.TIME_PROJECTED_END)) ABSENCE_HOURS, (SELECT MEANING FROM HR_LOOKUPS WHERE 'A' = LOOKUP_CODE(+) AND 'LEAVE_STATUS' = LOOKUP_TYPE(+)) APPROVAL_STATUS, 'A' APPROVAL_STATUS_CODE, DECODE(PAA.DATE_START, NULL, (SELECT MEANING FROM FND_LOOKUP_VALUES WHERE LOOKUP_TYPE = 'ABSENCE_STATUS' AND LOOKUP_CODE = 'PLANNED' AND LANGUAGE = USERENV('LANG')), (SELECT MEANING FROM FND_LOOKUP_VALUES WHERE LOOKUP_TYPE = 'ABSENCE_STATUS' AND LOOKUP_CODE = 'CONFIRMED' AND LANGUAGE = USERENV('LANG'))) ABSENCE_STATUS, DECODE(PAA.DATE_START, NULL, 'PLANNED', 'CONFIRMED') ABSENCE_STATUS_CODE, (NVL((SELECT 'Y' FROM FND_ATTACHED_DOCUMENTS WHERE ENTITY_NAME = 'PER_ABSENCE_ATTENDANCES' AND PK1_VALUE = TO_CHAR(PAA.ABSENCE_ATTENDANCE_ID)), 'N')) SUPPORTING_DOCUMENTS, DECODE(PAA.DATE_START, NULL, DECODE(SIGN((PAA.DATE_PROJECTED_START + 1) - SYSDATE), 1, 'HrCancelEnabled', 'HrCancelDisabled'), DECODE(SIGN(NVL(PAA.DATE_END, SYSDATE + 1) - SYSDATE), 1, 'HrCancelEnabled', 'HrCancelDisabled')) CANCEL_ICON, DECODE(PAA.DATE_END, NULL, DECODE(PAA.DATE_START, NULL, 'HrConfirmEnabled', 'HrConfirmDisabled'), 'HrConfirmDisabled') CONFIRM_ICON, DECODE(PAA.DATE_START, NULL, 'HrUpdateEnabled', DECODE(SIGN(NVL(PAA.DATE_END, SYSDATE + 1) - SYSDATE), 1, 'HrUpdateEnabled', 'HrUpdateDisabled')) UPDATE_ICON, NULL DETAILS_ICON, PAA.ABSENCE_ATTENDANCE_ID, NULL TRANSACTION_ID, TO_CHAR(PAA.ABSENCE_ATTENDANCE_ID) SUPPORTINGDOCKEY, NVL(PAA.ABSENCE_DAYS, HR_ABSUTIL_SS.GETABSDURDAYS(PAAT.ABSENCE_ATTENDANCE_TYPE_ID, PAA.BUSINESS_GROUP_ID, PAA.CREATION_DATE, PAA.PERSON_ID, PAA.DATE_PROJECTED_START, PAA.DATE_PROJECTED_END, PAA.TIME_PROJECTED_START, PAA.TIME_PROJECTED_END)) ABSENCE_DAYS FROM PER_ABSENCE_ATTENDANCES PAA, PER_ABSENCE_ATTENDANCE_TYPES PAAT, PER_ABS_ATTENDANCE_TYPES_TL PAATTL, HR_LOOKUPS FCL WHERE PAA.PERSON_ID = :1 AND PAA.BUSINESS_GROUP_ID + 0 = :2 AND PAA.ABSENCE_ATTENDANCE_TYPE_ID = PAAT.ABSENCE_ATTENDANCE_TYPE_ID AND PAAT.ABSENCE_ATTENDANCE_TYPE_ID = PAATTL.ABSENCE_ATTENDANCE_TYPE_ID AND PAATTL.LANGUAGE = USERENV('LANG') AND FCL.LOOKUP_TYPE(+) = 'ABSENCE_CATEGORY' AND PAAT.ABSENCE_CATEGORY = FCL.LOOKUP_CODE(+) AND ((HR_API.RETURN_LEGISLATION_CODE(PAAT.BUSINESS_GROUP_ID) = 'GB' AND NVL(PAAT.ABSENCE_CATEGORY, '#') NOT IN ('M', 'GB_PAT_ADO', 'GB_PAT_BIRTH', 'GB_ADO')) OR (HR_API.RETURN_LEGISLATION_CODE(PAAT.BUSINESS_GROUP_ID) &lt;&gt; 'GB' AND NVL(PAAT.ABSENCE_CATEGORY, '#') NOT IN ('GB_PAT_ADO', 'GB_PAT_BIRTH', 'GB_ADO'))) AND NOT EXISTS (SELECT 'e' FROM HR_API_TRANSACTIONS T WHERE T.SELECTED_PERSON_ID = PAA.PERSON_ID AND T.CREATOR_PERSON_ID = NVL(:3, T.CREATOR_PERSON_ID) AND T.TRANSACTION_REF_TABLE = 'PER_ABSENCE_ATTENDANCES' AND T.TRANSACTION_REF_ID = PAA.ABSENCE_ATTENDANCE_ID AND NOT (HR_ABSUTIL_SS.GETABSENCETYPE(T.TRANSACTION_ID, NULL) IS NULL AND T.STATUS = 'W') AND T.STATUS NOT IN ('D', 'E')) AND DECODE(:6,'PLANNED','PLANNED','CONFIRMED_PLANNED') = DECODE(:6,NULL,'CONFIRMED_PLANNED','CONFIRMED','CONFIRMED_PLANNED',DECODE(PAA.DATE_START, NULL, 'PLANNED', 'CONFIRMED')) UNION ALL SELECT HR_ABSUTIL_SS.GETSTARTDATE(HAT.TRANSACTION_ID, NULL) START_DATE, HR_ABSUTIL_SS.GETENDDATE(HAT.TRANSACTION_ID, NULL) END_DATE, HR_ABSUTIL_SS.GETABSENCETYPE(HAT.TRANSACTION_ID, NULL) ABSENCE_TYPE, TO_NUMBER(HATS.INFORMATION5) ABSENCE_ATTENDANCE_TYPE_ID, HR_ABSUTIL_SS.GETABSENCECATEGORY(HAT.TRANSACTION_ID, NULL) ABSENCE_CATEGORY, HATS.INFORMATION6 ABSENCE_CATEGORY_CODE, HR_ABSUTIL_SS.GETABSENCEHOURSDURATION(HAT.TRANSACTION_ID, NULL) ABSENCE_HOURS, HR_ABSUTIL_SS.GETAPPROVALSTATUS(HAT.TRANSACTION_ID, NULL) APPROVAL_STATUS, HR_ABSUTIL_SS.GETAPPROVALSTATUSCODE(HAT.TRANSACTION_ID, NULL) APPROVAL_STATUS_CODE, HR_ABSUTIL_SS.GETABSENCESTATUS(HAT.TRANSACTION_ID, NULL) ABSENCE_STATUS, HATS.INFORMATION9 ABSENCE_STATUS_CODE, HR_ABSUTIL_SS.HASSUPPORTINGDOCUMENTS(HAT.TRANSACTION_ID, HAT.TRANSACTION_REF_ID) SUPPORTING_DOCUMENTS, HR_ABSUTIL_SS.ISCANCELALLOWED(HAT.TRANSACTION_ID, NULL, HAT.STATUS) CANCEL_ICON, HR_ABSUTIL_SS.ISCONFIRMALLOWED(HAT.TRANSACTION_ID, NULL) CONFIRM_ICON, HR_ABSUTIL_SS.ISUPDATEALLOWED(HAT.TRANSACTION_ID, NULL, HAT.STATUS) UPDATE_ICON, NULL DETAILS_ICON, HAT.TRANSACTION_REF_ID ABSENCE_ATTENDANCE_ID, HAT.TRANSACTION_ID TRANSACTION_ID, TO_CHAR(HAT.TRANSACTION_REF_ID || '_' || HAT.TRANSACTION_ID) SUPPORTINGDOCKEY, HR_ABSUTIL_SS.GETABSENCEDAYSDURATION(HAT.TRANSACTION_ID, NULL) ABSENCE_DAYS FROM HR_API_TRANSACTIONS HAT, HR_API_TRANSACTION_STEPS HATS WHERE HAT.TRANSACTION_REF_TABLE = 'PER_ABSENCE_ATTENDANCES' AND HAT.TRANSACTION_GROUP = 'ABSENCE_MGMT' AND HAT.TRANSACTION_IDENTIFIER = 'ABSENCES' AND HAT.TRANSACTION_REF_ID IS NOT NULL AND HAT.SELECTED_PERSON_ID = :4 AND HAT.CREATOR_PERSON_ID = NVL(:5, HAT.CREATOR_PERSON_ID) AND HAT.TRANSACTION_ID = HATS.TRANSACTION_ID(+) AND HAT.STATUS NOT IN ('D', 'E') AND NOT (HR_ABSUTIL_SS.GETABSENCETYPE(HAT.TRANSACTION_ID, NULL) IS NULL AND HAT.STATUS = 'W') AND DECODE(:6,'PLANNED','PLANNED','CONFIRMED_PLANNED') = DECODE(:6,NULL,'CONFIRMED_PLANNED','CONFIRMED','CONFIRMED_PLANNED',HATS.INFORMATION9) ORDER BY START_DATE DESC) QRSLT WHERE (( ABSENCE_ATTENDANCE_TYPE_ID = :7 )) ORDER BY START_DATE DESC at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2850) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1838) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424) at OA.jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) ## Detail 0 ## java.sql.SQLException: Missing IN or OUT parameter at index:: 8 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    VOImplementation code
    setWhereClauseParams(null);
    setWhereClause(null);
    setWhereClauseParam(0, paramString1);
    setWhereClauseParam(1, paramString2);
    setWhereClauseParam(2, paramString3);
    setWhereClauseParam(3, paramString1);
    setWhereClauseParam(4, paramString3);
    OADBTransactionImpl oadbAbsenceSummimp = (OADBTransactionImpl)getDBTransaction();
    SSHRParams localSSHRParams = new SSHRParams(oadbAbsenceSummimp);
    setWhereClauseParam(5, oadbAbsenceSummimp.getValue("FORMPARAM"));
    oadbAbsenceSummimp.writeDiagnostics(this, "FORMPARAM----->> "+oadbAbsenceSummimp.getValue("FORMPARAM"), 1);
    oadbAbsenceSummimp.writeDiagnostics(this, "getQuery()----->> "+getQuery(), 1);
    oadbAbsenceSummimp.writeDiagnostics(this, "paramString1--"+paramString1 +"paramString2--"+paramString2+"paramString3--"+paramString3, 1);
    executeQuery();
    Many thanks in advance
    Tukuna

    :6, 'PLANNED','PLANNED','CONFIRMED_PLANNED') = DECODE( *:7* ,NULL..... //It should be :7 not :6
    Thanks
    --Anil                                                                                                                                                                                                                                       

  • ADF 11g:Missing IN or OUT parameter at index:: 1

    Hi All,
    I am setting the bind variable at run time, but getting following exception at runtime
    Caused by: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1737)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3376)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3425)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1490)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1040)
         ... 83 more.
    Thought I have declared the bind variable and defined the same in query. Following is my query:-
    SELECT
    CATALOGUE.CATALOGUE_ID CATALOGUE_ID,
    CATALOGUE.CATALOGUE_NAME CATALOGUE_NAME,
    CATALOGUE.DESCRR DESCRR,
    CATEGORY.CATEGORY_ID CATEGORY_ID,
    CATEGORY.CATALOGUE_ID CATALOGUE_ID1,
    CATEGORY.CATEGORY_NAME CATEGORY_NAME,
    CATEGORY.DESCR DESCR,
    ITEM.PRODUCT_CODE PRODUCT_CODE,
    ITEM.CATEGORY_ID CATEGORY_ID1,
    ITEM.DESCR DESCR1,
    ITEM.UOM UOM,
    ITEM.UNIT_PRICE UNIT_PRICE,
    ITEM.CURRENCY CURRENCY
    FROM
    CATALOGUE,
    CATEGORY,
    ITEM
    WHERE
    CATEGORY.CATALOGUE_ID = CATALOGUE.CATALOGUE_ID AND ITEM.CATEGORY_ID = CATEGORY.CATEGORY_ID
    AND CATEGORY.CATEGORY_ID =: MyCategoryID
    And following is my method in AMImpl class where I am setting the above declared bind variable.
    ItemListTempViewObjImpl vo= (ItemListTempViewObjImpl)this.getItemListTempViewObj1();
    System.out.println(categoryId);
    String clause= "CATEGORY_ID = " + categoryId;
    System.out.println("hello 1");
    //vo.setWhereClause(clause);
    try {
    vo.setNamedWhereClauseParam("MyCategoryID",new Number(categoryId));
    } catch (SQLException e) {
    System.out.println("hello 2="+ vo.getNamedWhereClauseParam("MyCategoryID"));
    vo.executeQuery();
    System.out.println(vo.getEstimatedRowCount());
    Please help to solve the above issue.
    Regards,
    Vikram

    Hi,
    according to what mentioned in the docs,
    http://download-uk.oracle.com/docs/html/B25947_01/bcquerying009.htm#sm0101
    the error is caused by the missing variable value. Does one of the print statements produce a result ? Is the exception thrown in the line of
    vo.executeQuery();
    or
    System.out.println(vo.getEstimatedRowCount());
    Frank

  • 11i to R12 Upgradation(Missing IN or OUT parameter at index:: 1) issue

    Hi,
    My Name is Sai, working on OAF.
    Recently my code has been migrated from 11i to R12. In 11i my code is working fine.
    but in R12 facing the issue that " Missing IN or OUT parameter at index:: 1 "
    for the following query
    SELECT *
    FROM
    (SELECT DISTINCT uf.favorite_name,
    uf.favorite_id
    FROM xxdl.xxdl_sc_user_favorites uf,
    xxdl.xxdl_sc_pta_favorites pf
    WHERE uf.person_id = :1
    AND uf.favorite_id = pf.favorite_id)
    qrslt
    ORDER BY favorite_name ASC
    could you please tell me the cause of the issue and how to fix this issue.
    Thanks,
    Sai

    Hi Gourav and Pradeep,
    Thanks for the reply.
    In AM i am setting the bind variable for the person_id using VO.setWhereClauseParam(0,person_id);
    But as per the research in R12, In a single query if we are using same bind variable in many places like,
    Select xxdl_sc_com_pkg.GET_LAST_UPDATE_BY('GNS',:1,2,:2) Last_Upd
    ,XXDL_SC_COM_PKG.GET_AS_OF_DATE('GNS',:1,1,:2) hc_as_of_date
    ,XXDL_SC_COM_PKG.GET_AS_OF_DATE('GNS',:1,2,:2) sc_as_of_date
    from dual
    in the above query :1 and :2 using 3 places.
    the query is working in 11i but in R12 its failing, so i changed the query to
    Select xxdl_sc_com_pkg.GET_LAST_UPDATE_BY('GNS',:1,2,:2) Last_Upd
    ,XXDL_SC_COM_PKG.GET_AS_OF_DATE('GNS',:3,1,:4) hc_as_of_date
    ,XXDL_SC_COM_PKG.GET_AS_OF_DATE('GNS',:5,2,:6) sc_as_of_date
    from dual
    In the above query passing different bind variables so
    its working in R12.
    To do this kind of process i have to change all the VO objects and corresponding the java code to set where clause params.
    Instead of this process, is there any profile option or any Oracle patch available for this change.
    Thanks,
    sai
    Edited by: user610183 on Mar 30, 2010 3:47 PM

  • Missing IN or OUT parameter at index in ODI

    HI All,
    I am using ODI 11.6
    I am facing the below error while working on sequence generator in ODI.I have pass the sequence as (:SP_OFFER_OFFER_ID_SEQ.NEXTVAL)
    Its a Table to Table mapping.
    ODI-1217: Session INT_TEMP_TO_OFFER (757011) fails with return code 17041.
    ODI-1226: Step INT_TEMP_TO_OFFER fails after 1 attempt(s).
    ODI-1240: Flow INT_TEMP_TO_OFFER fails while performing a Integration operation. This flow loads target table SP_OFFER.
    ODI-1228: Task INT_TO_OFFER (Integration) fails on the target ORACLE connection OWNER.
    Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    The code is
    /* DETECTION_STRATEGY = NOT_EXISTS */
    insert into      OWNER.SP_OFFER T
         CAMPGN_NO,
         CAMP_OFF
         , OFFER_ID
    select      CAMPGN_NO,
         CAMP_OFF
         , :SP_OFFER_OFFER_ID_SEQ.NEXTVAL
    from     OWNER.I$_SP_OFFER S
    where     IND_UPDATE = 'I'
    Please let me know how to resolve this
    Thanks,
    Lony

    Is this Database Sequence ? If yes , check the execution area. If everything looks fine and you are still getting error , try to execute this query directly in the Backend. This will make sure if this is a DB related issue or something is missing

  • Error Missing IN or OUT parameter at index:: 1

    Hi ,
    I have created a procedure with
    SOURCE :
    select distinct a.bseg_id,b.pricecomp_id,c.svc_qty,a.seqno from
    ci_bseg_cl_char a,
    (select BSEG_CL_CHAR.BSEG_ID,BSEG_CL_CHAR.SEQNO,
    case
    when BSEG_CL_CHAR.CHAR_TYPE_CD = 'PAPCPICH' then
    BSEG_CL_CHAR.ADHOC_CHAR_VAL
    end PRICECOMP_ID
    from CI_BSEG_CL_CHAR BSEG_CL_CHAR)b,
    ( select CL_CHAR.BSEG_ID,CL_CHAR.SEQNO,
    case when CL_CHAR.CHAR_TYPE_CD = 'AGGSVQTY' then
    CL_CHAR.ADHOC_CHAR_VAL
    end SVC_QTY
    from CI_BSEG_CL_CHAR CL_CHAR ) c
    where a.bseg_id = b.bseg_id
    and a.bseg_id = c.bseg_id
    and a.seqno = b.seqno
    and a.seqno = c.seqno
    and b.pricecomp_id is not null
    and c.svc_qty is not null
    order by pricecomp_id , seqno
    TARGET :
    insert into FACT_ODI_INTERMEDIATE1
    bseg_id,
    pricecomp_id,
    svc_qty,
    seqno
    values
    :bseg_id,
    :pricecomp_id,
    :svc_qty,
    :seqno
    but its giving me error as :
    ODI-1228: Task Load Intermediate1 (Procedure) fails on the target ORACLE connection VISA.
    Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    Can somebody help ??/

    The source query is running fine in db.Also there are two columns in source
    SEQNO which is NUMBER(5) in source as well as in target
    SVC_QTY which in VARCHAR2(254) in source and NUMBER(36,18) in target
    SO even if for SVC_QTY , im doing to_number its giving the error

Maybe you are looking for

  • Logging API configuration trouble

    Here is my Java code: private static final String LOGGER_CONFIG_FILE="java.util.logging.config.file"; private static final String CONFIG_FILE="c:/logging.properties"; public static synchronized void init() { System.setProperty(LOGGER_CONFIG_FILE, CON

  • SMS_Notification_server fails to install for SP1

    Recently installed SP1. Most things are OK expect for the failure to install the sms_notification_server. Checked bgbsetup.log and it shows the following: <03/07/13 09:43:45> CTool::RegisterComPlusService: run command line: "C:\Windows\Microsoft.NET\

  • Create HTML that links 100 PDF files in a folder

    I would like to publish my wife's recipes on our website, hoping she can then have access from the iPhone. I have about a 100 and really don't want to use iWeb to create 100 hyperlinks to a file, especially since she is continuously adding recipes. D

  • Saving as a PDF file

    I received this error when trying to make my form a PDF: "Some content on the PDF is too large to fit on a single page." however no guidance as to which parts of the form are too large, so I don't have any idea how to fix it! Please advise, thanks

  • No answers to my questions ??

    I posted a message for help a few days ago. I see that it has been viewed several times but no replies. Doesn't anyone know anything about fixing these problem(s) ??