UTL_DBWS - problem passing multiple parameters

Hi
I am getting an exception when trying to pass more than one inpput parameter.
Any idea?
ORA-29532: Java call terminated by uncaught Java exception: java.lang.ArrayIndexOutOfBoundsException

See
Oracle 10gR2 WebService Call-In & Call-Out via PL/SQL (Step-by-Step Guide)
you have to use the add_parameter method.
SYS.UTL_DBWS.add_parameter(l_call, 'args0', long_type_qname, 'ParameterMode.IN');

Similar Messages

  • Passing multiple parameters to an Oracle procedure

    I'm having trouble passing multiple parameters to a stored procedure in Crystal Reports 2008 (12.2.0.290).
    I'm using an OLE DB (ADO) connection to an Oracle 10g database.
    I have created a stored procedure that has 3 parameters (in out sys_refcursor, in varchar2, in varchar2) and conforms to all of Crystal Reports' requirements for stored procedures.
    When I select my stored procedure in the Database Expert, it prompts me to enter values for both varchar2 parameters. I enter values and everything seems fine. I close the Database Expert.
    Now the stored procedure is listed in the Field Explorer, but I cannot expand the list of fields. There is a plus sign next to the stored procedure, but clicking on it does nothing. I do not get any error messages.
    If I remove one of the parameters from the stored procedure and try again, everything works fine. I've also tried using a variety of parameter types, but this problem occurs every time there are 2 or more parameters (3 including the ref cursor).
    Please help.

    Try a different Database driver...

  • Passing multiple parameters to attribute value

    Hi All,
    My requirement is, the notification message should get a link, by clicking the user should navigate to the form. I kept the attribute type as form and attribute value as INV_INVIDITM:ITEM_ID=41817 where inv_inviditim is the form function name and item_id is the parameter.
    The problem is when passing multiple parameters. I am passing multiple parameters as INV_INVIDITM:ITEM_ID=41817&ORG_ID=204.
    Can any one help me to solve the above problem?
    Thanks is advance.
    Srinivas

    Try a different Database driver...

  • How To Pass Multiple Parameters In URL with Report Builder

    Hi,
    I use apex 4.2 with database xe 11g and i use report builder to build my report i use this link to call report
    function runrep(){
    var vurl = 'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO');
    popupURL(vurl);
    now i want to pass Multiple Parameters like P138_ITEM_CODE , P138_UOM_CODE
    how can i add this Parameters in URL ?
    Regards
    Ahmed

    Ramani_vadakadu wrote:
    window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
    the above code we are using apex JS to BI publisher calling for report as PDF
    i don't know exactly where your parameters , did you customize my link to multiple parameters
    'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); 

  • Passing multiple parameters between two report portlets on the same page

    Hi,
    I want to pass multiple parameters between two report portlets on the same page.
    I have been succussful passing a single parameter between two portlets. The
    following are the steps :
    (1) Created first report based on the query
    SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
    (2) Created 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) Added pl/sql code before display page on the 2nd report
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
    et_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    Sofar it works fine for one parameter (deptno) . Now I want to add one more
    parameter say empno to my first report query and would like to pass both the
    parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
    Thanks
    Asim

    Hi,
    You will have to do the same thing
    The select will be like this
    SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
    FROM EMP
    In the additional plsql code do the same for empno like this
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
    Thanks,
    Sharmila

  • Probs sharing a report that uses SETPARAM to pass multiple parameters

    Ok we have master DB account Disco that creates reports. I also have oracle acct Duser for the users to run the reports.
    Per Metalink Note:304192.1, we've got the setparam stuff working to pass in date parameters into our sheet. This works fine when I run the report as Disco. When I try to share the report to Duser, it still prompts for the dates, but then the report returns all 0's for the results. I have no idea why this is happening.
    Any suggestions on how to share reports with other users that pass in parameters would be much appreciated. thanks!!
    Allen

    Hi Allen,
    I would always recommend that you use sys_context to pass parameters. You can search this site for sys_context or take a look at (Re: Passing multiple parameters into Custom Folder... for more details.
    Rod West

  • How to Pass Multiple Parameters To ReportReuest Method in Oracle  BI 11g

    Hi,
    Am integrate Oracle BI Publisher 11g via Web Services in Oracle Forms,For that am developing code in PublicReportServiceClient Class. This worked properly with out passing parameter to the report. so how to pass parameters to the report . If Report is requried some Parameters to generate report.
    If any one knows about How to Passing Multiple Parameters to ReportRequest Methos in Oracle 11g. Pls help me.
    Am trying with the below code for PassParameters to ReportReuest Method in Oracle BI 11g. But by using this code am able to pass only one parameter to the Report, not for multiple Parameter Passing.
    ArrayOfParamNameValue PnameValue=new ArrayOfParamNameValue();
    ParamNameValue Namevalue=new ParamNameValue();
    Namevalue.setName("P_SNO"):
    ArrayOfString aos=new ArrayOfString();
    aos.getItem().add("2");
    Namevalue.setValues(aos);
    PnameValue.getItem().add(Namevalue);
    ReportRequest RepReq = new ReportRequest();
    RepReq.setParmeterNameValues(PnameValue);
    Following method  callRunReport() with an array of parameters used in Oracle Bi 10g,To pass multiple report parameters to ReportRequest method.
    public void callRunReport (String reportPath, String[] paramName, String[] paramValue, Stringusername, String password, String format, String template, String outFile)
    try {
    bip_webservice.proxy.PublicReportServiceClient myPort =new bip_webservice.proxy.PublicReportServiceClient();
    // Calling runReport
    ReportRequest repRequest = new ReportRequest();
    repRequest.setReportAbsolutePath(reportPath);
    repRequest.setAttributeTemplate(template);
    repRequest.setAttributeFormat(format);
    repRequest.setAttributeLocale(“en-US”);
    repRequest.setSizeOfDataChunkDownload(-1);
    if (paramName != null)
    ParamNameValue[] paramNameValue = new ParamNameValue[paramName.length];
    String[] values = null;
    for (int i=0; i<paramName.length; i++)
    paramNameValue[i] = new ParamNameValue();
    paramNameValue.setName(paramName[i]);
    values = new String[1];
    values[0] = paramValue[i];
    paramNameValue[i].setValues(values);
    repRequest.setParameterNameValues(paramNameValue);

    Ramani_vadakadu wrote:
    window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
    the above code we are using apex JS to BI publisher calling for report as PDF
    i don't know exactly where your parameters , did you customize my link to multiple parameters
    'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); 

  • Passing multiple parameters to a portlet

    Hi All,
    I have created a portlet form a taskflow, and using the WSRP Producer connection I am adding this portlet into a new application's JSF page.
    1. Is it possible to create a portlet that can accept multiple parameters?
    2. is it possible to map a portlet method to a method in new app.
    3. is there some implicit event that can be passed when all of the parameters are passed to the portlet.
    What my requirement is:- I have to send some 4-5(String) parameters from the new application to the portlet application.
    what would be the sequence in which the setters of this parameters would be called in the Portlet app?
    can you please tell me if this is possible, and how to do it. Some tutorial would help.
    Regards,
    ND

    Your question is WebCenter related and you should ask it in the forum {forum:id=354}.
    Anyway, you can pass multiple parameters to a portlet. Define the parameters as parameters of the corresponding bounded TaskFlow. When the taskflow is wrapped as a portlet producer by the JSF Portlet Bridge all the taskflow parameters will be exposed as separate navigational portlet parameters. If you consume the portlet at some page, then the portlet parameters will be bound to PageDef variables and you can use these variables to pass parameter values to the portlet. If you have to re-send new parameter values at runtime, just set the corresponding pageDef variables and refresh the <adfp:portlet> tag by PPR. Do not forget to mark the portlet's region binding in the PageDef as RefreshIfNeeded, otherwise it will not get the new values and will not refresh.
    Look at the following article in the documentation about using navigational parameter for contextually linking of portlets:
    http://download.oracle.com/docs/cd/E14571_01/webcenter.1111/e10148/jpsdg_pages.htm#CHDJABHD
    If you have additional questions, please ask them in the WebCenter forums.
    Dimitar

  • How to pass multiple parameters by URL?

    hi i am having trouble passing multiple parameters by URL.
    i tried the following codes but still not successful in using request.getParameter
    <a href="remove.jsp?imageid=<%=imageId%>&userid=<%=user%>">remove</a>
    <a href="remove.jsp?imageid=<%=imageId%>&userid=<%=user%>">remove</a>

    Looks good to me.
    What parameters are you getting at the other end?
    imageid and userid? (case is important)
    What does the address url in the browser show?
    What code are you using to retrieve the parameters?

  • How to pass multiple parameters to DB adapter through BPEL process?

    Hi All
    I have created a BPEL process in which I am using invoke activity to call DB package.procedure having multiple parameters.Once the package gets executed it shows me custom exception message as input parameters are showing null values inside the package.
    When I see the audit flow in BPEL instance , it shows correct values against each parameter in BPEL process.
    Anybody know about this problem? why DB package is not able to read input parameters send through BPEL process?
    Regards
    Yogi

    Hi Chintan
    Thanks for your reply.
    Here is my procedure call. For these input and output parameters I have created variables @ BPEL process. Those variables are accepting values correctly.
    PROCEDURE custom_po_proc(
    p_return_status OUT VARCHAR2,
    p_error_code OUT VARCHAR2,
    p_error_desc OUT VARCHAR2,
    p_debug IN VARCHAR2 DEFAULT 'N',
    p_lgcy_trxn_num IN VARCHAR2,
    p_trxn_type IN VARCHAR2,
    p_operation IN VARCHAR2 DEFAULT NULL,
    p_po_number IN VARCHAR2,
    p_line_num IN VARCHAR2,
    p_org_code IN VARCHAR2,
    p_quantity IN NUMBER,
    p_user_name IN VARCHAR2);
    I just have one DB adapter based on above procedure.
    How do I increase the logging level, have not done that before.
    Regards
    Yogi

  • Passing multiple parameters in sql query

    Hi All,
    This may not be the correct place to post this.
    How to pass multiple paramters to a variable in sql developer.
    Ex: Select * from Country where state= :statename (Country is table name, state is column name)
    If I execute the above query in SQL Developer I can pass only one parameter at a time for :statename ie either KERALA,KARNATAKA,PUNJAB etc.
    How can I pass multiple values (all KERALA,KARNATAKA,PUNJAB) or ALL column values at a time in SQL Developer.
    Thanks

    user1668671 wrote:
    How to pass multiple paramters to a variable in sql developer.A scalar variable by definition cannot store more than one value at a time.
    Array type variables can, as this example using the built in type odcivarchar2list shows
    SQL> select
      2      object_name,
      3      object_type
      4  from
      5      all_objects o
      6  where
      7      o.object_name in
      8      (select column_value from
      9      table(sys.odcivarchar2list('DUAL','ALL_OBJECTS')));
    OBJECT_NAME                    OBJECT_TYPE
    DUAL                           TABLE
    DUAL                           SYNONYM
    ALL_OBJECTS                    VIEW
    ALL_OBJECTS                    SYNONYM
    ALL_OBJECTS                    VIEWHere is a full discussion with multiple solutions for various versions including a string parsing
    http://tkyte.blogspot.com/2006/06/varying-in-lists.html
    Does SQL Developer support array type variable? I don't know they may know here {forum:id=260}
    Otherwise the link above shows how to parse a single character variable into multiple values that will be needed.

  • Passing multiple parameters (caption and textbox) to another form failing to pick up Caption

    I have an Microsoft Access application that is more like a form than a database. Users complete the form and then submit it to us for review. There are many questions and memo fields on the different forms (sections). Some of the memo forms are small due
    to the limitation of the size of the form (22 inches) therefore there is a lot of scrolling. I want to include a button on each question so that when users click on it will display a form where I pass the label caption (question) and the answer to this form.
    Alternatively I can have a expanded form for each question but that would require over 50 forms. The Application is quite large. I wanted to have one form and just call the different questions/answers.
    The below is working for the text box (AnswerTxt). However the CaptionTxt is not holding it's value when it gets to the new form. It's only displaying the name of the variable name, CaptionTxt
    On the form where the data resides I have:
    Private Sub test_Click()
    Dim CaptionTxt As String
    Dim AnswerTxt As String
    CaptionTxt = Me.lblSect11_5.Caption
    AnswerTxt = Me.Section11_5.Value
    Debug.Print CaptionTxt
    Debug.Print AnswerTxt
    DoCmd.OpenForm "Form1", OpenArgs:="CaptionTxt|" & AnswerTxt
    End Sub
    On the new form with an expanded memo field
    Private Sub Form_Load()
    Dim intPos As Integer
    Dim strControlName As String
    Dim strValue As String
    If Len(Me.OpenArgs) > 0 Then
    ' Position of the pipe
    intPos = InStr(Me.OpenArgs, "|")
    If intPos > 0 Then
    strControlName = Left$(Me.OpenArgs, intPos - 1)
    Debug.Print strControlName
    strValue = Mid$(Me.OpenArgs, intPos + 1)
    Debug.Print strValue
    ' Retrieve Control Name from the first part of the string
    Me.lblText11.Caption = Left$(Me.OpenArgs, intPos - 1)
    ' strControlName = Left$(Me.OpenArgs, intPos - 1)
    ' Retrieve Value to Assign from the end of the string
    Me.txt_Section11.Value = Mid$(Me.OpenArgs, intPos + 1)
    ' strValue = Mid$(Me.OpenArgs, intPos + 1)
    ' Assign the value to the control
    ' Me(strControlName) = strValue
    End If
    End If
    End Sub
    jim neal

    The below is working for the text box (AnswerTxt). However the CaptionTxt is not holding it's value when it gets to the new form. It's only displaying the name of the variable name, CaptionTxt
    It will, because you are passing it as a literal string with:
        DoCmd.OpenForm "Form1", OpenArgs:="CaptionTxt|" & AnswerTxt
    In this "CaptionTxt|" is a literal string, whereas AnswerTxt references the variable.  It should be:
        DoCmd.OpenForm "Form1", OpenArgs:=CaptionTxt & "|" & AnswerTxt
    You might be interested in the file Args.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    This little demo file illustrates how to pass multiple arguments, using a module originally developed by Stuart McCall and later expanded by me to allow the passing of named arguments.
    Ken Sheridan, Stafford, England

  • Pass Multiple Parameters to SQL query in Drop down or Select Boxes

    Post Author: JasonW
    CA Forum: Data Connectivity and SQL
    Hello all- I am using CR XI and SQL server 2000.I have written a SQL statement and used that statement as a 'command' in the Database Expert, to pull data into a report.  There are two issues I have that I need some help/advice on.-. The report needs 4 parameters.  A, B, C, D.-. I can create Parameters in the Database Expert that will prompt me for the data when I refresh the report. However,-. I need to be able to select those parameters in drop down boxes based on data in the SQL database.  The problem is that the parameter cannot pull the data without the criteria - so a drop down box seems impossible.  OR is it?  That is part of my question.  The other part is - Even if it is possible, can Crystal do this somehow?  NOTE: The query is selecting the data rather than Crystal - so Creating a Parameter field IN the report is futile. -. The other half of this problem is that users would like the ability to select multiple values from Field A and from Field B.  

    Post Author: JasonW
    CA Forum: Data Connectivity and SQL
    I ended up using a stored procedure.  This queries the proper data, and allows me to use Dynamic Parameters to make multiple selections on the data.  (I query out a large portion of the data in the stored procedure, then pair it down using Dynamic Parameters in Crystal.) Here is the new problem this has created:My Dynamic Parameters are not pulling all the values from the query.  Ex.  One field in the query is a "directory" listing.  It has 227 unique values in it.  (It has multiple values, it is not constrained.)  When I create a Dynamic Parameter off of this field, I only get 18 of the 227 as available selections in the drop down box.  However, I can type in any of the 227 values into the field manually, I pull the proper data.  So the data is there, its just not showing up in the drop down box.   Anyone have any ideas on this?

  • Passing multiple parameters into Custom Folder...

    Hi,
    We have created a Package as per Metalink Note:304192 to pass parameters to the Custom folder in Disc admin. It is working for some simple sql custom folders. But not for the Custom folder which has some subqueries and inline views. Ex:
    This is my query in Admin...
    SELECT ENAME, SALARY FROM EMP_HISTORY
    WHERE EMP_NO IN (SELECT EMP_NO FROM EMP_WAGES
    WHERE WAGE_MONTH = TO_CHAR(SYSDATE, 'MMYYYY')
    AND JOIN_DATE BETWEEN APPS.GET_DATE_PARAM1
    AND APPS.GET_DATE_PARAM2;
    GET_DATE_PARAM function returns the Package variables which were set in Disc Desktop like below.
    Created worksheet in Desktop with parameters, p_begin_date and p_end_date and conditions:
    1 = SET_DATE_PARAM1(:P_BEGIN_DATE) AND
    1 = SET_DATE_PARAM2(:P_END_DATE).
    SET_DATE_PARAM Fucntions set Package variables for that seesion at runtime for the related parameters entered by the user. After creating the conditions, the Sql created by Discoverer shows like this:
    SELECT O123.ENAME, O123.SALARY
    FROM
    (SELECT ENAME, SALARY FROM EMP_HISTORY
    WHERE EMP_NO IN (SELECT EMP_NO FROM EMP_WAGES
    WHERE WAGE_MONTH = TO_CHAR(SYSDATE, MMYYYY)
    AND JOIN_DATE BETWEEN APPS.GET_DATE_PARAM1
    AND APPS.GET_DATE_PARAM2
    ) O123
    WHERE (1 = SET_DATE_PARAM1(:"P_BEGIN_DATE")) AND
    (1 = SET_DATE_PARAM2(:"P_END_DATE"))
    So now the problem is: GET_PARAM functions are being executed first rather than SET_PARAM function. So it is not returning any data. If I remove Subquery it works great. So Is there any way to force the optimizer that it executes the Outer condition first and then rest of the inside joins/subqueries/filters ???
    Thanks,
    Ram.

    Hi,
    There are many ways of doing this. Personally, I prefer to use database contexts as these are more efficient and flexible than other methods. You can access your parameters in a view using SYS_CONTEXT so it avoids a context switch between PL/SQL and SQL database engines.
    The steps to set this up are:
    1. CREATE OR REPLACE CONTEXT EUL_DISCO USING your_package;
    2. CREATE OR REPLACE your_package containing the following functions:
    FUNCTION set_context(p_name VARCHAR2,
    p_value VARCHAR2) RETURN VARCHAR2
    IS
    BEGIN
    dbms_session.set_context('EUL_DISCO', p_name, p_value);
    RETURN p_value;
    EXCEPTION
    WHEN OTHERS THEN RETURN 'FALSE';
    END set_context;
    -- show xxmod_disco context
    FUNCTION show_context(p_name VARCHAR2) RETURN VARCHAR2
    IS
    BEGIN
    RETURN SYS_CONTEXT('EUL_DISCO', p_name);
    END show_context;
    3. You can define your parameters in one worksheet by creating calculations calling the set_context function, (you will have to convert into VARCHAR as context can only be VARCHAR) e.g.
    set_context('START_DATE', TO_CHAR(:start_date_param))
    You can define as many parameters as you want.
    4. In another sheet (or even another workbook), you can access those parameters using the show_context function or if you are using a custom folder or view you can use TO_DATE(SYS_CONTEXT('START_DATE')) to obtain the value of the date parameter.
    Using this approach you can implement a set_effective_date workbook, so that all your workbooks pick up the effective date set up for your session. This enables you to implement similar effective data functionality as in HR applications.
    Hope that helps,
    Rod West

  • Passing Multiple Parameters to Web Forms

    I need to run a form through an URL (say by clicking on a link) and I need to pass more than one parameters to the called form , can anybody help me to know how to separate the two parameters , say p1 and p2 , in the URL address . I tried like this :
    http:\\197.45.3.89./dev60cgi/ifcgi60.exe?form=login&userid=&otherparams=p2=ppx40001.fmx&p1=RMA&lookAndFeel=generic&colorScheme=teal
    But the problem is with the syntax for separating the two parameters
    &otherparams=p2=ppx40001.fmx&p1=RMA
    does not work as I separate them with '&'.
    What is the actual syntax ?
    Thanks in advance folks .
    Have a great new Year !!

    Hey first of all turn your http:\\ to be http:\\ and the only thing I can think of is to use ? instead of &. I apologize in advance if this is totally useless :-)
    Keith

Maybe you are looking for