Where is the error??in pl/sql code

DECLARE
appoggio CLOB;
contenuto CLOB;
BEGIN
SELECT "CONTENT"
INTO appoggio
FROM "VER12_DOWNLOAD"
where id=V('APP_SESSION');
SELECT "FILE_PARAMS"
INTO contenuto
FROM VER03_CUSTOMERS
where(customer_id=:P32_SELETTORE_CLIENTE);
DBMS_LOB.APPEND(contenuto,appoggio);
DELETE FROM VER12_DOWNLOAD WHERE ID=V('APP_SESSION');
COMMIT;
INSERT INTO VER12_DOWNLOAD(id,content) values
(V('APP_SESSION'),contenuto);
COMMIT;
END;
ORA-22920: row containing the LOB value is not locked

See
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1533006062995#4304882648850
Just add a FOR UPDATE to your SELECT query below to lock the row.
[P.S: You dont need a COMMIT if you are calling this in an after-submit process, the HTML DB engine automatically commits at the end of accept processing, in any case, you definitely dont need 2 commits!]
Hope this helps.

Similar Messages

  • Rectify the error in PL/SQL code

    CMW_BC_CALC_OF_FIN_YR_SDATE is a function which returns financial start date and CMW_BC_CALC_OF_FIN_YR_EDATE returns financial end date.
    I/P: 2004, 01-jan-2003
    O/P: A
    1 CREATE OR REPLACE FUNCTION CMW_BC_A_C_R
    2 (
    3 D IN VARCHAR2, RD IN DATE
    4 ) RETURN VARCHAR2 is
    5 SDATE DATE;
    6 EDATE DATE;
    7 TYPE VARCHAR2;
    8 BEGIN
    9 SDATE:=CMW_BC_CALC_OF_FIN_YR_SDATE(D);
    10 EDATE:=CMW_BC_CALC_OF_FIN_YR_EDATE(D);
    11 If RD<EDATE and RD>SDATE
    12 then TYPE:='C';
    13 end if;
    14 If RD>EDATE
    15 then TYPE:='A';
    16 end if;
    17 If RD<SDATE
    18 then TYPE:='R';
    19 end if;
    20 return(TYPE);
    21* END;
    SQL> /
    Warning: Function created with compilation errors.
    SQL> show error;
    Errors for FUNCTION CMW_BC_A_C_R:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    4/11 PLS-00498: illegal use of a type before its declaration
    SQL>

    Hi,
    Use
    SELECT * FROM V$RESERVED_WORDS
    to know all the reserve words.
    Regards

  • When target DB is down in which table is the data from source is stored, also where are the error messages stored in ODI

    When target DB is down in which table is the data from source is stored, also where are the error messages stored in ODI( I am not getting any error message in E$_TARGET_ANI_TEST).
    When i am running the interface i am getting the below error against the errored step
    "ORA-01045: user ABC lacks CREATE SESSION privilege; logon denied."
    Only E$_TARGET_ANI_TEST  is created with no data. No such tables like C$_0TARGET_ANI_TEST, I$_TARGET_ANI_TEST are created and also data is not inserted in the target table TARGET_ANI_TEST.

    Hi,
    I have checked that only E$ table is created. C$ and I$ table are not created ( I have selected my target schema as the part for the staging table).
    All the parameters for dropping the tables are selected as "<default>:false".
    I am importing the following KMs with the following parameters:
    1) CKM Oracle
    DROP_ERROR_TABLE
    :false
    DROP_CHECK_TABLE
    :false
    CREATE_ERROR_INDEX
    :true
    COMPATIBLE
    :9
    VALIDATE
    :false
    ENABLE_EDITION_SUPPORT
    :false
    UPGRADE_ERROR_TABLE
    :false
    2) LKM SQL to SQL
    DELETE_TEMPORARY_OBJECTS
    :true
    3) IKM SQL Incremental Update
    INSERT
    :true
    UPDATE
    :true
    COMMIT
    :true
    SYNC_JRN_DELETE
    :true
    FLOW_CONTROL
    :true
    RECYCLE_ERRORS
    :false
    STATIC_CONTROL
    :false
    TRUNCATE
    :false
    DELETE_ALL
    :false
    CREATE_TARG_TABLE
    :false
    DELETE_TEMPORARY_OBJECTS
    :true 

  • Wher's the error? BPPF-BLART IN TD_PROTOCOLLO AND SYST-TCODE NOT IN Z_ECCEZ

    Hi All,
    cuold anyone tell me wher's the error in this code I've used in validation rules of FI?
    BPPF-BLART IN TD_PROTOCOLLO AND SYST-TCODE NOT IN Z_ECCEZIONE
    Thanks

    Hi All,
    cuold anyone tell me wher's the error in this code I've used in validation rules of FI?
    BPPF-BLART IN TD_PROTOCOLLO AND SYST-TCODE NOT IN Z_ECCEZIONE
    Thanks

  • Where is the Error? in JSP

    I have develpoed a small application in java. which contains on one servler and one jsp page.
    Here is the servlet code:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class Controller extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html";
    //Initialize global variables
    public void init() throws ServletException {
    //Process the HTTP Get request
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType(CONTENT_TYPE);
    // PrintWriter out = response.getWriter();
    String teststring = "Good";
    request.setAttribute("Noman", teststring);
    RequestDispatcher reqdispatcher = this.getServletConfig().getServletContext().getRequestDispatcher("model1.jsp");
    reqdispatcher.forward(request,response);
    //Clean up resources
    public void destroy() {
    and here is the jsp page code:
    <html>
    <head>
    <title>
    model1
    </title>
    </head>
    <body bgcolor="#ffffff">
    <!--<form method="GET" action="Controller">
    JBuilder Generated JSP
    </form><-->
    <% String a = (String)request.getAttribute("Noman"); %>
    <%= a %>
    </body>
    </html>
    I want to pass a string drom servlet to jsp page.
    but when i run the jsp page. it displays null value in string.
    Where is the error.
    i tried it a lot but can not find error in code.
    plz help me.
    Thanks
    Nomi

    i have passed the URL of servlet to run then it shows that error
    Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception java.lang.IllegalArgumentException: Path model1.jsp does not start with a "/" character
    at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:572)
    at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:174)
    at test.Controller.doGet(Controller.java:21)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    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.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.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:534)
    i have not wrote any "/" character . i dont know what is that ?

  • Where is the Error-Handler config DB file?

    Where is the Error-Handler config DB file?
    <P>
    All the Config DB files are in the config directory under the
    postoffice directory. Each config file has the same name as the
    Module it's the config for (e.g. Error-Handler contains the configs
    for the Error-Handler.)

    Look in the database alert file - in the "bdump" directory
    Look in the trace files in the "udump" directory
    If still no wiser:
    ALTER system SET event = '31098 trace name context forever, level 2' scope=spfile
    Try again and look for the trace files starting with "s..." in the "udump" directory.

  • Where is the error ring constant in LV 8.2?

    Where is the Error Ring Constant in LabView 8.2?  It was in the block diagram numerics panel in 7.1.1.

    You might wish to have a look at this.
    Try to take over the world!

  • Where's the error

    hey all, plz if any one can tell me where is the error in this method, its giving me arrayOutOfBounds error:
              for(int i=0; i<arr.length; i++)
                   if(arr[i+1] == arr)
                   result += arr[i]+arr[i+1];
                   if(result > maxResult)
                   maxResult = result;
              System.out.println(maxResult);
    thanks alot
    Abed

    Stop the loop one iteration earlier.
    By the way, both the API description and the error message, as well as the stack trace of an AAIOBE are very obvious and straightforward in pointing out the error's cause.

  • Where's the best place to get code converted between ActionScript 2.0 and 3.0?

    Where's the best place to get code converted between ActionScript 2.0 and 3.0?
    If I just have occasional (very small) projects, what's the best way to get them done really fast by somebody who knows both 2.0 and 3.0?
    Thanks, Dan

    You have pretty much answered your own question... hire someone who has fairly thorough knowledge of both AS2 and AS3.
    I have heard there are some tools for converting between AS2 and AS3, but I have no knowledge of them other than having heard that they cannot convert all things.... which makes sense because there is not always a one-to-one relationship to how things ae done with AS2 and how they get done with AS3.

  • Where is the error code ring constant in LV8 ???

    Hi
    the question seems rather stupid to me but I can't find the error code ring constant any more in LV8.
    Where does it hide?
    Gruß,
    Sören

    You can copy it from some VI made in previous version of LV. It works fine.
    jochynator
    LV 8.0.1, WinXP Pro
    Attachments:
    error_ring_example.vi ‏11 KB

  • ORA-01007 - variable not in select list error in pl\sql code

    Hi,
    When I tried to run this program I am getting below error:
    ORA-01007 - variable not in select list.Please help to resolve.
    Code:
    create or replace procedure "XX_BPM_DATA_P" (P_PROCESS_ID IN VARCHAR2)
    is
    TYPE l_entity_type IS TABLE OF xx_BPM_data.ENTITY%TYPE INDEX BY PLS_INTEGER;
    TYPE l_data_type IS TABLE OF XX_BPM_DATA.DATA%TYPE INDEX BY PLS_INTEGER;
    TYPE l_count_type IS TABLE OF XX_BPM_DATA.count%TYPE INDEX BY PLS_INTEGER;
    l_Entity_v l_Entity_type;
    l_data_v l_data_type;
    l_count_v l_count_type;
    l_security_group_id number;
    app_id number(20);
    l_Actual_value XX_BPM_DATA.DATA%TYPE;
    cursor BPM_CUR is select id,process_id , sequence, to_char(query) query,report_num from xx_test_bpm_dynamic
    where
        process_id = p_process_id
           and report_num=1
    order by process_id, sequence;
    BEGIN
    --delete xx_bpm_data where process_id = p_process_id;
    for bpm_rec in bpm_cur
    loop
    delete xx_bpm_data
    where process_id = bpm_rec.process_id
    and sequence = bpm_rec.sequence
    and report_num = bpm_rec.report_num;
    l_security_group_id := apex_custom_auth.get_session_id_from_cookie;
    --dbms_output.put_line(l_security_group_id);
    execute immediate bpm_rec.query BULK COLLECT INTO l_ENTITY_v,l_DATA_v,l_count_v;
    if (bpm_rec.report_num=2) then
    app_id:= 108;--NV('APP_ID');
    FORALL i IN l_ENTITY_v.FIRST..L_ENTITY_V.LAST
    INSERT INTO XX_BPM_DATA
        (EnTITY,
    value,data,count,
    Process_ID,
    Sequence,report_num)
    VALUES(l_entity_v(i),
    l_data_v(i),
    '<A HREF="f?p='||app_id||':301:'||':APP_SESSION'||'::::P301_process_id,p301_sequence,p301_id,p301_entity:'||bpm_rec.process_id||','||bpm_rec.sequence||','||bpm_rec.id||','||l_entity_v(i)||':">'||l_data_v(i)||'</A>',
        l_count_v(i),bpm_rec.process_id,
    BPM_rec.sequence,
    bpm_rec.report_num);
    else
    FORALL i IN l_ENTITY_v.FIRST..L_ENTITY_V.LAST
    INSERT INTO XX_BPM_DATA(EnTITY,data,
        count,
    Process_ID,
    Sequence,report_num)
    VALUES(l_entity_v(i),
    l_data_v(i),
        l_count_v(i),
        bpm_rec.process_id,
    BPM_rec.sequence,
    bpm_rec.report_num);
    end if;
    select round(avg(value),2) into l_actual_value from xx_bpm_data where process_id=bpm_rec.process_id and sequence=bpm_rec.sequence and report_num=bpm_rec.report_num;
    update xx_test_bpm_dynamic set value=l_actual_value where process_id=bpm_rec.process_id and sequence=Bpm_rec.sequence and report_num= bpm_rec.report_num;
    end loop;
    Commit;
    END;

    When I tried to run this program I am getting below error:
    ORA-01007 - variable not in select list.Please help to resolve.
    You likely would not need any help in you wrote and tested your code using standard best practices.
    Your code has NO exception handler and you are NOT identifying each step in the code so that the exception handler could print/log a message telling you EXACTLY which step raised the exception.,
    v_step NUMBER;
    -- before step 1
    v_step := 1;
    -- before step 2
    v_step := 2;
    Then in the exception handler the value of 'v_step' will tell you which step raised the exception.
    The exception you posted refers to a 'select list' so examine ALL of the select lists in your code. If you do that you will see that the primary query being run is obtained from a database table and then executed using dynamic SQL
    execute immediate bpm_rec.query BULK COLLECT INTO l_ENTITY_v,l_DATA_v,l_count_v;
    We have no way of knowing what query is in 'bpm_rec.query' when the exception happens or what columns that query returns. For all we know the query returns 2 columns and you are trying to load 3 collections. Or maybe the query returns 8 columns and you are trying to load 3 collections.
    Why don't you print out the query and execute it manually so you can see exactly what the result set looks like?
    dbms_output.put_line(bpm_rec.query);
    And don't even get us started on why you are using such security-prone dynamic sql to perform this processing instead of using ordinary SQL statements. Or why you are using associative arrays for the BULK COLLECT instead of nested tables.
    In short your code could blow up in several places and, because you have NO logging statements, control statements or exception handlers, anyone having to troubleshoot that code would have absolutely no idea what part of it may be the problem.

  • Error with PL/SQL code

    i am getting multiple errors when trying to insert data into a table through pl/sql declaration
    here are the errors:
    --Procedure to insert the values into section table(ex1.sql)
    declare
    v_section %type;
    begin
    v_section.SECTIONNO:=&no;
    v_section. DESCRIPTION:='&desc';
    v_section.SECTION_HEAD_EMPNO:=&empno
    insert into section values v_section;
    end;
    /When i execute the above pl/sql program i am getting errors:
    SQL> @ex1
    Enter value for no: 10
    old   4: v_section.SECTIONNO:=&no;
    new   4: v_section.SECTIONNO:=10;
    Enter value for desc: Sales
    old   5: v_section. DESCRIPTION:='&desc';
    new   5: v_section. DESCRIPTION:='Sales';
    Enter value for empno: 1005
    old   6: v_section.SECTION_HEAD_EMPNO:=&empno
    new   6: v_section.SECTION_HEAD_EMPNO:=1005
    v_section %type;
    ERROR at line 2:
    ORA-06550: line 2, column 12:
    PLS-00103: Encountered the symbol "%" when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table LONG_ double ref
    char time timestamp interval date binary national character
    nchar
    The symbol "<an identifier>" was substituted for "%" to continue.
    ORA-06550: line 7, column 1:
    PLS-00103: Encountered the symbol "INSERT" when expecting one of the following:
    * & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between || multiset member SUBMULTISET_
    The sBTW,*section* table is:
    SQL> desc section;
    Name                                                              Null?    Type
    SECTIONNO                                                         NOT NULL NUMBER(2)
    DESCRIPTION                                                                VARCHAR2(30)
    SECTION_HEAD_EMPNO                                                         NUMBER(4)Kindly,correct me where i am doing wrong
    Thanks in advance!!

    Hi,
    where is the semicolon after v_section.DESCRIPTION :=&empno ?
    ---it should be section%rowtype not simply %rowtype
    Just copy paste the below code. It will work.
    DECLARE
      v_section   SECTION%ROWTYPE;
    BEGIN
      v_section.SECTIONNO := &NO;
      v_section.DESCRIPTION := '&desc';
      v_section.SECTION_HEAD_EMPNO := &empno;
      INSERT INTO SECTION
      VALUES v_section;
    END;
    /Test
    SQL> CREATE TABLE SECTION
      2  (
      3    SECTIONNO            NUMBER (2) NOT NULL,
      4    DESCRIPTION          VARCHAR2 (30),
      5    SECTION_HEAD_EMPNO   NUMBER (4)
      6  );
    Table created.
    SQL> DECLARE
      2    v_section   SECTION%ROWTYPE;
      3  BEGIN
      4    v_section.SECTIONNO := &NO;
      5    v_section.DESCRIPTION := '&desc';
      6    v_section.SECTION_HEAD_EMPNO := &empno;
      7 
      8    INSERT INTO SECTION
      9    VALUES v_section;
    10  END;
    11  /
    Enter value for no: 10
    old   4:   v_section.SECTIONNO := &NO;
    new   4:   v_section.SECTIONNO := 10;
    Enter value for desc: sales
    old   5:   v_section.DESCRIPTION := '&desc';
    new   5:   v_section.DESCRIPTION := 'sales';
    Enter value for empno: 1005
    old   6:   v_section.SECTION_HEAD_EMPNO := &empno;
    new   6:   v_section.SECTION_HEAD_EMPNO := 1005;
    PL/SQL procedure successfully completed.
    SQL> select * from section;
    SECTIONNO DESCRIPTION                    SECTION_HEAD_EMPNO
            10 sales                                        1005
    SQL> G.
    Edited by: Ganesh Srivatsav on Apr 8, 2011 2:54 PM

  • How to design BPEL process where BPEL is called by PL/SQL code?

    Hi,
    My BPEL process is called by a PL/SQL code given below.
    CREATE OR REPLACE PROCEDURE testd(errbuf OUT VARCHAR2,
    retcode OUT VARCHAR2)
    IS
    soap_request VARCHAR2(20000);
    soap_respond VARCHAR2(10000);
    http_req UTL_HTTP.REQ;
    http_resp UTL_HTTP.RESP;
    l_detail VARCHAR2(10000);
    endpoint VARCHAR2(130);
    begin
    endpoint := 'http://afsmlnx04.rheem.com:7105/soa-infra/services/default/HelloWorldPayload/bpelprocess1_client_ep';
    soap_request := '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body xmlns:ns1="http://oracle.nl/HelloWorldPayload"><ns1:process><ns1:input>abc</ns1:input></ns1:process></soap:Body></soap:Envelope>';
    http_req := utl_http.begin_request(
    endpoint
    , 'POST'
    , 'HTTP/1.1'
    utl_http.set_header(http_req
    , 'Content-Type'
    , 'text/xml');
    utl_http.set_header(http_req
    , 'Content-Length'
    , length(soap_request));
    utl_http.set_header(http_req
    , 'SOAPAction'
    , 'process');
    utl_http.write_text(http_req, soap_request);
    http_resp := utl_http.get_response(http_req);
    utl_http.read_text(http_resp, soap_respond);
    utl_http.end_response(http_resp);
    dbms_output.put_line('soap'||soap_respond);
    EXCEPTION
    WHEN utl_http.end_of_body THEN
    utl_http.end_response(http_resp);
    WHEN utl_http.request_failed THEN
    DBMS_OUTPUT.PUT_LINE('Request Failed: ' || utl_http.get_detailed_sqlerrm);
    WHEN utl_http.http_server_error THEN
    DBMS_OUTPUT.PUT_LINE('Server Error: ' || utl_http.get_detailed_sqlerrm);
    WHEN utl_http.http_client_error THEN
    DBMS_OUTPUT.PUT_LINE('Client Error: ' || utl_http.get_detailed_sqlerrm);
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE(sqlerrm);
    END;
    The above procedure will be defined as concurrent program in Oracle EBS.This concurrent program will call the bpel process.My question is how should i design the bpel process so that bpel will know it is called by a concurrent program?
    My BPEL is doing picking a file by FTP adapter and inserting data into a table.
    Please throw some lights on this!!

    Option 1:
    You have to design the service as a synchronous BPEL process
    1. Do a synchronous ftp get to read the file.
    2. Transform and write it into database table
    3. Reply results back to plsql
    Disadvantage: Your BPEL process should complete from BPEL timeout happens.
    Option 2:
    1. Enqueue the message into AQ from the concurrent program
    2. From the BPEL monitor the AQ, start the process when the message arrives
    3. Do a synchronous ftp get to read the file.
    4. Transform and write it into database table
    You cannot reply the results back to concurrent program.
    5. However, you could have another AQ to send the results back to concurrent program.
    6. Your concurrent program should listen to the resultsAQ to get the results back from BPEL.
    Option 2 is a relliable design.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Where's the error?? Help....

    Hi all,
    well, i parse a file with the stream tokenizer and when find a number, i nedd to add it in an array. To verifiy if it works, i'd like to display by example array1[4][2]. But it doesn't work...
    Could you please have a look at this code and tell me where the error is?? I'd be very grateful....
    Here it is
    public void accept() {
              int n;
              int i=0;
              int j=0;
              int l1 = 0;
              int m1 = 0;
    try {FileReader fr = new FileReader("test2.dat");
            BufferedReader br = new BufferedReader(fr);
         StreamTokenizer stk = new StreamTokenizer(br);
         int [][] array1 = new int [9][3];
                   do {
                   n = stk.nextToken();
                   while (n != stk.TT_NUMBER);
                   do {
                   n = stk.nextToken();
                   if (n == stk.TT_NUMBER) {
                        double m = stk.nval;
                        m1 = (int) m;
                        n = stk.nextToken();
                        if (n == stk.TT_NUMBER){
                             do {
                             i++;     
                             double l = stk.nval;
                             l1 = (int) l;
                             array1 [m1] = l1;
                             n = stk.nextToken();
                             while (n!= stk.TT_EOL);
                   while (n != stk.TT_WORD); //fin du fichier
                   int r = array1 [4][2];
                   System.out.println(r);
                   br.close();
                   fr.close();
                   catch (IOException ioe1) {
                        System.out.println("io error");
    Thanks very much.....

    A few general advices for the forums:
    - Use code tags when posting code.
    - Be more specific than "it doesn't work". Tell what result you get! A compile error? Say so, and give the error. An exception during runtime? Say so, and give the stacktrace. It compiles and runs, but gives unexpected results? Say so, and tell both what results you expected and what you get.
    I think your problem is that you try to use '==' for String comparison. That won't work, use String.equals() instead.

  • Where is the error message for Debrief line stored?

    Hi,
    I'm writing an sql query to display all the debriefs (and lines) in error and need to display the detailed error message (the field labeled "Error" on the Material tab on Debrief form). Does anyone know where this is stored in tables? I am digging the form and have not found anything yet. Any help is appreciated.
    Sorry - I guess it is - CSF_DEBRIEF_LINES.error_text - But there have been some error records for which I could not find the error message in error_text field and I thought that it was stored somewhere else and that got me confused. - Please ignore the question.
    TIA
    Alka.
    Message was edited by:
    user498444
    Message was edited by:
    user498444

    when you set a picture to be a background of some folder that picture is not moved from its original location. instead a record is made in the .DS_Store file of that folder indicating that this picture is the one to be used for the background. in case of the DVD it is likely sitting in some hidden folder right on the DVD.
    run the following terminal command to enable showing hidden files in finder
    defaults write com.apple.finder AppleShowAllFiles 1; killall Finder
    then look on the dvd and the picture should be there somewhere. if you still can't find it open the .DS_store file of the folder in question using Text Editor. a lot of this file will be unreadable but the picture path will be present in plain text.
    when done rerun the above command after changing 1 to 0.

  • Where is the error hiding

    CFC Code:
    <cffunction name="comp_extList"
    access="remote"
    returntype="query"
    description="Get a list of employees, phone extensions, and
    departments">
    <cfargument name="abbrCode" required="yes" />
    <cfargument name="searchBox" required="no" />
    <cfset searchBox = UCASE("#arguments.searchBox#") />
    <cfldap name="phoneList"
    server="#cfc.ldap.server#"
    username="[email protected]"
    password="#cfc.ldap.key#"
    action="query"
    filter="company=#arguments.abbrCode#"
    start="dc=bii, dc=corp"
    scope="subtree"
    attributes="sn,givenName,telephoneNumber,department"
    sort="sn ASC"
    port="389" />
    <cfif len(arguments.searchBox) GT 0>
    <cfquery name="phoneList" dbtype="query">
    SELECT *
    FROM phoneList
    WHERE (UPPER(givenName) LIKE '%#searchBox#%'
    OR UPPER(sn) LIKE '%#searchBox#%'
    OR telephoneNumber LIKE '%#searchBox#%')
    AND telephoneNumber <> ''
    </cfquery>
    <cfelse>
    <cfquery name="phoneList" dbtype="query">
    SELECT sn,givenName,telephoneNumber,department
    FROM phoneList
    WHERE telephoneNumber <> ''
    </cfquery>
    </cfif>
    <cfreturn phoneList>
    </cffunction>
    I need to pass entered information for a search, but I
    receive error message:
    element searchbox is undefined in arguments.

    The error is not hiding at all actually. First, I recommend
    scoping all your variables. Inside a <cffunction> you can use
    <cfset var myLocalVar = "" /> to keep the variables local.
    But I noticed that you have this line:
    <cfargument name="searchBox" required="no" />
    The searchBox argument is not required, but you're using it
    the very next line:
    <cfset searchBox = UCASE("#arguments.searchBox#") />
    Since the argument is not required, it may not be passed in
    and hence won't exist in the arguments scope. The way to fix this
    is giving it a default value like so:
    <cfargument name="searchBox" required="no" default=""
    type="string" />
    That way if nothing is passed, Arguments.searchBox will still
    have a value.

Maybe you are looking for