Out parameter cast issue - C#

Hi all,
Having an issue with an older application I am supporting. The data access is CSLA .Net and there is a line that updates a newly created entity id with the value from an out parameter. This is defined in the database as NUMERIC(10,0). The code looks like this:
OracleParameter opID = new OracleParameter("P_ID", OracleDbType.Int64);
//... do some stuff and save the new entity to the db
_id = (long)opID.Value;
This used to be fine on windows XP with version 9.x of ODP .Net. On a Windows 7 box with the latest version the cast fails and the return data type Decimal. This looks to me like a bug/weird behavior in the new version. Is there a workaround or something I can do to fix the issue without, preferably without changing my code?
Thanks!
Matei
Edited by: Matei on Apr 29, 2013 4:05 PM

Yes for sure, thanks for the reply. Here are more details on the table schema and the proc that's being called. It's part of a package that does user related CRUD operations.
ID     NUMBER(10,0)     No
USERNAME     VARCHAR2(20 BYTE)     No
PASSWORD     VARCHAR2(20 BYTE)
FIRST_NAME     VARCHAR2(40 BYTE)
LAST_NAME     VARCHAR2(40 BYTE)
PROCEDURE insert_by_pk (
p_id OUT fact.users.ID%TYPE,
p_first_name IN fact.users.first_name%TYPE,
p_last_name IN fact.users.last_name%TYPE,
p_home_phone IN fact.users.home_phone%TYPE,
p_business_phone IN fact.users.business_phone%TYPE,
p_mobile_phone IN fact.users.mobile_phone%TYPE,
p_fax IN fact.users.fax%TYPE,
p_email IN fact.users.email%TYPE,
p_internal IN fact.users.INTERNAL%TYPE,
p_username IN fact.users.username%TYPE,
p_password IN fact.users.password%TYPE,
p_home_ext IN fact.users.home_ext%TYPE,
p_business_ext IN fact.users.business_ext%TYPE,
p_active          IN     fact.users.active%TYPE
AS
BEGIN
INSERT INTO fact.users
(ID, first_name,
last_name, home_phone, business_phone,
mobile_phone, fax, email, internal,
username, password, home_ext, business_ext, active,
                    CREATE_USER,CREATE_DATE
VALUES (FACT.users_seq.NEXTVAL, p_first_name,
p_last_name, p_home_phone, p_business_phone,
p_mobile_phone, p_fax, p_email, p_internal,
LOWER(p_username), p_password, p_home_ext, p_business_ext, p_active,
                    (select sys_context('userenv','os_user') FROM DUAL),SYSDATE
SELECT FACT.users_seq.CURRVAL
INTO p_id
FROM DUAL;
END;
And for completeness the C# code. The line that fails is the second to last one where the cast happens: _id = (long)opID.Value;
// we're not being deleted, so insert or update
                              OracleParameter opID = new OracleParameter("P_ID", OracleDbType.Int64);
                              if(this.IsNew)
                                   // we're new so insert
                                   cm.CommandText = "FACT.users_pkg.insert_by_pk";
                                   opID.Direction = ParameterDirection.Output;
                                   cm.Parameters.Add(opID);
                              else
                                   // we're not new, so update
                                   cm.CommandText = "FACT.users_pkg.update_by_pk";
                                   opID.Direction = ParameterDirection.Input;
                                   cm.Parameters.Add("p_id", _id);
                              cm.Parameters.Add("p_first_name", _firstName);
                              cm.Parameters.Add("p_last_name", _lastName);
                              cm.Parameters.Add("p_home_phone", _homePhone);
                              cm.Parameters.Add("p_bus_phone", _busPhone);
                              cm.Parameters.Add("p_mobile_phone", _mobilePhone);
                              cm.Parameters.Add("p_fax", _fax);
                              cm.Parameters.Add("p_email", _email);
                              cm.Parameters.Add("p_internal", _internal ? "Y" : "N");
                              cm.Parameters.Add("p_username", _username.ToLower());
                              cm.Parameters.Add("p_password", "password");
                              cm.Parameters.Add("p_home_ext", _homePhoneExt);
                              cm.Parameters.Add("p_business_ext", _busPhoneExt);
                              cm.Parameters.Add("p_active", _active ? "Y" : "N");
                              cm.ExecuteNonQuery();
                              if(this.IsNew)
                                   // update ID with the oracle generated sequence
                                   _id = (long)opID.Value;
Edited by: 1002325 on Apr 25, 2013 7:56 AM
Edited by: 1002325 on Apr 25, 2013 7:57 AM

Similar Messages

  • Callable statement: out parameter type issue

    Hello again.
    My question is:
    how can I register the out parameter of a callable statement so that it may contain an oracle Cursor?
    Whether I register it to Types.OTHER (Types from the java.sql package) or OracleTypes.CURSOR (OracleTypes from the oracle.jdbc.driver package) it still says :
    PLS-00382: expression is of wrong type
    when trying to execute a statement that returns a cursor.
    I am using the com.sap.portals.jdbc.oracle package for the driver and such.
    If I change to use the oracle.jdbc.driver.OracleDriver and register the out parameter to OracleTypes.CURSOR, then it works.
    Thanks in advance,
    Silviu Lipovan Oanca
    Message was edited by: Silviu Lipovan Oanca

    more detailed
    1) i have write some java code using as usual my IDE:
    public class P141_JAVABridge
    public static void execute()
    String databaseDriver = "oracle.jdbc.driver.OracleDriver";
    String databaseUrl = "jdbc:oracle:thin:@xxx:1521:orcl";
    String databaseUsername = "xxx";
    String databasePassword = "xxx";
    ods.setDriverType(databaseDriver);
    ods.setURL(databaseUrl);
    ods.setUser(databaseUsername);
    ods.setPassword(databasePassword);
    connection = ods.getConnection();
    .... some code
    map.put("custom_T",Custom_T_SQLData.class);
    CallableStatement call = connection.prepareCall("call P141(?,?)");
    call.setObject(1,inputObjectReference);
    call.registerOutParameter(2,OracleTypes.STRUCT,"custom_T");
    call.execute();
    .... some code
    2) i run this code - wooha! it works
    3) i have changed
    connection = ods.getConnection();
    to
    connection = DriverManager.getConnection("jdbc:default:connection:");
    4) compile and load class into oracle
    5) i have linked P141_JAVABridge.execute() with P141_JB
    create or replace PROCEDURE P141_JB () IS LANGUAGE JAVA NAME 'x.y.z.P141_JAVABridge.execute()';
    6) then i executed P141_JB
    SET SERVEROUTPUT ON;
    BEGIN
    ...some code
    P141_JB();
    ...some code
    END;
    and got NullPointerException at
    ((Custom_T_SQLData)call.getObject(2)).responseStatus

  • 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

  • Performance issue with using out parameter sys_refcursor

    Hello,
    I'm using Oracle 10g, with ODP.Net in a C# application.
    I'm using about 10 stored procedures, each having one out parameter of sys_refcursor type. when I use one function in C# and call these 10 sp's, it takes about 78ms to excute the function.
    Now to improve the performance, I created one SP with 10 output parameters of sys_refcursor type. and i just call this one sp. the time taken has increased , not it takes abt 95ms.
    is this the right approach or how can we improve the performance by using sys_refcursor.
    please suggest, it is urgent, i'm stuck up with this issue.
    thanks
    shruti

    With 78ms and 95ms are you talking about milliseconds or minutes? If it's milliseconds then what's the problem and does it really matter if there is a difference of 17 milliseconds as that could just be caused by network traffic or something. If you're talking minutes, then we would need more information about what you are attempting to do, what tables and processing is going on, what indexes you have etc.
    Query optimisation tips can be found on this thread.. When your query takes too long ....
    Without more information we can't really tell what's happening.

  • ORABPEL-11809 - call a stored procedure - error in OUT parameter

    Hi all.
    I have a problem in a BPEL process that calls a stored procedure.
    I create a Partner Link that calls a stored procedure in the database. That procedure returns a type that is a table (is defined as a type of the database).
    When I deploy the process I have the following error:
    <messages>
    - <input>
    - <WC01_Pesquisa_Ut_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    - <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/IGIF/WC01/PESQUISA_UT/">
    <P_NIR xmlns="">
    165968274
    </P_NIR>
    <P_NOME_COMPLETO xmlns="">
    carla diogo
    </P_NOME_COMPLETO>
    <P_SEXO xmlns="">
    Feminino
    </P_SEXO>
    <P_DATA_NASC xmlns="">
    2007-03-01
    </P_DATA_NASC>
    <P_NATURALIDADE xmlns=""/>
    </InputParameters>
    </part>
    </WC01_Pesquisa_Ut_InputVariable>
    </input>
    - <fault>
    - <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    17002
    </code>
    </part>
    - <part name="summary">
    <summary>
    file:/oracle/product/10.1.3/SOA/Integration10131/bpel/domains/default/tmp/.bpel_SaudeIdentificarCidadao_5.0_e3768f57d137443e1ba52d4a6d809426.tmp/WC01_Pesquisa_Ut.wsdl [ WC01_Pesquisa_Ut_ptt::WC01_Pesquisa_Ut(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'WC01_Pesquisa_Ut' failed due to: Error registering an out parameter.
    An error occurred when registering parameter PESQUISA_UT as an out parameter of the IGIF.WC01.PESQUISA_UT API. Cause: java.sql.SQLException: Io exception: Connection reset [Caused by: Io exception: Connection reset]
    ; nested exception is:
         ORABPEL-11809
    Error registering an out parameter.
    An error occurred when registering parameter PESQUISA_UT as an out parameter of the IGIF.WC01.PESQUISA_UT API. Cause: java.sql.SQLException: Io exception: Connection reset [Caused by: Io exception: Connection reset]
    Check to ensure that the parameter is a valid IN/OUT or OUT parameter of the API. Contact oracle support if error is not fixable.
    </summary>
    </part>
    - <part name="detail">
    <detail>
    Internal Exception: java.sql.SQLException: Io exception: Connection resetError Code: 17002
    </detail>
    </part>
    </remoteFault>
    </fault>
    </messages>
    The code of the XSD created when I create the partner link is:
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/IGIF/WC01/PESQUISA_UT/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/IGIF/WC01/PESQUISA_UT/"
    elementFormDefault="unqualified" attributeFormDefault="unqualified">
    <element name="InputParameters">
    <complexType>
    <sequence>
    <element name="P_NIR" type="decimal" db:index="1" db:type="NUMBER" minOccurs="0" nillable="true"/>
    <element name="P_NOME_COMPLETO" type="string" db:index="2" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_SEXO" type="string" db:index="3" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_DATA_NASC" type="dateTime" db:index="4" db:type="DATE" minOccurs="0" nillable="true"/>
    <element name="P_NATURALIDADE" type="string" db:index="5" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <element name="OutputParameters">
    <complexType>
    <sequence>
    <element name="PESQUISA_UT" type="db:TABELA_DE_IDS" db:index="0" db:type="Array" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="TABELA_DE_IDS">
    <sequence>
    <element name="PESQUISA_UT_ITEM" type="decimal" db:type="NUMBER" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    </schema>
    Any ideia?
    Thanks in advance.
    Carla

    I'd suggest that you turn on xml validation on the bpel boundaries to make sure that the xml being passed to the adapter is valid. You do this by logging in to bpel console, go to Manage Domain, at the bottom of the Configuration tab, set validateXml to true.
    Then see if it is an xml validation issue - in which case you will have to fix your maps to make sure it is valid indeed.
    Assuming your XML is valid and you are still seeing this error, couple of follow up questions:
    - are you using synonyms ?
    -- note that synonyms are not supported completely by the adapter at this time.
    - could you spell out where your types/sp-pkg resides and what are you connecting as at runtime ?
    -- just to keep things simple enough to debug, i'd do everything as just one user and slowly go to a scheme that you desire.
    HTH

  • Execute immediate for stored procedure with out parameter

    Hi,
    I have problem with dynamically executing the statement hope anyone can help me.
    I have a table which stores the procedure names. and procedure parameter values are stored on another column with parameter values coming from java side.
    I have to create a procedure that dynamically executes the procedure on table1 with the values from table 2.
    Now I'm getting real trouble to execute immediate this proc with parameters. I tried the DBMS_SQL package as well.
    Problem is you need to mention the OUT mode specifically for the out parameter. Can anybody plz help me with this issue??
    TABLE1_
    PROCESS_ID     PROC_NAME
    1      proc1(p1 IN number, p2 IN varchar2, p3 OUT varchar2)
    2     proc2(p1 IN number, p2 out varchar2, p3 OUT varchar2)
    TABLE2_
    PROCESS_ID     PROC_PARMS
    1     100, 'test', :return
    2     200, :return1, :return2
    Thank You

    826957 wrote:
    Hi,
    I have problem with dynamically executing the statement hope anyone can help me.
    I have a table which stores the procedure names. and procedure parameter values are stored on another column with parameter values coming from java side.
    I have to create a procedure that dynamically executes the procedure on table1 with the values from table 2.
    Now I'm getting real trouble to execute immediate this proc with parameters. I tried the DBMS_SQL package as well.
    Problem is you need to mention the OUT mode specifically for the out parameter. Can anybody plz help me with this issue??
    TABLE1_
    PROCESS_ID     PROC_NAME
    1      proc1(p1 IN number, p2 IN varchar2, p3 OUT varchar2)
    2     proc2(p1 IN number, p2 out varchar2, p3 OUT varchar2)
    TABLE2_
    PROCESS_ID     PROC_PARMS
    1     100, 'test', :return
    2     200, :return1, :return2
    Thank YouSounds like an appalling design and a nightmare waiting to happen.
    Why not have your Java just call the correct procedures directly?
    Such design smells badly of an entity attribute value modelling style of coding. Notoriously slow, notoriously buggy, notoriously hard to maintain, notoriously hard to read. It really shouldn't be done like that.

  • 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

  • Reg: Need help to call a Stored Procedure - Out Parameter using DBAdapter

    HI
    I have created a procedure with Out Parameter, using DBAdapater i have invoked it. I have assigned the out parameter also. But while running i am getting this error.
    My Procedure is shown below. It executes successfully when its run in database.
    create or replace
    PROCEDURE SP_QUERY(s_string in varchar2, retCodeString out varchar2)
    AS
    l_sql_stmt varchar2(1000);
    BEGIN
    l_sql_stmt := s_string;
    EXECute immediate l_sql_stmt;
    commit;
    if SQLCODE = 0 then
    retCodeString := 'OK';
    end if;
    END;
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException:
    Client received SOAP Fault from server : Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'ExecuteScript' failed due to:
    Stored procedure invocation error. Error while trying to prepare and execute the SOADEMO.SP_QUERY API.
    An error occurred while preparing and executing the SOADEMO.SP_QUERY API.
    Cause: java.sql.SQLException: ORA-06550: line 1, column 15:
    PLS-00904: insufficient privilege to access object SOADEMO.SP_QUERY ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored Check to ensure that the API is defined in the database and that the parameters match the signature of the API.
    This exception is considered not retriable, likely due to a modelling mistake.
    To classify it as retriable instead add property nonRetriableErrorCodes with value "-6550" to your deployment descriptor (i.e. weblogic-ra.xml).
    To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff.
    All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:808) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:384)
    Please help me in this issue.

    Hi
    Right now i geeting the below error
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : oracle.fabric.common.FabricException:
    oracle.fabric.common.FabricInvocationException: java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist :
    java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:808) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:384)
    at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:301) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.
    invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.
    invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.
    run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.
    UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.
    fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.
    broadcast(UIXInclude.java:96) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.
    processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889) at
    oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.
    execute(LifecycleImpl.java:194) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.
    StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.
    invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : oracle.fabric.common.FabricException: oracle.fabric.common.FabricInvocationException: java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist : java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:362) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:1004) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:750) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:802) ... 79 more Caused by: oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client received SOAP Fault from server : oracle.fabric.common.FabricException: oracle.fabric.common.FabricInvocationException: java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist : java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:1040) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:826) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:358) ... 82 more

  • PLS-00201 error when trying to pass an OUT parameter

    Hi,
    Please help me to resolve the below error:
    I am trying to pass an OUT parameter in a package.
    I have declared it in package specs as
    ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2)
    In package body
    I have created the procedure as
    Create or Replace procedure ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2) AS
    v_LogDir varchar2(40);
    v_message varchar2(200);
    BEGIN
    SELECT directory_path into v_LogDir FROM ALL_DIRECTORIES WHERE directory_name = 'ABC';
    v_message := v_LogDir ;
    some sql statements..
    p_val3 := v_message;
    Return p_val3;
    End procABC;
    SQL> exec pkg_A.procABC('Stage2', NULL, p_val3);
    Package compiles successfully but while execution it returns error as:
    ORA-06550: line 1, column 74:
    PLS-00201: identifier 'p_val3 ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Please advise.

    Hi Suresh,
    Thanks for the information and help. I was able to run the package with this usage.
    Now, the issue is
    I need to return a v long string by the OUT parameter so I defined the datatype of OUT parameter as CLOB.
    But, when I declare local variable to run the package with this OUT paramater I get the error :
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 1
    When I pass a shorter string it works.
    Kindly advise me how to resolve this issue while using CLOB as datatype of OUT parameter.

  • Forms hangs when using result of an OUT parameter to do an Insert

    Hello,
    I think I have slightly odd problem here... I'm currently migrating a Forms 6i client-server application to Forms 10g904. I found that one of my Forms was hanging i.e. screen goes blank, 'activity' bar on the bottom right just keeps whirring away indefinitely.
    After much investigation, the hanging-form problem occurs in the following scenario:
    - In a routine in a Forms pll library, a variable is declared e.g. w_capture_output
    - In the first round of a loop, this variable is passed into a database stored proc, which has an OUT parameter to return a result e.g. SOME_PROC(w_some_input, w_capture_output);
    - w_capture_output comes back with a value e.g. 'P'
    - This is then used in an Insert e.g. INSERT INTO some_table (a, b) VALUES (1, w_capture_output)
    - The next round of the loop; the variable is passed in again into the proc. It still holds the value from the last round e.g. 'P'
    - In this round, the logic of the proc is such that the OUT argument is set to null i.e. when the proc has finished, w_capture_output is now null. This can be confirmed with IF w_capture_output IS NULL THEN display_some_message. The code is still all running fine.
    - But now when I run INSERT INTO some_table (a, b) VALUES (2, w_capture_output) - the form hangs.
    I can, however, work around this and prevent the form from hanging simply by ensuring at the start of each round of the loop that I explicitly set w_capture_output back to null before passing it into the proc that sets it. Or alternatively, after it comes back from the proc, the following also prevents the hanging problem:
    w_capture_output := NVL(w_capture_output,NULL);
    To summarise - if I pass a variable into a proc taking an OUT parameter, AND that variable is not null going into the proc, AND the proc sets it to null AND I then try to use that variable in an Insert statement - the form hangs. Something horrible is happening to the variable inside the procedure, I think.
    Now, I can kind of see why passing a non-null variable into an OUT argument might cause problems (although only if you then try to set it to null - not if you set it to another, non-null value). However, exactly the same code works fine under Forms 6i, using the same database instance and proc. And if Oracle have changed the rules, shouldn't it throw an error, rather than just hanging? I'd prefer not to have to use the workaround, as this is a very large app and I don't know yet how many places would need it.
    Has anyone else come across this issue..? (Database is 9.0.2. btw, Forms are 10g904)
    Cheers,
    James

    Try
    v_log_name := 'Fnd_File.LOG_OUT';Hey, what r u doing with above code?
    You are assigning string value to a variable?
    The compilation won't give any error.
    And OP thinks it's solution!!!!!!!!!!!
    LOL

  • Registering a bool out parameter in callable statement

    Hi all..
    Can we register a bool type as a out parameter.in oraclecallablestatement.....
    Class definition says only char varchar long raw longraw can be registered as out parameters..
    if we cant.. what how can we capture a bool o/p from a function....please help

    user21786,
    We discussed this issue just a few days ago. Boolean is not a supported native type in oraclecallablestatement. Check the thread for workarounds.
    --Shiv                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • 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 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

Maybe you are looking for

  • Delivery Completed indicator is automatically set in MB31

    Dear SAP Gurus, I have an issue for which I need you help. In my scenario, we are manufacturing co-products. The actual produced qty of each of the co-products may vary from the ratio which is specified in the BOM. Hence, I have set the "unlimited ov

  • IWeb and Quicktime Movie Upload 2013

    Three or so years ago, I made a website using iWeb (the last version Apple produced; i.e. the current version), and I included some videos. The videos were from a digital (tape) video camera, edited with iMovie HD, and were old-format 640x480. I mana

  • Help installing photoshop elements 11?

    I got a wacom intuos tablet which came with photoshop elements 11. I downloaded it, but am having trouble going through the installation process. Every time I try, it gets really close to finishing installing, but then says there's an error and it st

  • Choosing between Mac Book and Mac Book Pro??

    Hi, I need a laptop for school and to do a bit of Photoshop and HTML but i don't no wich Macbook should i choose. Here is why im confuse : I saw this add of a Mac Book Pro 2.53 (320g 7500rpm-4gig RAM) with apple care for 2500$ new and sealed but im n

  • Shared Services Provisioning log file?

    Hi! Is there any log file in Shared Services 11, for the modifications in user provisioning? I could use a log on the provisioning modified, user name and admin name . Thanks! Jorge