Too many arguments in method call

I want to make a call to a method which has a lot of arguments which dont fit on one line.
And if i try to bring them all on one line, I'll loose all readability.
So, after a particular argument ends, I hit the return (enter) key.
And the whole set of arguments has to be included in a string.
Something like this..
callmethod("argument1
argument2
argument3");
I get the error as string not closed.
Now, is there any escape sequence like / or \ which will help me fix this?
Help will be appreciated.
Thanks.

You can create a bean (a simple java Object) that encapsulates all the params. Then pass this bean as a single argument to your method.
BTW: you should rewrite the method you want to call so that it accepts a bean instead of the many arguments.
If you would like to keep your program as is, so you have to format your code manually, like the following:
     public void method(Object arg1, Object arg2,
                         Object arg3, Object arg4,
                         Object arg5, Object arg6)
     }

Similar Messages

  • Too Many Arguments

    I upgraded my application server to 10.1.2.0.2. My DB is 9.2.0.6.
    My application is developed using web tool kit and deployed in mod_plsql. On a page i see the error
    "Too many arguments passed in. Got 5103. Upper limit is 2000"
    Can anyone help me resolving this issue? i dont see this error if application is run using application server 9i.
    Regards

    You need to move that column alias out of the nvl call. Try
    select
    g.group_name, nvl(p.first_name ||' '|| p.last_name, u.username) as "Name"
    from
    groups g, users_profiles p, users u
    where
    g.group_id = u.user_id
    and
    u.user_id = p.user_id

  • HTTP-400 Too many arguments passed

    Hello There,
    I installed the fresh 10g and applied patchset 2 on it. I get following error:
    HTTP-400 Too many arguments passed upper limit is 2000
    Please help

    Hello Qiang,
    Little more detail for your reference.
    README for 3355915
    MODPLSQL VERSION 9.0.2.6.0A ONE-OFF PATCH
    Date: January 6, 2004
    o What is in this patch?
    -> FIXES FOR:
    Bug#3355915 : BACKPORT BUG#3329645
    Bug#3116388 : TASK: MOD_PLSQL DOES NOT ALLOW PASSING MORE THAN 2000 PARAMETERS
    Bug#3024540 : NON-SUCCESS CODES WITH NO CONTENT SHOULD SERVE OHS ERRORDOCUMENT
    Bug#2023253 : NLS:FILE IS NOT PROPERTY UPLOADED IF IT'S FILENAME CONTAINS 0X5C
    Bug#3329645 : MODPLSQL IS UNABLE TO PASS PARAMETER LESS THAN 32K BYTES
    Bug#3264502 : DOC PATH REQUEST WITH PERPACKAGE AUTH CALL WRONG AUTH FUNCTION
    Bug#2802064 : ORA-01036 ILLEGAL VAR NAME/NUMBER USING VARIABLE NAMED P_ARRAY
    o What version can I apply this patch on?
    -> iAS 9.0.2.x.x

  • HTTP-400 Too many arguments passed - Upper Limit is 4000

    Hi,
    I have encountered this problem with Apex 3.0.1 on Oracle 10g and unfortunately I am not able to increase the PlsqlMaxParameters value of 4000 due to business rules. With regards to this and workarounds, I have the following queries:
    1) Can someone suggest possible workarounds for this problem - I am basically presenting the user with a checkbox response and sometimes this may involve over 400 records sometimes - alot I know but users would like to see everything on a single page - no pagination. This is calling the HTTP-400 error - any suggestions for workaround(s) or do I need to rewrite the page with pagination or something else?
    2) Would using APEX_COLLECTIONS assist in breaking down on the number of parameters sent to mod_plsql?
    3) Would increasing the PlsqlMaxParameters to say 10000 cause any performance issues?
    Any other help on this would be much appreciated.
    Thanks.
    Tony.

    Hi,
    It is indeed a valid work around
    http://iadvise.blogspot.com/2008/05/apex-http-400-too-many-arguments-passed.html
    It can have some performance effect.
    But test this for your situation.
    Kind regards,
    Iloon

  • Consistenly "too many arguments" when OCR any scanned PDF file in Adobe Acrobat 9.2

    Hi,
    plz see attached file for a 2 page sample. I have purchased AA9 to get better OCR (clearscan). Before, we were using AA6, which sometimes crashed, but not consistently.
    However, AA9 (9.2.0) now always crashes with the same error "too many arguments" after finishing of the OCR. All pages turn completely white. Saving them causes the contents to be gone permanently and even happened with batch OCR.
    OCRing on http://www.cvisiontech.com/online-conversion/general/main.html works fine, but that product we have not yet purchased.
    Does anyone have an idea what might cause this and how to resolve it?
    The PDF-s have been generated by HP Digital Sender and Canon scanner/printer MF9170. Both types of scans give the same result.
    Regards,
    Guido

    There is no virus protection or spy protection on this PC. It runs the following:
    Windows Server 2003 x64 SP2
    The file gives the error both on my local disk and on my (Samba) network disk.
    As far as tested all scans give the same error at the end of the scanning process. Might it be related to x64 handling from a x32 program?

  • Mod_plsql: /pls/apex/wwv_flow.accept HTTP-400 Too many arguments passed in.

    Hi All ,
    I want one solution i have a report which fectches the ppt that r stored in db,If i search more results it errors out so i have reduced the results and it was working fine.Now i see it is giving the same error(as below) althorugh it was working fine by reducing results in query.Can anybody please help me in this.
    the error is
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /pls/apex/wwv_flow.accept HTTP-400 Too many arguments passed in. Got 3250 parameters. Upper limit is 2000
    Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server Server at insightapps.oraclecorp.com Port 80

    Section 1.10 of the Oracle HTTP Server mod_plsql User's Guide states the following
    The total number of name value pairs that can be passed to a PL/SQL procedure is 2000.
    mod_plsql limits the total number of parameters that can be passed to a single procedure to 2000.
    mod_plsql limits the size of a single parameter that can be passed to a procedure to 32000 bytes.
    It would be helpful to know how each of these apply in the APEX context
    Varad

  • HTTP-400 Too many arguments passed error

    I am getting the following error when using a multiselect list item to select/update data in the tabular form.
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /pls/otn/wwv_flow.accept HTTP-400 Too many arguments passed in. Got 2346 parameters. Upper limit is 2000
    Oracle-Application-Server-10g/10.1.2.3.0 Oracle-HTTP-Server Server at apex.oracle.com Port 80
    I have built this prototype application on the Oracle’s hosted apex.oracle.com site.
    The application page has three sections. Section 1 is an HTML region with the multiselect list. Section 2 is an HTML region with 20 text items. Section 3 has the tabular form with 25 columns that are used to update the data. The tabular form pagination values “Number of Row” and “Maximum Row Count” are set to 500.
    Up until now, the multiselect list in the Section 1 was just a simple select list and I never had any issues. I guess the number of arguments passed was low. Per our customer requirement, I had to change the simple select list to a multiselect list. Now, If I select multiple values in the select list, I get the above mentioned error. But, it does not seem to happen all the time. For example, the first time I select 3 values in the multiselect list, the page renders fine, and I am able to enter/save data in the tabular form. Then, I select two other values in the multiselect list, I would get the error.
    I am getting this error on the Oracle’s hosted apex.oracle.com site where my prototype application exists. And, according to the error oracle is using 10g/10.1.2.3.0. Is there any way to circumvent this issue so I can demo my application to the customer using the multiselect list?
    I found several threads on this forum regarding the same error and it seems that there was a bug in the older versions of Oracle Application server. Also, there were discussions about setting the PlsqlMaxParameters.
    Our dev/test/prod environment would be set up using the Oracle Application Server-10g/10.1.3. The question is would we need to add a line to set the PlsqlMaxParameters value in the plsql.conf file? In addition, what is the maximum value that it can be set to?
    Please forgive me for the longwinded description and the question - only way I could describe the situation.
    Thanks,
    DP

    Varad and Sc0tt,
    Thank you both for your responses.
    Varad – Yes, I can/will reduce the amount of data so it does not cause the tabular form to go over the 2000 field limit. If that is not possible, I will at least make the users aware of this issue. Since the same data is used for the other pages in the application, the users might want to keep all the data.
    Sc0tt – thanks for providing the information for your environment and settings. To plan for the future, we will have to set the value to something high also, around 8-10K range, and adjust later if we have to.
    Thank you both, I will mark both of your answers as helpful and the question as being answered.
    DP
    (Have either of you used the jquery datepicker solution? If yes, can you please take a look at my thread: Thread: Jquery Datepicker calendar problem with page scrolling
    Jquery Datepicker calendar problem with page scrolling

  • ORA-00939: too many arguments for function using Timezones in xquery

    Running on Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    CREATE TABLE "ORT"."SAMPLE"
       ( "THEDATE" DATE,
    "THETIMESTAMP" TIMESTAMP (6),
    "STARTTIMESTAMP" TIMESTAMP (6) WITH LOCAL TIME ZONE,
    "ENDTIMESTAMP" TIMESTAMP (6) WITH LOCAL TIME ZONE
    REM INSERTING into SAMPLE
    SET DEFINE OFF;
    Insert into SAMPLE (THEDATE,THETIMESTAMP,STARTTIMESTAMP,ENDTIMESTAMP) values (to_date('13-06-10 14:07:52','RR-MM-DD HH24:MI:SS'),to_timestamp('13-06-19 14:27:52.000000000','RR-MM-DD HH24:MI:SS.FF'),to_timestamp('13-06-19 10:34:04.586000000','RR-MM-DD HH24:MI:SS.FF'),to_timestamp('13-06-19 15:05:38.805000000','RR-MM-DD HH24:MI:SS.FF'));
    following query raises ora-00939
    SELECT XMLQUERY('for $v in fn:collection("oradb:/ORT/SAMPLE")
    let $date1 := $v/ROW/STARTTIMESTAMP/text()
    let $date2 := $v/ROW/ENDTIMESTAMP/text()
    return if ($date1 < $date2) then (concat($date1," date is less than ", $date2)) else (concat($date1," date is greater than ", $date2)) ' returning content) from dual;
    ORA-00939: too many arguments for function
    00939. 00000 -  "too many arguments for function"
    *Cause: 
    *Action:
    any ideas?

    Hi Odie,
    Not too familiar with XQuery rewrite, but i suspect by providing this hint, Oracle cannot optimize the query whatsoever.... tried this hint in my actual query and basically hangs.... I will attempt at opening an SR with Oracle...
    the other option i'm looking at is checking the date ranges outside of xquery, and using a mix of xmltable, xmlexists and the SQL XML functions to reconstruct my xml.

  • Too many arguments for stored procedure call

    I have a stored procedure with 34 arguments, including the return value. I am trying to call it from java using JDBC thin drivers (jdk11, oracle815), but I get the "wrong number or types of arguments" error message. JDBC-OCI fails also. I saw a reference in this discussion group to there being a limit of 32 arguments for stored procedure calls from jdbc (posted 6/29/99). Is there such a limit? If so, is there a fix or workaround? If there is not a limit, how can I determine which argument is causing the problem?
    Many thanks.
    Mike
    java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'PUT_CHECK'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
    a)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
    .java)
    at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
    edStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java)
    at metris.quickcheck.database.DS1.main(DS1.java:79)
    null

    I must confess I still don't understand your problem. By rows ...
    I have an sql that recodes a column and has 1450 rows. This doesn't work
    although when I use the same with less rows 40-60 it works.... do you mean rows in the table or elements in the CASE() statement ?
    From the 9i SQL Reference:
    " The maximum number of arguments in a CASE expression is 255, and each WHEN ... THEN pair counts as two arguments. To avoid exceeding the limit of 128 choices, you can nest CASE expressions. That is return_expr can itself be a CASE expression."
    According to the 10g docs the limit is the same there.
    Cheers, APC

  • Amazon S3 Organizer add-on gives an exception error when downloading: "Too many arguments"

    When I try to download any file from the S3 server to my PC, the above exception error comes up. "[Exception... "Not enough arguments [nslWebBrowserPersis.saveURI]" nsresult: 0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location "JS frame......" (much more that is not copied here). Interestingly, if I try to download a bucket, it will create a folder on the PC but it hangs on the files inside. I have uninstalled and reinstalled Firefox as well as the add-on S3 Firefox Add-on 0.7. Doesn't help.

    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift><br> ''(Mac Options)'' ''' key, and then starting Firefox. Is the problem still there?
    Contact tech support for that program for help.

  • /etc/rc.sysint: line 302: [: too many arguments [SOLVED]

    That is the message I get when I boot arch. Sometimes it makes the start stop, sometimes I get it and it just keeps on going. The line is
    if [ "$TIMEZONE" != "" -a -e /usr/share/zoneinfo/$TIMEZONE ]; then
    and the overall section
    stat_busy "Configuring System Clock"
    if [ ! -f /var/lib/hwclock/adjtime ]; then
    echo "0.0 0 0.0" > /var/lib/hwclock/adjtime
    fi
    if [ "$TIMEZONE" != "" -a -e /usr/share/zoneinfo/$TIMEZONE ]; then
    /bin/rm -f /etc/localtime
    /bin/cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime
    fi
    if [ "$HARDWARECLOCK" = "UTC" ]; then
    /sbin/hwclock --directisa --utc --hctosys
    else
    /sbin/hwclock --directisa --localtime --hctosys
    fi
    stat_done
    I have tried just changing /etc/rc.conf to UTC but it didn't fix it.
    Last edited by Reasons (2008-03-17 13:44:51)

    Thanks, I fixed this so it won't error like that again.
    http://projects.archlinux.org/git/?p=in … cb1d419dd5

  • Sunstudio: line 293: [: too many arguments -- Gentoo AMD64

    I've untarred the Sun Studio Express 2 download into the /opt directory -- from there everything goes where it should into /opt/sun/ ...
    I've updated my environment/path to include the necessary bin directories i.e. -- /opt/sun/sunstudiomars/bin
    when trying to launch sunstudio (which is nothing more than a shell script) -- I get the error in the subject line followed by:
    Error: client VM not supported
    Is one related to the other?
    The error in the subject line occurs on the line in the shell script that contains:
    if [ ! -d $USERDIR/system/Modules ]
    I even tried setting a USERDIR environment variable -- and it didn't change anything.
    I'm running Gentoo AMD64 with the latest kernel: 2.6.17-gentoo-r4.
    Any help/ideas/suggestions would be greatly appreciated. Thanks!

    Okay, after looking around in the sunstudiomars script again -- I found the following list of available options:
    Options can be:
         -D prog [ core | pid] Immediately start a debug session
         -E prog [ args... ]     Immediately start debugging prog
         -C core[:prog]     Immediately start debugging core
         -A pid[:prog]     Immediately start debugging pid
         -J<jvm-options>     Pass <jvm-options> to the JVM at startup
         -?               Show usage information (same as --help)
         -V               Emit version information (same as --version)
         --fontsize <size>       Use <size> as the point size of the font
         --locale <language[:country[:variant]]>
                        Use specified locale information
         --nosplash            Do not show splash screen at startup
         --jdkhome <path>       Path to Java 2 SDK installation
         --userdir <path>       Path of user settings directory
         --open <path>       Open a file in the IDE at startup
         --help            Show usage information (same as -?)
         --version            Emit version information (same as -V)
         The following options pertain to changing look and feel:
         --ui <ui-class>       Use given UI class as the IDE's Look & Feel
         --ui-classpath <path> Append <path> to the IDE's classpath
    I specified the userdir like you advised and also specified the jdkhome path (pointing it to the Sun JDK 1.5 location) and the IDE fired right up. I haven't had a chance to mess with it much beyond that -- but that's a first big step.
    Thanks for the help and the patience!

  • PLS-00307: too many declarations of 'INSERTXML' match this call

    Dear All,
    I need help to create a procedure. I am describing the scenario below.
    I have a table which is
    xml_clob(
    doc_id number,
    doc clob
    The above table contain an xml file in doc column. What i need is read the doc column and parse and insert the xml data to a table. For this purpose I am using a built-in package in oracle database 10g name dbms_xmlsave. To full fill my purpose i am going to create a procedure which is getting error. I am giving the procedure code
    CREATE OR REPLACE PROCEDURE loadxml1 AS
    fil clob;
    buffer varchar2(1000);
    len INTEGER;
    insrow INTEGER;
    BEGIN
    SELECT doc INTO fil FROM xml_clob WHERE doc_id=1;
    len := DBMS_LOB.GETLENGTH(fil);
    DBMS_OUTPUT.PUT_LINE('length '||len);
    DBMS_LOB.READ(fil,len,1,buffer);
    --xmlgen.resetOptions;
    --insrow := xmlgen.insertXML('xml_doc',buffer);
    insrow := dbms_xmlsave.insertXML('xml_doc',buffer);
    --insrow := dbms_xmlsave.insertXML('xml_doc',fil);
    DBMS_OUTPUT.PUT_LINE('length ins '||insrow);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('In Exception');
    DBMS_OUTPUT.PUT_LINE(SQLERRM(SQLCODE));
    end;
    i am getting the error with the bold line
    insrow := dbms_xmlsave.insertXML('xml_doc',buffer);
    PLS-00307: too many declarations of 'INSERTXML' match this call
    I need help on this. Here the argument xml_doc is the table name where i want to insert data from xml.
    I am giving u the code of dbms_smlsave package which is at sys user.
    CREATE OR REPLACE PACKAGE DBMS_XMLSAVE AUTHID CURRENT_USER AS
    SUBTYPE ctxType IS NUMBER; /* context type */
    DEFAULT_ROWTAG CONSTANT VARCHAR2(3) := 'ROW'; /* rowtag */
    DEFAULT_DATE_FORMAT CONSTANT VARCHAR2(21):= 'YYYY-MM-DD HH24:MI:SS';
    MATCH_CASE CONSTANT NUMBER := 0; /* match case */
    IGNORE_CASE CONSTANT NUMBER := 1; /* ignore case */
    -------------------- constructor/destructor functions ---------------------
    FUNCTION newContext(targetTable IN VARCHAR2) RETURN ctxType;
    PROCEDURE closeContext(ctxHdl IN ctxType);
    -------------------- parameters to the save (XMLtoDB) engine ----------------
    PROCEDURE setXSLT(ctxHdl IN ctxType,uri IN VARCHAR2,ref IN VARCHAR2 := null);
    PROCEDURE setXSLT(ctxHdl IN ctxType, stylesheet IN CLOB, ref IN VARCHAR2 := null);
    PROCEDURE setXSLTParam(ctxHdl IN ctxType,name IN VARCHAR2,value IN VARCHAR2);
    PROCEDURE removeXSLTParam(ctxHdl IN ctxType, name IN VARCHAR2);
    PROCEDURE setRowTag(ctxHdl IN ctxType, tag IN VARCHAR2);
    PROCEDURE setSQLToXMLNameEscaping(ctxHdl IN ctxType, flag IN BOOLEAN := true);
    PROCEDURE setPreserveWhitespace(ctxHdl IN ctxType, flag IN BOOLEAN := true);
    PROCEDURE setIgnoreCase(ctxHdl IN ctxType, flag IN NUMBER);
    PROCEDURE setDateFormat(ctxHdl IN ctxType, mask IN VARCHAR2);
    PROCEDURE setBatchSize(ctxHdl IN ctxType, batchSize IN NUMBER);
    PROCEDURE setCommitBatch(ctxHdl IN ctxType, batchSize IN NUMBER);
    -- set the columns to update. Relevant for insert and update routines..
    PROCEDURE setUpdateColumn(ctxHdl IN ctxType, colName IN VARCHAR2);
    PROCEDURE clearUpdateColumnList(ctxHdl IN ctxType);
    -- set the key column name to be used for updates and deletes.
    PROCEDURE setKeyColumn(ctxHdl IN ctxType, colName IN VARCHAR2);
    PROCEDURE clearKeyColumnList(ctxHdl IN ctxType);
    ------------------- save ----------------------------------------------------
    -- insertXML
    FUNCTION  insertXML(ctxHdl IN ctxType, xDoc IN VARCHAR2) RETURN NUMBER;
    FUNCTION  insertXML(ctxHdl IN ctxType, xDoc IN CLOB) RETURN NUMBER;
    -- updateXML
    FUNCTION updateXML(ctxHdl IN ctxType, xDoc IN VARCHAR2) RETURN NUMBER;
    FUNCTION updateXML(ctxHdl IN ctxType, xDoc IN CLOB) RETURN NUMBER;
    -- deleteXML
    FUNCTION deleteXML(ctxHdl IN ctxType, xDoc IN VARCHAR2) RETURN NUMBER;
    FUNCTION deleteXML(ctxHdl IN ctxType, xDoc IN CLOB) RETURN NUMBER;
    ------------------- misc ----------------------------------------------------
    PROCEDURE propagateOriginalException(ctxHdl IN ctxType, flag IN BOOLEAN);
    PROCEDURE getExceptionContent(ctxHdl IN ctxType, errNo OUT NUMBER, errMsg OUT VARCHAR2);
    PROCEDURE useDBDates(ctxHdl IN ctxType, flag IN BOOLEAN := true);
    -------private method declarations------------------------------------------
    -- we must do this as a bug workaround; otherwise we get ora-600 [kgmexchi11]
    PROCEDURE p_useDBDates(ctxHdl IN ctxType, flag IN NUMBER);
    PROCEDURE p_setXSLT(ctxHdl IN ctxType, uri IN VARCHAR2, ref IN VARCHAR2);
    PROCEDURE p_setXSLT(ctxHdl IN ctxType, stylesheet CLOB, ref IN VARCHAR2);
    PROCEDURE p_propagateOriginalException(ctxHdl IN ctxType, flag IN NUMBER);
    PROCEDURE p_setSQLToXMLNameEsc(ctxHdl IN ctxType, flag IN NUMBER);
    PROCEDURE p_setPreserveWhitespace(ctxHdl IN ctxType, flag IN NUMBER);
    END dbms_xmlsave;
    CREATE OR REPLACE PACKAGE BODY DBMS_XMLSAVE AS
    FUNCTION insertXML(ctxHdl IN ctxType, xDoc IN VARCHAR2) RETURN NUMBER
    as LANGUAGE JAVA NAME
    'oracle.xml.sql.dml.OracleXMLStaticSave.insertXML(int, java.lang.String) return int';
    FUNCTION insertXML(ctxHdl IN ctxType, xDoc IN CLOB) RETURN NUMBER
    as LANGUAGE JAVA NAME
    'oracle.xml.sql.dml.OracleXMLStaticSave.insertXML(int, oracle.sql.CLOB) return int';
    END DBMS_XMLSAVE;
    /

    Hi,
    It's surprising (to me) that you're getting that particular error.
    It's not surprising that you're getting some error, since insertXML is expecting the first argument to be a ctxType, and you're passing a VARCHAR2 instead. Create a ctxType, and use it as the first argument. (Sorry, I'm not familiar with that package, so I can't give you any details.)

  • MD5 PLS-00307: too many declarations of 'MD5' match this call

    Hi I wonder if any one can help, I am trying to write an equlivent of mysqls MD5 function.
    When I compile the following I get this error message:
    PLS-00307: too many declarations of 'MD5' match this call
    function MD5(str varchar2)
    RETURN VARCHAR2 IS
    md_str VARCHAR2(16);
    BEGIN
    md_str := dbms_obfuscation_toolkit.md5(str);
    return md_str;
    END;

    Looks to be like Oracle have bolloxed this one well and truly.
    A desc of the toolkit reveals this:
    PROCEDURE MD5
    Argument Name                  Type                    In/Out Default?
    INPUT                          RAW                     IN
    CHECKSUM                       RAW(16)                 OUT
    FUNCTION MD5 RETURNS RAW(16)
    Argument Name                  Type                    In/Out Default?
    INPUT                          RAW                     IN
    PROCEDURE MD5
    Argument Name                  Type                    In/Out Default?
    INPUT_STRING                   VARCHAR2                IN
    CHECKSUM_STRING                VARCHAR2                OUT
    FUNCTION MD5 RETURNS VARCHAR2(16)
    Argument Name                  Type                    In/Out Default?
    INPUT_STRING                   VARCHAR2                IN.
    i.e. two overloaded functions and two overloaded procedures with exactly the same signature. This is not supposed to handle, because the signature (number and type of parameters) is how the database deteremines which version of teh function to call. Identical signatures causes your PLS-307 error.
    If it's any consolation, they appear to have fixed it in Oracle 9i (there's a solitary MD5 procedure).
    Cheers, APC

  • DrawLine(...) method generates too many in[] instances

    My appplication performs very intensive painting (some kind of real time charts). It often invokes drawLine(...) method of Graphics class. Under profiler I have found out that it instantiate too many int[] (about 300000 every few seconds). Though garbage collector cleans these auxilary instances well, I don't like when it runs every time. How can I write my own drawLine method, which doesn't generate so many auxilary instances? By the way I need to draw only vertical or horizontal lines.

    Are you talking about drawing a grid?
    If so, 300000 sounds / few seconds sounds like there
    is something wrong.
    Suppose your screen is 1000x1000 and you are drawing
    lines every 10 pixels apart. That is 100 lines in
    both directions for 200 lines.
    200 lines and 4 ints per call is 800. Assume 100000 /
    second, then that means you are calling repaint 125
    times / second?
    I have about 40 - 50 JFrames, each of them contains panel, which performs painting. Repaint invokes 10-50 times every second for each JFrame. Each repaint draws 1200 lines every time it is invoked. And int[] instances are created inside Swing version of drawLine(...) method, at any case Borland Optimizeit 5.0 says so.
    If anything, I would make a temporary line object:
    private Line2D line = new Line2D.Double();
    public void paint(Graphics _g) {
    super.paint(_g);
    Graphics2D g = (Graphics2D) _g;
    for each horizontal and vertical line:
    line.setLine(x1, y1, x2, y2);
    g.draw(line);
    I've tried your code. Thanks a lot, but it generates too many int[] instances too:(.
    >
    Also, make sure you are not drawing lines outside of
    the area that needs to be repainted. That is, only
    draw a line if it would intersect the viewable
    rectangle of the panel, or even better if it
    intersects the getClipBounds() of the graphics
    object.

Maybe you are looking for