Reading Arguments by calling customRunActivity  - URGENT

I am invoking interactive activity from external PAPI client.
Arguments arg = Arguments.create();
arg.putArgument("assignedVal", "USER");
arg.putArgument("assignedTo", strAssignedVal);
InstanceInfo[] infos = processServiceSession.getInstancesByView((InstancesView)processServiceSession.getView("Unified_inbox"));               
if(infos.length >0){               
     processServiceSession.customRunActivity(infos[0].getId(), "Interactive", arg);
How can I read the arguments in interactive activity ?
I tried 2 approaches but none did work
1) made a screenflow in interactive1 and mapped incoming arguments of interactive1 with values i m passing.
While reading the values in Screenflow , i m unable to get values.
2) from google found something like this to use
Arguments arg = Arguments.create();
// Get the output arguments
String myOutputStringArgument = (String) arguments.getArgument("MyOutputStringArgument");
String result = (String) arguments.getArgument(Arguments.RESULT);
but in studio 5.7 I dont have handle to Argument class.
Please advice.

Hi,
When you create a new work item instance in your process or run an activity in your process using PAPI you usually send in information via the process or activity's argument variables.
In your example, it looks like you have two argument variables you are sending in ("assignedVal" and "assignedTo"). Once you either create the instance in the process or run the activity in the process, the information you're passing into the process or activity's argument variables are automatically mapped to corresponding instance variables in either the process or in the activity by the Engine.
In your case, look and see how your argument variables in your activity are mapped to instance variables. If for example your assignedVal argument variable was mapped to the instance variable "av" and your assignedTo argument variable was mapped to the instance variable "at", then inside the logic in your activty, you could retrieve the value of the instance variables by adding logic like this:
logMessage "Here are the values of av and at that were mapped in: [" + av + "][" + at + "]"
    using severity = DEBUG Hope this helps,
Dan

Similar Messages

  • PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMI

    I am trying to submit the payables open interface import program using BPEL process. BUT I am unable to submit the concurrent program. The invoke function is failing with below message.
    [2010/08/25 17:06:22] Faulted while invoking operation "OFAPOPIIMPORT" on provider "OFAPOPIIMPORT".less
    -<messages>
    -<input>
    -<Invoke_1_OFAPOPIIMPORT_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    -<InputParameters xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XX_BPEL_FND_REQUEST_SUBMIT_REQ/FND_REQUEST-24SUBMIT_REQUEST/" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XX_BPEL_FND_REQUEST_SUBMIT_REQ/FND_REQUEST-24SUBMIT_REQUEST/">
    <db:APPLICATION>200</db:APPLICATION>
    <db:PROGRAM>APXIIMPT</db:PROGRAM>
    <db:DESCRIPTION>Test</db:DESCRIPTION>
    <db:START_TIME/><db:SUB_REQUEST/>
    <db:OperatingUnit>NYSIF</db:OperatingUnit>
    <db:Source>DBL</db:Source>
    <db:Group/>
    <db:BatchName>TESTRAMBPEL1</db:BatchName>
    <db:HoldName/>
    <db:HoldReason/>
    <db:GLDate/>
    <db:Purge>N</db:Purge>
    <db:TraceSwitch>N</db:TraceSwitch>
    <db:DebugSwitch>N</db:DebugSwitch>
    <db:SummarizeReport>N</db:SummarizeReport>
    <db:CommitBatchSize>1000</db:CommitBatchSize>
    <db:UserID>4842</db:UserID>
    <db:LoginID>1683090</db:LoginID>
    </InputParameters>
    </part>
    </Invoke_1_OFAPOPIIMPORT_InputVariable>
    </input>
    -<fault>
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>6550
    </code>
    </part>
    -<part name="summary">
    <summary>
    file:/C:/product/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.bpel_APOPIIMPORT_1.0_91d4c6c1050ed25d005bc0d396a9db24.tmp/OFAPOPIIMPORT.wsdl [ OFAPOPIIMPORT_ptt::OFAPOPIIMPORT(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'OFAPOPIIMPORT' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ; nested exception is:
         ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    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. Contact oracle support if error is not fixable.
    </summary>
    </part>
    -<part name="detail">
    <detail>
    Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Error Code: 6550
    </detail>
    </part>
    </remoteFault>
    </fault>
    </messages>
    [2010/08/25 17:06:22] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. More...
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>6550
    </code>
    </part>
    -<part name="summary">
    <summary>
    file:/C:/product/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.bpel_APOPIIMPORT_1.0_91d4c6c1050ed25d005bc0d396a9db24.tmp/OFAPOPIIMPORT.wsdl [ OFAPOPIIMPORT_ptt::OFAPOPIIMPORT(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'OFAPOPIIMPORT' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ; nested exception is:
         ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    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. Contact oracle support if error is not fixable.
    </summary>
    </part>
    -<part name="detail">
    <detail>
    Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Error Code: 6550
    </detail>
    </part>
    </remoteFault>
    I thought I am providing the values for the required parameters. But still I am unable to submit. Could some one help me on fixing this issue?
    Thanks,

    That's probably your problem.
    Look at http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28351/T430238T430241.htm
    Search for "One-time Workaround for Concurrent Programs" in that document.

  • Invalid arguments in call for an Application Module

    We are writing a web-app which has two packages in our BC4J project, each with an Application Module. One of these app modules contains business components for objects owned by the user ILOGNET and the other for objects owned by the user EAGLE. We are allowing users to logon and connect to the database as themselves by specifying username and password dynamically as attributes of each instance of both application modules.
    The problem we are having is that for a particular JSP sometimes when we deploy, we get an "invalid arguments in call" error. Other times, it doesn't seem to be a problem. The user I am testing with has Oracle roles that have privileges to view all the necessary objects. I'm just not sure why it seems to be temperamental like this. Does anyone have any ideas ? The code for the problem JSP is shown below.
    Thanks for any help :
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <link rel="stylesheet" type="text/css" href="../style/style.css">
    <TITLE>
    Commenting Subject Administration Portlet
    </TITLE>
    <script language="JavaScript">
    var g_valid = false;
    function get_validate()
    var el_subject = document.getElementById("id_subject");
    el_subject.value = pro_trim(el_subject.value);
    if (el_subject.value == "")
    alert("Subject is a required field");
    g_valid = false;
    else
    g_valid = true;
    function pro_trim(p_in)
    var s_remaining = p_in;
    while (s_remaining.charAt(s_remaining.length - 1) == ' ')
    s_remaining = s_remaining.substring(0, s_remaining.length - 1);
    while (s_remaining.charAt(0) == ' ')
    s_remaining = s_remaining.substring(1, s_remaining.length);
    return s_remaining;
    </script>
    </HEAD>
    <body class="portlet">
    <jbo:ApplicationModule id="am_subjectAdmin" configname="eagle.EagleModule.EagleModuleLocal" releasemode="Stateful" username="<%=request.getRemoteUser()%>" password='<%=(String)session.getValue("PASSWORD")%>' />
    <jbo:DataSource id="ds_enditems" orderbyclause="eiacodxa" rangesize="4" appid="am_subjectAdmin" viewobject="EIACSELECTView" />
    <table class="portlet" width="100%" cellpadding=10 cellspacing=0>
              <tr class="portlet-title">
              <td>
    Commenting Subject Administration Portlet
              </td>
              </tr>
              <tr class="portlet-body" height="100%">
              <td>
    <table width="100%" align="center">
    <tr>
    <td height="50"></td>
    </tr>
    <tr>
    <td>
    <form name="frm_subject" action="cls_comment_subject" method="post" onSubmit="get_validate();return g_valid;">
    <table>
    <tr>
    <td width="150">End Item :</td>
    <td align="left">
    <jbo:InputSelect datasource="ds_enditems" dataitem="Eiacodxa" displaydatasource="ds_enditems" displaydataitem="Eiacodxa" displayvaluedataitem="Eiacodxa" ></jbo:InputSelect>
    </td>
    <td align="right">Subject Type :</td>
    <td align="left">
    <select name="type">
    <option value="C">Comment
    <option value="R">Response
    </select>
    </td>
    <td width="250"></td>
    </tr>
    <tr>
    <td width="150">Subject Title :</td>
    <td colspan="3">
    <input id="id_subject" type="text" name="subject" size="100" maxlength="255">
    </td>
    </tr>
    <tr>
    <td colspan="4" align="right">
    <input type="Submit" value="Submit Subject">
    <input type="Reset" value=" Clear ">
    </td>
    </tr>
    <tr>
    <td height="250">
    </td>
    </tr>
    </table>
    </form>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </HTML><jbo:ReleasePageResources />
    Regards,
    Joe Mellors

    I'd forgotten all about this until now when it just happened again. Seems strange that it works fine a lot of the time. It only seems to happen with one of the two Application Module's in the project.
    Here is the call stack. I'd appreciate any help.
    Thanks,
    Joe
    JBO-30003: The application pool (eagle.EagleModule.EagleModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:193)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:116)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:290)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:208)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:63)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:53)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:615)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:815)
         at oracle.jbo.server.NullDBTransactionImpl.initTxn(NullDBTransactionImpl.java:489)
         at oracle.jbo.server.NullDBTransactionImpl.connect(NullDBTransactionImpl.java:367)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:201)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.connect(ApplicationPoolImpl.java:2304)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1096)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:1669)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:289)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:181)
         at org.apache.jsp.mp_0005fdt$jsp._jspService(mp_0005fdt$jsp.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    ## Detail 0 ##
    java.sql.SQLException: invalid arguments in call
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:185)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:227)
         at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:973)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:197)
         at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:353)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:457)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:332)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:162)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:116)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:290)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:208)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:63)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:53)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:615)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:815)
         at oracle.jbo.server.NullDBTransactionImpl.initTxn(NullDBTransactionImpl.java:489)
         at oracle.jbo.server.NullDBTransactionImpl.connect(NullDBTransactionImpl.java:367)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:201)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.connect(ApplicationPoolImpl.java:2304)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1096)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:1669)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:289)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:181)
         at org.apache.jsp.mp_0005fdt$jsp._jspService(mp_0005fdt$jsp.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)

  • PLS-00306: wrong number or types of arguments in call in a for loop

    Dear all
    I recently put up another post about the same error message but as the message now relates to another part of my programme and, in my mind at least, a different conceptual idea, I thought I should start a new top. If that is not right thing to have done then please let me know. I am working in 10.2.
    I am trying to pass through multiple variables. When I run the code at the end of this question I get an error message:
    PLS-00306: wrong number or types of arguments in call to 'CUR_MAP_LIST'This relates to the line:
    FOR var_map_list IN cur_map_list (par_map_list (n))I think the reason the error message comes up is because par_map_list is a associate array / PL/SQL table and cur_map_list is based on %rowtype. Although I could be wrong. However I am not sure what I should be doing so that I don't get such an error message.
    I was reading through page 623 on Web Development 9i (by Brown; pub. McGrew-Hill) and pages 357-358 of Oracle Web Application Programming for PL/SQL Developers (by Boardman, Caffrey, Morse, Rosenzweig; pub. Prentice Hall), in order to try and write my code. As well as Oracle's Application Developer’s Guide - Fundamentals (Release 2), page 11-6. In particular the Web Development book uses the following:
    create or replace procedure query_department
    (in_dept_no owa_util.ident_arr)
    is
    cursor dept_cursor (nbt_dept_no emp.deptno%TYPE) is
    select empno, ename, mgr, sal, comm
    from scott.emp
    where deptno = nbt_dept_no;
    begin
      for x in 1 .. in_dept_no.count loop
        for dept_rec in dept_cursor(in_dept_no (x)) loop
        end loop;
      end loop;
    end;In that example the cursor selects empno, ename, mgr, sal and comm from emp. So if it is doing that the cursor must be of a VARCHAR2 and NUMBER data type. What I don't understand is the for dept_rec in part. For a start I am not sure where dept_rec comes from? If it is a NUMBER data type, how can the in_dept_no, which is a owa_util.ident_arr associate array / PL/SQL data type work with it. Unfortunately because the example is incomplete and doesn't include procedures relating to the in variables, I am unable to run it and try and learn from what it is doing, so that I can try and relate the concept to my own work.
    My programme is as follows. There may be other errors in the code not relating to this error. If so I hope to find these and resolve them once I understand what I should be doing here:
    --Global variables--
    gvar_mapviewer_host VARCHAR2(56) := 'http://tiger.iso.port.ac.uk:7785/mapviewer/omserver';
    gvar_proc_host VARCHAR2(56) := 'http://tiger.iso.port.ac.uk:7785/www/geg50160';
    gvar_xml_request VARCHAR2(100) :='?xml_request=<?xml version="1.0" standalone="yes"?>';
    --Main calling programming--
    PROCEDURE MAPS AS
    empty owa_util.ident_arr;
    var_xml_theme VARCHAR2(32767);
    BEGIN
    PROCMAPLIST (empty, var_xml_theme);
    END maps;
    --create checkboxes--
    PROCEDURE PROCCHECKLIST
    (par_check_list IN OUT owa_util.ident_arr,
      par_xml_theme OUT VARCHAR2
      AS
       CURSOR cur_map_list IS
        SELECT MT.map_title
               MI.map_id
               OMSN.map_sheet_number_id
               WRMF.web_raster_map_id
         FROM MAP_TITLE MT
              MAP_INFO MI
              MAP_SHEET_NUMBER OMSN,
              WEB_RASTER_MAP_FILE WRMF,
          WHERE MI.map_title_id = MT.map_title_id
          AND   MI.map_id = OMSN.map_id
          AND   WRMF.map_id = MI.map_id
          AND   WRMF.map_sheet_number_id = OMSN.map_sheet_number_id;
        var_map_list cur_map_list%ROWTYPE;
        var_xml_theme VARCHAR2(32767);
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    htp.headClose;
    htp.bodyOpen;
    htp.print('<FORM METHOD = "post"
                     ACTION = "'||gvar_proc_host||'.mappackage.procdisplay">');
        htp.print('<FIELDSET>
                     <LEGEND> Select the maps you wish to display </LEGEND>');
      FOR n IN 1 .. par_map_list.COUNT
      LOOP
      FOR var_map_list IN cur_map_list (par_map_list (n))
      LOOP
    htp.print('       <UL>
                       <LI>
                        <LABEL FOR = "WRMF'||
                                      var_map_list.web_raster_map_id||'">
                         <INPUT type = "checkbox"
                                id = "WRMFB'||
                                      var_map_list.web_raster_map_id||'"
                                name = "WRMFB'||
                                        var_map_list.web_raster_map_id||'"
                                value = "'||var_map_list.web_raster_map_id||'"
                                />
                                 Map title: '|| var_map_list.map_title||'<BR>
                                 Sheet number: '||var_map_list.map_sheet_number||'');
                        htp.print('</LABEL>
                       </LI>
                      </UL>');
        END LOOP;
      END LOOP;
         htp.print('</FIELDSET>');
         htp.print('<p>
                     <INPUT TYPE = "submit"
                            NAME = "Display&nbspselected&nbspmaps"
                            VALUE = "Display selected maps" />
                      </FORM>');
    htp.bodyClose;
    END PROCCHECKLIST;Thank you for reading. Kind regards
    Tim

    Dear everyone
    I have now resolved the problems I was having with multiple values and checkboxes, thanks to comments in this thread, read large chucks of Oracle PL/SQL Programming by Steve Feuerstein and suddenly realising where I am going wrong in terms of thinking.
    For a start, I when I was dealing with the multiple values, I was trying to get PL/SQL to pass them out. Of course this is done by the action part of the input form. Although I have not done much web coding, I did know about this. However because I was so engrossed in trying to understand how multiple values work, I didn't relate the two ideas. I even mind mapping the problem and still didn't get it.
    I also did not think to change my the action from post command to get, so that I could see what was coming out. However that would not have made too much of a difference because the other problem I had was related to where sub programmes were declared. The function which received the values was privately declared, and not in the package spec. This meant the web browser could not find the function as that can only make use of the programmes declared publicly.
    Once I made these changes, as well as correcting other minor typing mistakes, the values passed through as expected. The only other mistake I made was to include the name option after the submit input type. In my case I did not need to submit the value of that button. The revised code is as follows. In this version I replaced the function with a procedure that simply prints the checkbox values to screen. I have also made the input form action get, instead of post, so that the values can be seen in the web browser address bar:
    create or replace
    PACKAGE MAPSITE AS
    PROCEDURE MAPS;
    PROCEDURE PROCCHECKLIST
    (par_check_list IN OUT OWA_UTIL.IDENT_ARR
    PROCEDURE PROCDISPLAY
    (maplist IN OUT OWA_UTIL.IDENT_ARR);
    END MAPSITE;
    create or replace
    PACKAGE BODY MAPSITE AS
    --Global variables--
    gvar_mapviewer_host VARCHAR2(56) := 'http://tiger.iso.port.ac.uk:7785/mapviewer/omserver';
    gvar_proc_host VARCHAR2(56) := 'http://tiger.iso.port.ac.uk:7785/www/geg50160';
    gvar_xml_request VARCHAR2(100) :='?xml_request=<?xml version="1.0" standalone="yes"?>';
    --Main calling programming--
    PROCEDURE MAPS AS
    empty owa_util.ident_arr;
    BEGIN
    PROCCHECKLIST (empty);
    END MAPS;
    --create checkboxes--
    PROCEDURE PROCCHECKLIST
    (par_check_list IN OUT owa_util.ident_arr
      AS
       CURSOR cur_map_list IS
        SELECT MT.map_title,
               MI.map_id,
               OMSN.map_sheet_number_id,
               WRMF.web_raster_map_id
         FROM MAP_TITLE MT,
              MAP_INFO MI,
              MAP_SHEET_NUMBER OMSN,
              WEB_RASTER_MAP_FILE WRMF
          WHERE MI.map_title_id = MT.map_title_id
          AND   MI.map_id = OMSN.map_id
          AND   WRMF.map_id = MI.map_id
          AND   WRMF.map_sheet_number_id = OMSN.map_sheet_number_id;
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    htp.headClose;
    htp.bodyOpen;
    htp.print('<FORM METHOD = "post"
                     ACTION = "'||gvar_proc_host||'.mappackage.procdisplay">');
        htp.print('<FIELDSET>
                     <LEGEND> Select the maps you wish to display </LEGEND>');
      FOR var_map_list IN cur_map_list
      LOOP
    htp.print('       <UL>
                       <LI>
                        <LABEL FOR = "WRMF'||
                                      var_map_list.web_raster_map_id||'">
                         <INPUT type = "checkbox"
                                id = "WRMFB'||
                                      var_map_list.web_raster_map_id||'"
                                name = "maplist"
                                CHECKED = "' ||
                                           par_map_list ||'"
                                value = "'||var_map_list.web_raster_map_id||'"
                                />
                                 Map title: '|| var_map_list.map_title||'<BR>
                                 Sheet number: '||var_map_list.map_sheet_number||'');
                        htp.print('</LABEL>
                       </LI>
                      </UL>');
        END LOOP;
         htp.print('</FIELDSET>');
         htp.print('<p>
                     <INPUT TYPE = "submit"
                            VALUE = "Display selected maps" />
                      </FORM>');
    htp.bodyClose;
    END PROCCHECKLIST;
    ---PROCDISPLAY PROCEDURE---
    PROCEDURE PROCDISPLAY (maplist IN OUT owa_util.ident_arr)
    IS
    BEGIN
    FOR n IN 1..maplist.COUNT
    LOOP
      htp.print('Checkbox value i.e. var_map_list.web_raster_map_id is: ' ||maplist(n)||'
    <P>');
    END LOOP;
    END PROCDISPLAY;
    END MAPSITE;Kind regards
    Tim

  • Oracle.jms.AQjmsException: invalid arguments in call

    Hi
    Has anyone seen this error before?
    Environment Configuration:
    APP SERVER 9.0.4 (OUT 0F BOX CONFIG)
    JDK 1.4
    RED HAT ENTERPRISE SERVER 3.0
    COMPAC DL380
    ON VM SOFTWARE
    DB 9.2.0.4
    HP-UX 11i
    SUPERDOME
    Error logs:
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.pool.QueueConnectionPool]
    [getQueueConnection] :Using pooled queue connection for factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.pool.QueueSessionPool]
    [createQueueSession] :Failed to create queue session: oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.BytesMessageWriter]
    [writeBytesMessage] :Failed to write message onto queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue
    factory: java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.sil.common.log.silInteractionLogger] [log]
    :silInteractionLogger.log() Exception writing ServiceExecutionRecord to JMS queue: bcc.sde.common.exception.SDEException:
    Failed to write message onto queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in
    call: QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments
    in call;
    ---> nested: bcc.sde.common.jms.pool.JMSPoolException: QueueSessionPool.createQueueSession() failed to create queue
    session - oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.sil.bids.api.sql.BidsSQLInterface]
    [logInteractionRecord] :Failed to log interaction record: bcc.sde.common.exception.SDEException: silInteractionLogger.log()
    Exception writing ServiceExecutionRecord to JMS queue: bcc.sde.common.exception.SDEException: Failed to write message onto
    queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in
    call: QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments
    in call;
    ---> nested: bcc.sde.common.jms.pool.JMSPoolException: QueueSessionPool.createQueueSession() failed to create queue
    session - oracle.jms.AQjmsException: invalid arguments in call
    Database error with same error message:
    ORA-17433 - invalid arguments in call
    http://www.doc.gold.ac.uk/oracle/doc/java.817/a83724/ermesap3.htm
    Code causing problem:
    queueConnection = queueConnectionPool.getQueueConnection(queueConnectionFactoryName, runningExternal);
    queueSession = queueConnection.createQueueSession(TRANSACTIONAL, AUTO_ACK_MODE);

    I am facing the same problem. Have you figured out what the cause was? Thanks,

  • Wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATU

    I have been strucK at a point in invoking the procedure which has a boolean parameter which when called from java program get error saying that "wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATUS'". the procedure is given below along with the calling java code , and the Errors.
    If i change the parameter data type to VARCHAR2 (the parameter hilighted in red) in the in the procedure and invoke it with the same method it works fine, even if i change the "callableStatement.setBoolean(1, true); to callableStatement.setInt(1, 1); it works fine.When i call it with setting the boolean to the procedure from my java i get a error. Im really confused whether is this a issue with oracle? or with java code.
    Please can any body suggest me any kind of solution! to over come this scenario.
    ///// java code
    public void testThePackage() throws ClassNotFoundException { Connection connection = null; connection = (Connection) getConnection(); CallableStatement callableStatement = null; try { callableStatement = connection .prepareCall("{call L_test.p_retrieve_oppty_order_status(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}"); callableStatement.setBoolean(1, true); // callableStatement.setString(1, "YES"); // callableStatement.setInt(1, 1); // callableStatement.setLong(1, 1L); callableStatement.setString(2, "SFA"); callableStatement.setString(3, "123421"); callableStatement.setLong(4, 1L); callableStatement.setLong(5, 123L); callableStatement.setLong(6, 345L); callableStatement.setInt(7, 10); callableStatement.setInt(8, 2435); callableStatement.setInt(9, 5675); callableStatement.registerOutParameter(10, Types.NUMERIC); // on_return_status callableStatement.registerOutParameter(11, Types.VARCHAR); // os_duns_no callableStatement.registerOutParameter(12, Types.VARCHAR); // os_hq_duns_no callableStatement.registerOutParameter(13, Types.NUMERIC); // on_approval_id callableStatement.registerOutParameter(14, Types.NUMERIC); // on_approval_amt callableStatement.registerOutParameter(15, Types.VARCHAR); // os_message callableStatement.registerOutParameter(16, Types.VARCHAR); // os_approval_cd callableStatement.registerOutParameter(17, Types.VARCHAR); // os_security_term_cd callableStatement.registerOutParameter(18, Types.VARCHAR); // action // code callableStatement.registerOutParameter(19, Types.VARCHAR); // action // message // txt callableStatement.execute(); connection.commit(); } catch (SQLException e) { System.out.println(e.getMessage()); } } [/code] /////procedure  CREATE OR REPLACE PACKAGE BODY cust.L_test IS  PROCEDURE p_retrieve_oppty_order_status          (isNonAttilaAttempt boolean          , is_system_cd VARCHAR2          , is_order_id VARCHAR2          , in_oppty_id NUMBER          , in_company_id VARCHAR2          , in_acct_id NUMBER          ,in_local_rev NUMBER          ,in_switched_rev NUMBER          ,in_dedicated_rev NUMBER          , on_return_status  OUT NUMBER          , os_duns_no OUT VARCHAR2          , os_hq_duns_no OUT VARCHAR2          , on_approval_id OUT NUMBER          , on_credit_balance OUT NUMBER            , os_message OUT VARCHAR2      , os_approval_cd OUT VARCHAR2      , os_security_term_cd OUT VARCHAR2      ,os_action_cd  OUT VARCHAR2      ,os_action_txt_msg OUT VARCHAR2) IS      io_return l_cdt_util.return_data_t;            action_cd VARCHAR2(20):= NULL;      flag boolean:=false;  BEGIN  if isNonAttilaAttempt =[color=red]true[/color]  then --'YES'  true  flag:=true;  end if;  insert into example (id,data,deleted) values(1,'Test','YES');        END p_retrieve_oppty_order_status;    END cust.L_test;      CREATE OR REPLACE PACKAGE BODY cust.L_test IS PROCEDURE p_retrieve_oppty_order_status         (isNonAttilaAttempt boolean         , is_system_cd VARCHAR2         , is_order_id VARCHAR2         , in_oppty_id NUMBER         , in_company_id VARCHAR2         , in_acct_id NUMBER         ,in_local_rev NUMBER         ,in_switched_rev NUMBER         ,in_dedicated_rev NUMBER         , on_return_status  OUT NUMBER         , os_duns_no OUT VARCHAR2         , os_hq_duns_no OUT VARCHAR2         , on_approval_id OUT NUMBER         , on_credit_balance OUT NUMBER         , os_message OUT VARCHAR2     , os_approval_cd OUT VARCHAR2     , os_security_term_cd OUT VARCHAR2     ,os_action_cd  OUT VARCHAR2     ,os_action_txt_msg OUT VARCHAR2) IS     io_return l_cdt_util.return_data_t;        action_cd VARCHAR2(20):= NULL;     flag boolean:=false; BEGIN if isNonAttilaAttempt =[color=red]true[/color]  then --'YES'  true flag:=true; end if; insert into example (id,data,deleted) values(1,'Test','YES');       END p_retrieve_oppty_order_status; END cust.L_test;    /////error ORA-06550: line 1, column 7:  wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATUS'  line 1, column 7:  PL/SQL: Statement ignored                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi YoungWinston,
    I realy appriciate your comments on the standard of the code , i also accept procedure and code may not be readable,
    but the problem is not because of bloated call its just beacause of the Boolean parameter being passed throught the java code, and where as the SQL/PL does not allow BOOLEAN as paramater, please refer the below link for justification.
    what am expecting is , is there any solution to this problem (not a work arround solution).
    Please provide me with some sort of solution/hints or suggestions in achieving this solution,
    I would realy your effort
    Thanks
    ud
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/datatypes.htm#CJACJGBG
    Predefined PL/SQL BOOLEAN Data Type
    The BOOLEAN data type stores logical values, which you can use in logical operations. The logical values are the Boolean values TRUE and FALSE and the value NULL.
    The syntax for specifying an BOOLEAN data item is:
    BOOLEAN
    SQL has no data type equivalent to BOOLEAN; therefore you cannot use BOOLEAN variables or parameters in the following:
    SQL statements
    Built-in SQL functions (such as TO_CHAR)
    PL/SQL functions invoked from SQL statements
    You cannot insert the value TRUE or FALSE into a database column. You cannot retrieve the value of a database column into a BOOLEAN variable.
    To represent BOOLEAN values in output, use IF-THEN or CASE constructs to translate BOOLEAN values into another type (for example, 0 or 1, 'Y' or 'N', 'true' or 'false').

  • Java.sql.SQLException: invalid arguments in call

    Hi
    I am getting the following exception
    java.sql.SQLException: invalid arguments in call
    Please send me a soln.
    Thanks in advance

    I had to switch the classes12.jar file that I was using with Tomcat to the one that came packaged with JDeveloper. Thanks for the quick reponse though.

  • Invalid arguments in call

    Good Day,
    i am using oracle driver to test a small application and i am getting these Error:
    oracle.jdbc.driver.OracleDriver od = new oracle.jdbc.driver.OracleDriver();
    properties p = new properties();
    p.load("new FileInputStream("c:\\filename.properties");
    connection con = od.connect("jdbc:oracle:thin:@localhost:1521:sid",p);
    Statement st = con.createStatement();
    ResultSet rs = st.executeQuery("select user from dual");
    while(rs.next()) {
    System.out.println(rs);
    rs.close();
    Error Message is showing at od.connect("url",p);
    java.sql.SQLException: invalid arguments in call
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:183)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    Exception in thread "main"

    Hi user,
    try to do that:
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public void method() {
    try {
         Connection connection;
    String driver = "oracle.jdbc.driver.OracleDriver";
    String url = "jdbc:oracle:thin:@localhost:1521:Sid";
         Class.forName(driver).newInstance();
         connection = DriverManager.getConnection(url, your_user, your_password);
         PreparedStatement st = connection.prepareStatement("select user from dual");
         ResultSet rs = st.executeQuery();
         while(rs.next()) {
              System.out.println(rs);
         rs.close();
    } catch (ClassNotFoundException e) {
    } catch (IllegalAccessException e) {
    } catch (InstantiationException e) {
    } catch (SQLException e) {
    }

  • PLS-00306: wrong number or types of arguments in call

    Hi,
    Oracle9i
    created a procedure which will retrieve the records.
    As the procedure is to only retrieve the records so it does not have any IN parameters
    But on executing the procedure gets the below error:
    PLS-00306: wrong number or types of arguments in call to 'GET_PRODUCT_DETAILS'
    I have called the procedure as below:
    =======================
    Declare
    v_cur ...%type;
    BEGIN
    Package_name.GET_PRODUCT_DETAILS(v_cur);
    END;
    Procedure Body
    ==========
    create or replace PROCEDURE GET_PRODUCT_DETAILS( v_cur OUT      Cursor)
    is
    begin
    end;
    /

    Try creating the procedure with the out parameter as sys_refcursor.
    create or replace PROCEDURE GET_PRODUCT_DETAILS( v_cur OUT sys_refCursor)
    And declare the variable in your outer block also as sys_refcursor.
    Declare
    v_cur sys_refcursor;
    BEGIN
    Package_name.GET_PRODUCT_DETAILS(v_cur);
    END;
    Of course this would require that your actual procedure GET_PRODUCT_DETAILS should have a statement like
    " open V_cur for some select statement that you use to retrieve the records".
    You could also create GET_PRODUCT_DETAILS with the same %type decalration which you use in the outer block
    eg
    create or replace PROCEDURE GET_PRODUCT_DETAILS( v_cur OUT x.y%type)
    Declare
    v_cur x.y%type;
    BEGIN
    Package_name.GET_PRODUCT_DETAILS(v_cur);
    END;
    /

  • ORA-06553: PLS-306: wrong number or types of arguments in call to 'EDN_DEQU

    Hi,
    I have installed Oracle fusion 11g on windows vista SP1 system. I have followed all the steps provided in the Oracle fusion installation guide.
    After installation when i tried to start the SOA server i'm continously getting the below warning message in the log file.
    [2009-11-27T03:18:23.203+05:30] [soa_server1] [WARNING] [SOA-31013] [oracle.integration.platform.blocks.event.saq] [tid: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@291d84] [userId: <anonymous>] [ecid: 0000IKmTpBfB5Ewr0CyWMF1B3jQf00000B,0] [APP: soa-infra] Error handling message (rolling back).[[
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call to 'EDN_DEQUEUE_OAOO_DELIVERY'
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:98)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.readOAOODelivery(SAQBusinessEventBus.java:1222)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleSingleOAOODelivery(SAQBusinessEventBus.java:690)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleQueueEvents(SAQBusinessEventBus.java:614)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.access$000(SAQBusinessEventBus.java:76)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.run(SAQBusinessEventBus.java:279)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:171)
         at java.lang.Thread.run(Thread.java:619)
    I have restarted everything and tried again which resulted in the same scenario.
    Anyone,Please help me to troubleshoot this and walk me through this issue.Thanks in advance!.

    Hi to all,
    I have the same problem after a fresch installation of the SOA SUite on a Windows XP.
    After both the admin server and the SOA Server for the domain started correctly then the huge amount of errors
    <ORA-06553: PLS-306: ....>
    is preventing any work on the dual core PC.
    Who can help ?
    best regards
    ############## traces SOA_server console ###############
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Dec 16, 2009 10:09:10 AM CET> <Warning> <Server> <BEA-002611> <Hostname "venus", maps to multiple IP addresses: 192.168
    .0.52, 192.168.0.41>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.0.41:800
    1 for protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.52:8001 f
    or protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:8001 f
    or protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <WebLogicServer> <BEA-000330> <Started WebLogic Managed Server "soa_server1" for
    domain "domain1" running in Production Mode>
    INFO: WLSFabricKernelInitializer$1.handleNotification ......received server running notification. proceeding with compo
    site deployments
    INFO: WLSFabricKernelInitializer$2.run --------->deploying composite model: default/HelloWorldComposite!1.0*53efe7eb-0cc
    6-4fd4-a4c7-72429e842d89
    <Dec 16, 2009 10:09:13 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Dec 16, 2009 10:09:13 AM CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    INFO: SSLSocketFactoryManagerImpl.getKeystoreLocation SOA Keystore location: C:/Oracle/MIDDLE~1/HOME_1~1/USER_P~1/domain
    s/domain1/config/fmwconfig/default-keystore.jks
    INFO: SSLSocketFactoryManagerImpl.getKeystorePassword Obtained null or empty keystore password
    INFO: SSLSocketFactoryManagerImpl.getKeyPassword Obtained null or empty key password
    INFO: SSLSocketFactoryManagerImpl.getSSLSocketFactory SOA-20160
    INFO: DeploymentEventPublisher.invoke Publishing deploy event for default/HelloWorldComposite!1.0*53efe7eb-0cc6-4fd4-a4c
    7-72429e842d89
    INFO: WLSFabricKernelInitializer$2.run -------> Done deploying composites. took 1 seconds.
    Dec 16, 2009 10:09:16 AM oracle.integration.platform.blocks.event.saq.SAQBusinessEventBusMessages errorHandlingMessage
    WARNING: Error handling message (rolling back).
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call to 'EDN_DEQUEUE_OAOO_DELIVERY'
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:98)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.readOAOODelivery(SAQBusinessEventBus.java:12
    22)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleSingleOAOODelivery(SAQBusinessEventBus
    .java:690)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleQueueEvents(SAQBusinessEventBus.java:6
    14)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.access$000(SAQBusinessEventBus.java:76)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.run(SAQBusinessEventBus.java:279)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:171)
    at java.lang.Thread.run(Thread.java:619)
    ################ traces WebLogic admin server ######################
    starting weblogic with Java version:
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\HOME_1~1\JDK160~1\bin\java -client -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblo
    gic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\HOME_1~1\WLSERV~1.3\server\lib\weblogic.policy -Xverify:
    none -da -Dplatform.home=C:\Oracle\MIDDLE~1\HOME_1~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\HOME_1~1\WLSERV~1.3\serve
    r -Dweblogic.home=C:\Oracle\MIDDLE~1\HOME_1~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\HOME_1~1\USER_P~1\doma
    ins\domain1 -Doracle.home=C:\Oracle\Middleware\home_11gR1\Oracle_SOA1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.
    Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\Middleware\home_11gR1\Oracle_SOA1\modules\or
    acle.jrf_11.1.1\jrocket_optfile.txt -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\HOME_1~1\USER_P~1\domains\domain1\co
    nfig\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.alternateTypesDirectory=C
    :\Oracle\Middleware\home_11gR1\Oracle_SOA1\modules\oracle.ossoiap_11.1.1,C:\Oracle\Middleware\home_11gR1\Oracle_SOA1\mod
    ules\oracle.oamprovider_11.1.1 -Dsso.filter.enable=true -Doracle.security.jps.policy.migration.validate.principal=false
    -Dsoa.archives.dir=C:\Oracle\Middleware\home_11gR1\Oracle_SOA1\soa -Dsoa.instance.home=C:\Oracle\MIDDLE~1\HOME_1~1\USE
    R_P~1\domains\domain1 -Dtangosol.coherence.clusteraddress=227.7.7.7 -Dtangosol.coherence.log=jdk -Djavax.xml.soap.Messag
    eFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dcom.sun.management.jmxremote -Djava.protocol.handler.pkgs="oracle
    .mds.net.protocol|oracle.fabric.common.classloaderurl.handler|oracle.fabric.common.uddiurl.handler" -Dweblogic.transacti
    on.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Dem.oracle.home=C:\Oracle\Middleware\home_11gR1\O
    racle_SOA1 -Djava.awt.headless=true -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.lo
    gErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\HOME_1~1\patch_wls1031\profiles\default\sysext_manifest_classpa
    th;C:\Oracle\MIDDLE~1\HOME_1~1\patch_oepe1031\profiles\default\sysext_manifest_classpath weblogic.Server
    <Dec 16, 2009 10:02:02 AM CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Clie
    nt VM Version 11.0-b16 from Sun Microsystems Inc.>
    <Dec 16, 2009 10:02:03 AM CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.1.0 Thu Jun 11 00:26:56
    EDT 2009 1227385 >
    <Dec 16, 2009 10:02:07 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Dec 16, 2009 10:02:07 AM CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Dec 16, 2009 10:02:08 AM CET> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\home_11g
    R1\user_projects\domains\domain1\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be
    written to this file.>
    <Dec 16, 2009 10:02:17 AM CET> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Dec 16, 2009 10:02:34 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Dec 16, 2009 10:02:34 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Dec 16, 2009 10:02:47 AM CET> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.se
    curity.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application em is not versioned.>
    Dec 16, 2009 10:03:12 AM org.apache.beehive.netui.util.logging.Logger error
    SEVERE: ServletContainerAdapter manager not initialized correctly.
    Dec 16, 2009 10:03:30 AM org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl init
    WARNING: Configurator services already initialized.
    ADF Library non-OC4J post-deployment (millis): 78
    <Dec 16, 2009 10:03:42 AM CET> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Do
    main level Diagnostic Service successfully.>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Dec 16, 2009 10:03:43 AM CET> <Warning> <Server> <BEA-002611> <Hostname "venus", maps to multiple IP addresses: 192.168
    .0.52, 192.168.0.41>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7001 f
    or protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.0.41:700
    1 for protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.52:7001 f
    or protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for d
    omain "domain1" running in Production Mode>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    ###############################################################################################

  • PLS-00306: wrong number or types of arguments in call to 'TO_CHAR '

    Hi guys, I am learning Pl/SQL. Trying to write a simple function which calculates some dates. It takes contract_date and determines the date of the following Sunday.
    My code current has the compiler error: PLS-00306: wrong number or types of arguments in call to 'TO_CHAR 'which I believe has to do with the to_char(trunc(contract_date,'D')) := contract_weekday;
    I do not understand what is wrong with my statement there..
    Here is my code: Thanks for any help!
    show errors
    create or replace FUNCTION
    contract_dates(contract_date IN DATE)
    RETURN DATE
    IS
    starting_sunday DATE;
    --ending_saturday DATE := starting_sunday + 6;
    contract_weekday varchar(32);
    days_add NUMBER;
    BEGIN
    to_char(trunc(contract_date,'D')) := contract_weekday;
    case contract_weekday
    when 1 then days_add := 6;
    when 2 then days_add := 5;
    when 3 then days_add := 4;
    when 4 then days_add := 3;
    when 5 then days_add := 2;
    when 6 then days_add := 1;
    else days_add := 7;
    end case;
    starting_sunday := contract_date + days_add;
    RETURN to_date(starting_sunday);
    END;

    It's the other way around:
    CREATE OR REPLACE FUNCTION
    contract_dates(contract_date IN DATE)
    RETURN DATE
    IS
    starting_sunday DATE;
    --ending_saturday DATE := starting_sunday + 6;
    contract_weekday varchar(1);
    days_add NUMBER;
    BEGIN
    contract_weekday := to_char(trunc(contract_date,'D'));
    case contract_weekday
    when 1 then days_add := 6;
    when 2 then days_add := 5;
    when 3 then days_add := 4;
    when 4 then days_add := 3;
    when 5 then days_add := 2;
    when 6 then days_add := 1;
    else days_add := 7;
    end case;
    starting_sunday := contract_date + days_add;
    RETURN to_date(starting_sunday);
    END;

  • PLS-00306: wrong number or types of arguments in call to 'p_proc'

    Hi,
    This code call a procedure which takes a VARRAY type as parameter. I face this error
    when i compile the code.
    java.sql.SQLException: ORA-06550: Line 1, column 7 :
    PLS-00306: wrong number or types of arguments in call to 'p_proc'
    ORA-06550: Line 1, column 7 :
    PL/SQL: Statement ignored
    someone can tell what's wrong. Below, you have the source code used in this test case
    a sample code is welcome.
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.oracore.Util;
    import oracle.jdbc.*;
    import java.math.BigDecimal;
    public class ArrayExample3 {
    public static void main(String args[]) throws Exception {
    // Register the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    // Connect to the database
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@Anais:1521:BLB",
    "candide", "candide");
    // It's faster when auto commit is off
    conn.setAutoCommit(false);
    // create a new ARRAY object
    int elements[] = {300, 400, 500, 600};
    ArrayDescriptor desc = ArrayDescriptor.createDescriptor
    ("NUM_VARRAY", conn);
    ARRAY newArray = new ARRAY(desc, conn, elements);
    CallableStatement cs = conn.prepareCall("{call pe_cl2.p_proc(?)}");
    ( (OracleCallableStatement) cs).setArray(1, newArray);
    cs.executeUpdate();
    // Close all the resources
    cs.close();
    conn.close();
    CREATE OR REPLACE TYPE num_varray_t AS VARRAY(10) OF NUMBER;
    CREATE TABLE varray_table2 (col1 number);
    create or replace package candide.PE_CL2 is
    PROCEDURE p_proc(Id_clt IN num_varray);
    end PE_CL2;
    create or replace package body candide.PE_CL2 is
    PROCEDURE p_proc(Id_clt IN num_varray) IS
    BEGIN
    FORALL i IN Id_clt.FIRST .. Id_clt.LAST
    INSERT INTO varray_table2 VALUES (Id_clt(i));
    COMMIT;
    END;
    end PE_CL2;
    thanks Peter

    You create type num_varray_t, but in procedure your input parameter is of type num_varray. How this type is specified?

  • Wrong number or types of arguments in call to gt

    <Dec 1, 2014 12:17:54 PM CST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY GetHighVolume AS  
         select
      trade.symbol, trade.volume from AdapterOutputChannel [now] as trade
      where (trade.volume IS NOT NULL)
      and (trade.symbol like 'IBM')
      and (trade.symbol = 'IBM')
      and (trade.volume > 10) 
      >
    <Dec 1, 2014 12:17:54 PM CST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY GetHighVolume AS  
         select
      trade.symbol, trade.volume from AdapterOutputChannel [now] as trade
      where (trade.volume IS NOT NULL)
      and (trade.symbol like 'IBM')
      and (trade.symbol = 'IBM')
      and (>>trade.volume > 10<<) 
    wrong number or types of arguments in call to gt. Check the spelling of the registered function. Also confirm that its call is correct and its parameters are of correct datatypes.>
    <Dec 1, 2014 12:17:54 PM CST> <Emergency> <CQLServerTrace> <BEA-000000> <oracle.cep.exceptions.CEPException: wrong number or types of arguments in call to gt>
    <Dec 1, 2014 12:17:54 PM CST> <Error> <CQLProcessor> <BEA-000000> <Failed to create statement [GetHighVolume].
    Invalid statement: "select
      trade.symbol, trade.volume from AdapterOutputChannel [now] as trade
      where (trade.volume IS NOT NULL)
      and (trade.symbol like 'IBM')
      and (trade.symbol = 'IBM')
      and (>>trade.volume > 10<<)"
    Description: wrong number or types of arguments in call to gt
    Cause: This error occurs when the named function call cannot be matched to any declaration for that function name. The function name might be misspelled, a parameter might have the wrong datatype, or the function declaration might be faulty
    Action: Check the spelling of the registered function. Also confirm that its call is correct and its parameters are of correct datatypes.>
    <Dec 1, 2014 12:17:55 PM CST> <Error> <Deployment> <BEA-2045016> <The application context "TradeReport" could not be started. Could not initialize component "<unknown>":
    Invalid statement: "select
      trade.symbol, trade.volume from AdapterOutputChannel [now] as trade
      where (trade.volume IS NOT NULL)
      and (trade.symbol like 'IBM')
      and (trade.symbol = 'IBM')
      and (>>trade.volume > 10<<)"
    Description: wrong number or types of arguments in call to gt
    Cause: This error occurs when the named function call cannot be matched to any declaration for that function name. The function name might be misspelled, a parameter might have the wrong datatype, or the function declaration might be faulty
    Action: Check the spelling of the registered function. Also confirm that its call is correct and its parameters are of correct datatypes.>
    i use OEP 11g. help me!

    It seems like the semantic checks for comparison expression "trade.volume>10" is failing.
    Kindly make sure that trade.volume is CQL native "int" type.
    If problem is still coming after datatype checks, please share your EPN and configuration files with queries.

  • Error PLS-00306: wrong number or types of arguments in call to

    I am getting the following Error when calling stored Procedure, I have tried with Last Parameter PRESULT and WITHOUT IT, it fails in both the instance.
    =======================================================================
    "System.Data.OracleClient.OracleException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'UPDATECOTRACKING'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    =======================================================================
    signature of Stored Procedure is as follow
    (pmaster_key IN sca_costtrackinglog.master_key%type,
         pdoc_master_key IN sca_costtrackinglog.master_key%type,     
    pfrenumber IN sca_costtrackinglog.fre_number%type,     
    pnotice1 IN sca_costtrackinglog.notice1%type,
    pnotice2 IN sca_costtrackinglog.notice2%type,
    padditreceived IN sca_costtrackinglog.additreceived%type,
    pfreanticipate IN sca_costtrackinglog.freanticipate%type,
    pdateofnot IN sca_costtrackinglog.dateofnot%type,
    pdateofmeeting IN sca_costtrackinglog.dateofmeeting%type,
    psenttocontractor IN sca_costtrackinglog.senttocontractor%type,
    pcouforexecution IN sca_costtrackinglog.couforexecution%type,
    pcomments IN sca_costtrackinglog.comments%type,
    pcreateby IN sca_costtrackinglog.createby%type,
    peditby IN sca_costtrackinglog.editby%type,
         presult OUT number) is
    This is the Trace of Parameters from actual Call, that fails with above error.
    Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(26), Value = 000328JYA30008HSWBCK01NYC
    Parameter Name : pdoc_master_key(Input),Type(AnsiString) Size(26), Value = 310657KLF30025HSWBCK01NYC
    Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(12), Value = 00015
    Parameter Name : PNOTICE1(Input),Type(DateTime) Size(1), Value = 3/25/2010
    Parameter Name : PNOTICE2(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(1), Value =
    Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(1), Value =
    Parameter Name : pcouforexecution(Input),Type(DateTime) Size(1), Value =
    Parameter Name : pcomments(Input),Type(AnsiString) Size(250), Value =
    Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
    Parameter Name : PEDITBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Below is the trace from Data.OracleClient.OracleCommandBuilder.DeriveParameters(Cmd)
    Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PDOC_MASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PNOTICE1(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PNOTICE2(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PCOUFOREXECUTION(Input),Type(DateTime) Size(0), Value =
    Parameter Name : PCOMMENTS(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PEDITBY(Input),Type(AnsiString) Size(2000), Value =
    Parameter Name : PRESULT(Output),Type(VarNumeric) Size(0), Value =
    ******************************************************************************************************************

    In the Oracle database, the body of the package FWA_PRI API, the procedure ValidatePri declares P_PriREc as being :
    PAYMENT_REQUEST_IMPORT%ROWTYPE
    As you can see above, the DoPri Procedure expects a type p_PriRec as its second argument.
    Therefore in my procedure I do the following:
    create or replace procedure spMatchPayment is
    BEGIN
    DECLARE
           CURSOR StageCurs IS SELECT * FROM PAYMENT_REQUEST_IMPORT;
                  p_payment_req_import PAYMENT_REQUEST_IMPORT%ROWTYPE;
                  BEGIN
                       OPEN StageCurs();
                            LOOP
                                FETCH StageCurs INTO P_payment_req_import;
                                EXIT WHEN StageCurs%NOTFOUND;
                                fwa_pri.DoPri(NULL, fwa_pri.DoPri('M',P_PriRec => p_payment_req_import);                           
                             END LOOP;
                        CLOSE StageCurs;
                   END;
    end spMatchPayment;
    Now, when I am trying to compile I am getting the Compilation errors for PROCEDURE IMPACT.SPMATCHPAYMENT
    Error: PLS-00306: wrong number or types of arguments in call to 'DOPRI'
    Line: 16
    Text: fwa_pri.DoPri(NULL,P_PriRec => p_payment_req_import);
    I don't see what's wrong on my code......HELP!!

  • PLS-00306: wrong number or types of arguments in call to 'myStoredProc'

    I don't understand why I get the below error when I run my stored proc like this (here is the signature of my stored proc
    PROCEDURE myStoredProc(thisCursor OUT MyRefCur);
    exec myStoredProc
    Error starting at line 1 in command:
    exec myStoredProc
    Error report:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'myStoredProc'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Suzie wrote:
    I don't understand why I get the below error when I run my stored proc like this (here is the signature of my stored proc
    PROCEDURE myStoredProc(thisCursor OUT MyRefCur);So the procedure requires 1 argument.
    exec myStoredProcand you're calling it with 0 arguments. That's the wrong number. Call the procedure with 1 arguement:
    VARIABLE  c  REFCURSOR
    EXEC myStoredProc (:c);

Maybe you are looking for

  • CP5 Freezing when editing video over multiple slides

    Captivate continuously freezes when I'm working with a video that I've spread over multiple slides. This is a Windows 7 computer.  I've cleared my cache incase that had something to do with that. Any help would be apreciated. Susan

  • Queries in SRM

    Hi All, 1.Can I build queries in SRM on CCM tables. 2.I'm using users_gen to assign user to root org from the option ' copy user and employee data from template',further giving org unit ID and selecting the user id,do I need to assign the user again

  • Bound with inverse problem

    In the code below, model variable is initialized to "abc". It is bound to tbox with inverse. So when prgram runs, the string "abc" is expected in text box but it does not appear unless a key is pressed on the text box. Normally in the program, data i

  • HTTP 403 error when connecting to MySQL

    Hello all. I have read a few posts that are similar in nature to the issue that I am having. Before I run off to the Ubuntu discussion forum,  I thought that I would run this by some of the resident gurus. First, my setup. Running DW CS6 on my laptop

  • How to idnetify the UUID in Simple Bluetooth Server.vi

    Please help to hown to identify UUID for a Bluetooth application.....