Error with procedure

I am trying to create the following procedure:
/*package header*/
CREATE OR REPLACE PACKAGE student_pck
AS
/*Insert a student*/
PROCEDURE insert_Student(i_studentID IN Student.studentID%TYPE, i_studentnumber IN Student.studentnumber%Type,
i_firstname IN Student.firstname%Type, i_surname IN Student.surname%Type, i_dateofbirth IN Student.dateofbirth%Type);
END STUDENT_pck;
show error
/*package body*/
CREATE OR REPLACE PACKAGE BODY student_pck
AS
PROCEDURE
insertStudent(i_studentID IN Student.studentID%TYPE, i_studentnumber IN Student.i_studentnumber%Type,
i_firstname IN Student.i_firstname%Type, i_surname IN Student.i_surname%Type,i_dateofbirth IN student.i_dateofbirth%Type);
AS
BEGIN
INSERT INTO Student
(studentid, studentnumber,firstname,surname, dateofbirth, nationality, gender, emailaddress)
VALUES
(studentid_seq.NEXTVAL,
i_student.studentnumber,
i_student.firstname,
i_student.surname,
i_student.dateofbirth,
i_student.nationality
i_student.gender,
i_student.emailaddress);
COMMIT;
EXCEPTION
when others then null;
END;
END student_pck;
show error
END student_pck;
show error
EXECUTE insertStudent('studentid_seq.nextval','6786','Danika','Tateri','29Nov88','British','F','[email protected]'); /*this would insert the row*/
it compiles but gives the following error:
Error starting at line 1 in command:
package header/
Error report:
Unknown Command
PACKAGE student_pck Compiled.
7/1 PLS-00103: Encountered the symbol "AS" when expecting one of the following:
begin end function package pragma procedure subtype type use
<an identifier> <a double-quoted delimited-identifier> form
current cursor
Please Help! Thanks

Hii =D
i did what you told me to yet i still have error/s. here is the code
/*package header*/
CREATE OR REPLACE PACKAGE student_pck
AS
/*Insert a student*/
PROCEDURE insertStudent(i_studentID IN Student.studentID%TYPE, i_studentnumber IN Student.studentnumber%Type,
i_firstname IN Student.firstname%Type, i_surname IN Student.surname%Type, i_dateofbirth IN Student.dateofbirth%Type);
/*Delete student*/
/*PROCEDURE deleteStudent (d_studentnumber In student.studentnumber%TYPE)*/
END STUDENT_pck;
show error
/*package body*/
CREATE OR REPLACE PACKAGE BODY student_pck
AS
PROCEDURE
insertStudent(i_studentID IN Student.studentID%TYPE, i_studentnumber IN Student.i_studentnumber%Type,
i_firstname IN Student.i_firstname%Type, i_surname IN Student.i_surname%Type, i_dateofbirth IN student.i_dateofbirth%Type);
BEGIN
INSERT INTO Student
(studentid, studentnumber,firstname,surname, dateofbirth, nationality, gender, emailaddress)
VALUES
(studentid_seq.NEXTVAL,
i_student.studentnumber,
i_student.firstname,
i_student.surname,
i_student.dateofbirth,
i_student.nationality
i_student.gender,
i_student.emailaddress);
COMMIT;
EXCEPTION
when others then null;
END;
END student_pck;
show error

Similar Messages

  • Error message with procedure

    Hello,
    I am totally stuk.
    I have research and read but I just can't figure it out.
    I tried to follow examples and i thought i had it right. I guess not...
    I am useing oracle10g 10.2.0.3
    this is a transaction procedure that I have been working on all day.
    I thought I was close.
    The exercise that I am doing is practicing with the rollback and savepoint.
    The exercise said not to use parameters.
    can someone please help me to understand this error and maybe suggest an idea?
    The number below "56", appeared when i enter the execution. i don't know why it displayed.
    My procedure won't run enough to show the warning. I had to enter a "/" to show the warning.
    On top of that I totally don't understand the error message. I understand that the begin and the end is required in a procedure.
    so can someone help me !!
    the error messaage:
    SQL> @c:\cmis\proc_5\exc_3.sql
    56 /
    Warning: Procedure created with compilation errors.
    SQL> show error;
    Errors for PROCEDURE WEEK11_PROC:
    LINE/COL ERROR
    2/1 PLS-00103: Encountered the symbol "BEGIN" when expecting one of
    the following:
    ( ; is with authid as cluster compress order using compiled
    wrapped external deterministic parallel_enable pipelined
    my procedure:
    will perform transactions of inserting values into the catalog table while useing the rollback and savepoint.
    the table is empty at this point.
    set serveroutput on
    CREATE OR REPLACE PROCEDURE week11_proc
    begin
         set transaction transac 1;
              insert into catalog1
                   VALUES ('cmis420', 'Advance Relational Database', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
              insert into catalog1
                   VALUES ('CMST385', 'Introduction To XHTML', 'Terry Woods', sysdate, 'john Miller', sysdate);
              EXCEPTION
                   WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
                   ROLLBACK;
         set transaction transact 2;     
              insert into catalog1
                   VALUES ('cmst170', 'Introduction To XML', 'richard Jones', sysdate, 'Mary Smith', sysdate);
              insert into catalog1
                   values ('CMIS315', 'Programming in C++', 'richard Jones', sysdate, 'Paul Todd', sysdate);
                   savepoint transact2;
              EXCEPTION
                   WHEN OTHERS THEN
                   DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
              rollback to transact 1;
         set transaction transact 3;
              insert into catalog1
                   values ('CMIS111', 'Social Networking and Cybersecurity Best Practices', 'Terry Woods', sysdate, 'john Miller', sysdate);'
              insert into catalog1
                   values ('CMIS125', Programming in', sysdate, C#', 'richard Jones', sysdate, Peter Greenburg', sysdate);
                   savepoint trans3;
              EXCEPTION
                   WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
              rollback to savepoint transact2;
         set transaction transact4;
              insert into catalog1
                   values ('CMIS225', 'Developing Windows Presentation Foundation (WPF)', 'George Allen', sysdate, 'Richard Jones', sysdate);
              insert into catalog1
                   values ('CMIS465', 'Software Verification and Validation', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
                   savepoint transact4;
              EXCEPTION
              WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
         rollback to savepoint transact1;
         end;
    kabrajo

    CREATE OR REPLACE PROCEDURE week11_proc is
    begin
    set transaction transac 1;
    insert into catalog1
    VALUES ('cmis420', 'Advance Relational Database', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
    insert into catalog1
    VALUES ('CMST385', 'Introduction To XHTML', 'Terry Woods', sysdate, 'john Miller', sysdate);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    ROLLBACK;
    set transaction transact 2;
    insert into catalog1
    VALUES ('cmst170', 'Introduction To XML', 'richard Jones', sysdate, 'Mary Smith', sysdate);
    insert into catalog1
    values ('CMIS315', 'Programming in C++', 'richard Jones', sysdate, 'Paul Todd', sysdate);
    savepoint transact2;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to transact 1;
    set transaction transact 3;
    insert into catalog1
    values ('CMIS111', 'Social Networking and Cybersecurity Best Practices', 'Terry Woods', sysdate, 'john Miller', sysdate);'
    insert into catalog1
    values ('CMIS125', Programming in', sysdate, C#', 'richard Jones', sysdate, Peter Greenburg', sysdate);
    savepoint trans3;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to savepoint transact2;
    set transaction transact4;
    insert into catalog1
    values ('CMIS225', 'Developing Windows Presentation Foundation (WPF)', 'George Allen', sysdate, 'Richard Jones', sysdate);
    insert into catalog1
    values ('CMIS465', 'Software Verification and Validation', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
    savepoint transact4;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to savepoint transact1;
    end;

  • Odd Error with decode function in Order By Clause

    I am trying to compile a procedure and can't get around an error with a dynamic order by that doesn't make much sense to me. I can repoduce the error with a plain select statment in sql plus so I can rule out a declaration error. Here is an example with 2 numeric columns and a date column.
    select task_id, display_date, remark_id from task_list
    where task_id > 1000
    order by decode('Task_ID', 'Task_ID',Task_ID, 'Display_Date', Display_Date, 'Remark_ID',Remark_ID)
    returns the error:
    select task_id, display_date, remark_id from task_list
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected NUMBER got DATE
    I'm not sure why this error is occuring, because it doesn't even hit the Display_Date field in the Decode statment. If I take the Display_date out of the statement, it runs properly. If I change Display_Date to To_Char(Display_Date) it also runs fine, but the sorting is incorrect. Also I'm running 9.2, and do not want to use dynamic sql to build my query. Any Ideas out there as to the cause of this error?

    I did find a workaround to this issue by breaking the decode statment into three separate statement, but I still think that the way it is written above should work, and may be a bug, or an error that I don't understand fully.
    The Order by was rewritten like this:
    order by decode(pSort, 'Task_ID',Task_ID), decode(pSort, 'Display_Date', Display_Date),
    decode(pSort, 'Remark_ID',Remark_ID);
    Thanks

  • While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    I faced the same issue. This solved it for me: Troubleshooting issues with iTunes for Windows updates
    Hope this helps.

  • Was trying to update my ITunes and get this error: The procedure entry point AVCFPlayerItemDurationChangedNotification could not be located in the dynamic link library AVFoundationCF.dll. Just got the new IPhone and am trying to share music files. Can any

    I have Windows Vista computer. I am trying to upgrade my ITunes so can share files with other home computer. (Just got the new IPhone). I get this system error: The procedure entry point AVCFPlayerItemDurationChangedNotification could not be located in the dynamic link library AVFoundationCF.dll. Tries system restore and redownloaded...NOW Itunes will not even open. Can anyone help?

    I uninstalled Apple Application Support, opened iTunesSetup with WinRar, and went down the list of msi's. AppleApplicationSupport was an install, all the others I did Repair.  Did not have to reboot. Works okay now.
    HTH

  • Error with dbms_xslprocessor.clob2file

    Hi all!
    I am experiencing an error with this command
    dbms_xslprocessor.clob2file(v_xml,'DIR','1.xml');
    where:
    v_xml is a clob ( it is well formed and with data)
    DIR is the directory where i want to output the data, it has beeen created with: EXECUTE IMMEDIATE 'create or replace directory DIR ' ||' as ' || '''D:\XMLFILES''';
    and i don't have any error in this command
    1.xml is the name of the file.
    The errors i get when i execute that command are the following:
    ORA-29283 invalid file operation
    ORA-06512 at "SYS.UTL_FILE" line 451
    ORA-29283 invalid file operation
    ORA-06512 at "XDB.DBMS_XSlPROCESSOR" line 58
    ORA-06512 at "DBA_TEST.PRUEBA_TEST" line 106
    ORA-06512 at line 2
    thx in advance!!!

    Hi, excuse me for taking so long time to respond, but yesterday i had a mayor issue to solve, but now i am again with this problem.
    I'm gonna put some more code.
    The database is in another location, and i want to write the data in a local drive, so maybe this is important for the code.
    I will put the full code so maybe there is something else important here:
    CREATE OR REPLACE PROCEDURE DBA_TEST.PRUEBA_TEST AS
    v_select VARCHAR2(2000);
    v_ctx DBMS_XMLGen.ctxHandle;
    v_xml CLOB;
    v_more BOOLEAN := TRUE;
    xmldoc dbms_xmldom.DOMDocument;
    DIR VARCHAR2(200);
    v_DIR VARCHAR2(200);
    BEGIN
    EXECUTE IMMEDIATE 'create or replace directory DIR ' ||' as ' || '''D:\XMLFILES''';
    v_DIR := DIR;
    v_select := ' select nombre, direccion, dni from clientes where anio = 2009';
    v_ctx := DBMS_XMLGen.newContext(v_select);
    DBMS_XMLGen.setRowsetTag(v_ctx, 'rec_decla');
    DBMS_XMLGen.setRowTag(v_ctx, '');
    v_xml := DBMS_XMLGen.GetXML(v_ctx);
    DBMS_XMLGen.closeContext(v_ctx);
    dbms_xslprocessor.clob2file(v_xml,v_DIR,'1.xml');
    DBMS_LOB.FREETEMPORARY(v_xml);
    END;
    Remeber that the data are in another location, no local, and i need to output these xml in the D:\XMLFILES directory.
    I tried to grant permisions
    GRANT READ, WRITE ON DIRECTORY TO DBA_USER
    , but it said that i can't give permision to itself..
    maybe there is another way to write these files witout using:
    dbms_xslprocessor.clob2file(v_xml,v_DIR,'1.xml');
    but i would like to use it.
    Thx all!!!

  • Error with ARRAY- ArrayDescriptor

    Hi!
    I've a very weird error with an application built in JDeveloper 10G 10.1.2.2.0 (Build 1929). I need to call an store procedure and pass an ARRAY parameter. To do so, I just
          Connection conn = callStoredProcPST.getConnection();    
          ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor( "NUM_ARRAY", conn );                 
          ARRAY array_to_pass = new ARRAY( descriptor, conn, P_LISTTYPE );    
          callStoredProcPST.setArray(2, array_to_pass);and works perfectly if I run it from JDev. However, if I deploy such application in OAS 10.1.2.0.2 I got an exception:
    java.lang.NullPointerException
         at oracle.jdbc.driver.PhysicalConnection.isDescriptorSharable(PhysicalConnection.java:5025)
         at com.evermind.sql.OracleConnectionBCELProxy__oracle_jdbc_driver_T4CConnection__SQLBCELProxy.isDescriptorSharable()
         at oracle.sql.ARRAY.<init>(ARRAY.java:118)I redeploy the ADF installer in the server but that doesn't work. I am sure that this is some kind of problem with the jars between my local JDev and OAS.
    Do you have any idea about this?
    Best regards,
    Gerardo

    Ok, I solved the problem.
    After the connection opened my code executed the following sql "+ALTER SESSION SET CONSTRAINTS=DEFERRED+", it made all the deferrable constraints deferred.
    Yair

  • Error with J1I6 (modvat forecast)

    Hi Experts
    I am experiencing error with transaction J1I6.
    "Default Condition Type not defined for Tax Procedure TAXINN"
    Message no. 8I046
    The remidy suggested in the above message is "Maintain table j_1itaxdef for tax procedure and specify condition type used for Excise duty calculation in field j_1imctypr."
    But did not find this table.
    Request for suggestion.
    regards
    marias

    Hi Experts
    I am experiencing error with transaction J1I6.
    "Default Condition Type not defined for Tax Procedure TAXINN"
    Message no. 8I046
    The remidy suggested in the above message is "Maintain table j_1itaxdef for tax procedure and specify condition type used for Excise duty calculation in field j_1imctypr."
    But did not find this table.
    Request for suggestion.
    regards
    marias

  • ERROR IN PROCEDURE

    I'm trying to write a procedure that will compute the start and end dates of the weeks within a period, etc. Number of business days in a week is 5; that is, Monday to Friday.
    The first part of the code I have to write is giving me problems please help. The table below was created:
    Wrote file afiedt.buf
    1 CREATE TABLE WEEKS
    2 (WEEKID VARCHAR2(20),
    3 TRANSACTION_YEAR VARCHAR2(20),
    4 START_DATE DATE,
    5 END_DATE DATE,
    6 DAYS VARCHAR2(20),
    7* WEEK_NUMBER VARCHAR2(20))
    SQL> /
    Table created.
    SQL> --- Code To Generate start date, end date weekid, week number, etc in A financial Year
    SQL> Create OR REPLACE PROCEDURE Weeksinyear IS
    2 BEGIN
    3 declare
    4 sdate_v weeks.start_date%type;
    5 edate_v weeks.end_date%type;
    6 ndays_v weeks.days%type;
    7 nweek_v Weeks.week_number%type;
    8 weekid_v weeks.weeksid%type;
    9 transyear_v weeks.weeks.transaction_year%type;
    10 numbweeks_v number;
    11 fyearst_v date;
    12 fyeared_v date;
    13 totaldays_V number;
    14 i number;
    15 d number;
    16 begin
    17 fyearst_v := '05-jan-2004';
    18 fyeared_v := '26-jan-2004';
    19 sdate := fyearst_v;
    20 transyear_v := to_char('05-jan-2004','yyyy');
    21 nweek_v :=1;
    22 ndays_v := 5;
    23 totaldays_v := to_number(to_date(fyeared) - to_date(fyearst));
    24 nweekid_v :=1;
    25 i := 1;
    26 loop
    27 If to_char(fyearst_v,'DAY') ='MONDAY ' then
    28 loop
    29 i := i + 4;
    30 if i < totaldays_v then
    31 d := to_number(totaldays_v - i);
    32 edate_v := (sdate_v + (d - 1));
    33 elseif i = totaldays_v then
    34 edate_v := sdate_v + 4;
    35 elseif i < totaldays then
    36 edate := (sdate + 4);
    37 endif;
    38 weekid_v := (i||'000'||'i');
    39 insert into weeks(weekid, transaction_year, start_date, end_date, days, week_number)
    40 values(weekid_v,transyear, sdate_v, ndays, nweek_v);
    41 if totaldays_V > 7 then
    42 weekid_v := weekid + 1;
    43 sdate_v := sdate_v + 7;
    44 transyear_V := transyear_v;
    45 nweek_v := nweek_v + 1;
    46 ndays_v := ndays_v;
    47 totaldays_v := to_number(totaldays_v - 7);
    48 else exit;
    49 end loop;
    50 else exit;
    51 end loop;
    52 end;
    53 END;
    54 /
    Warning: Procedure created with compilation errors.
    SQL> sho err;
    Errors for PROCEDURE WEEKSINYEAR:
    LINE/COL ERROR
    33/35 PLS-00103: Encountered the symbol "I" when expecting one of the
    following:
    := . ( @ % ;
    35/35 PLS-00103: Encountered the symbol "I" when expecting one of the
    following:
    := . ( @ % ;
    49/23 PLS-00103: Encountered the symbol "LOOP" when expecting one of
    the following:
    if
    LINE/COL ERROR
    51/17 PLS-00103: Encountered the symbol "LOOP" when expecting one of
    the following:
    if
    SQL>

    So many things, I don't really know where to start.
    At line 32
    IF TO_CHAR(fyearst,'DAY') ='MONDAY ' then
    Will never be true it needs to be either
    IF TO_CHAR(fyearst,'DAY') ='MONDAY ' THEN -- A total of 9 characters (padded to the length of WEDNESDAY) or
    IF TRIM(TO_CHAR(fyearst,'DAY')) ='MONDAY' THEN
    Fixing this leads to a second problem in the inner loop. At line 35
    IF i < totaldays THEN
    is logically incorrect. The variable i will take the values 5, 9, 13, 17 and enter the if condition, but will not be equal to totaldays at line 38. On the fifth iteration i = 21 so the conditional at line 35 fails and you have an infinite loop, so the test needs to be:
    IF i <= totaldays THEN
    to even get into any of your processing. Now, on the fifth pass, the conditional on line 38 (IF i = totaldays THEN ) will be true, so edate gets set, but the condition on line 40 (IF i > totaldays THEN) can never be true, so we're back to an infinite loop.
    So change line 40 to
    IF i >= totaldays THEN
    Now, the insert gets done, and the test at line 45 (IF totaldays > 7 THEN) passes and totaldays gets reset, and we go back to the top of the inner loop. Now, i = 21 and totaldays = 14, so the condition at line 35 fails, and again, we're in an infinite loop, so lets reset i as well as totaldays.
    Now i still goes 5, 9, 13, 17, 21 but totaldays = 14, so the test at line 38 is never true, and once more, an infinite loop.
    At this point I gave up and put an explicit exit after the insert statement, just to see what should be inserted, and got another infinite loop in the outer loop because there is no terminating condition on the loop since fyearst never gets changed. Having seen some output, I think what you are looking for is something more like:
    INSERT INTO weeks
    SELECT rownum, TO_CHAR(TO_DATE('05-jan-2004','dd-mon-yyyy'),'YYYY'),
           NEXT_DAY(TO_DATE('05-jan-2004','dd-mon-yyyy') - 7,'MONDAY') + ((rownum - 1) * 7),
           NEXT_DAY(TO_DATE('05-jan-2004','dd-mon-yyyy') + 1,'FRIDAY') + ((rownum - 1) * 7),
           '5', TO_CHAR(rownum)
    FROM all_objects
    WHERE rownum <= 52or, if you really want a procedure:
    CREATE OR REPLACE PROCEDURE weeksinyear (p_start IN DATE, p_end IN DATE) AS
       num_weeks NUMBER;
    BEGIN
       num_weeks := (NEXT_DAY(p_end,'MONDAY') - NEXT_DAY(p_start - 7,'MONDAY')) /7;
       INSERT INTO weeks
       SELECT rownum, TO_CHAR(p_start,'YYYY'),
              NEXT_DAY(p_start - 7,'MONDAY') + ((rownum - 1) * 7),
              NEXT_DAY(p_start + 1,'FRIDAY') + ((rownum - 1) * 7),
              '5', TO_CHAR(rownum)
       FROM all_objects
       WHERE rownum <= num_weeks;
       COMMIT;
    END;If you will always want to do this for an entire year, then the procedure could be simplified to:
    CREATE OR REPLACE PROCEDURE weeksinyear (p_start IN DATE) AS
    BEGIN
       INSERT INTO weeks
       SELECT rownum, TO_CHAR(p_start,'YYYY'),
              NEXT_DAY(p_start - 7,'MONDAY') + ((rownum - 1) * 7),
              NEXT_DAY(p_start + 1,'FRIDAY') + ((rownum - 1) * 7),
              '5', TO_CHAR(rownum)
       FROM all_objects
       WHERE rownum <= 52;
       COMMIT;
    END;TTFN
    John

  • Errors with the global conversion rule for the field 0SOURSYSTEM.

    Hello Gurus,
        We are implementing CRM Activities. I enhanced the data source and when I add new info objects to 0SAL_DS01 DSO and trying to activate I'm getting there errors. Can some one please help me out in this problem?
    Error in global conversion rule for InfoObject 0SOURSYSTEM
    Message no. RSAR263
    Diagnosis
    Errors with the global conversion rule for the field 0SOURSYSTEM.
    System Response
    The function module delivers the following error message:
    Field "" is unknown. It is neither in one of t
    Procedure
    Check the definition of the global conversion rule for an InfoObject
    What does this error mean? We are using BI 7.
    Thanks
    RKR

    I have around 9 source systems, do I have to maintain data for all of them for 0SOURCESYSTEM?
    I set data for CRM system and then tried to activate.. but still I'm getting same error.
    I;m getting this warning too...
    InfoObject 0FISCVARNT needs to be in key for DataStore object C_0SAL_D
    Message no. RSDODSO123
    Diagnosis
    Characteristic 0FISCVARNT is included in the data part of ODS object C_0SAL_D.
    System Response
    The fiscal year variant cannot be used in the update rules for calculating business hour characteristics.
    Does this matter???
    Thanks
    RKR
    Message was edited by:
            RKR M

  • Protocol violation Error with 17401 error code

    Hi,
    When we are trying to call stored procedure with below syntax we are getting "com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation" error with error code 17401 in local IRAD application and also in deployed application of WAS.
    call schemaName.truncate_table('table_name', 'DROP STORAGE')
    If I comment this procedure call in the Java code and execute, then next SQL staments following this call will be executed successfully. Below are some of the trails that I have already done and getting same error
    1. Dowloaded latest ojdbc.jar as per Oracle Database 10g 10.2.0.4.0 version
    2. Kept the minimum number of connections value as ZERO in WAS admin.
    Let me know if you know any solution for this
    Thanks
    Basavaraj

    Hi,
    It takes around 10 seconds from the time I started this batch job
    Below is the code, in the below code getStatement() method gets the SQLStatement object with below procedure call
    call odsacct.truncate_table(?, 'DROP STORAGE')
    SQLStatement sqlStmt = getStatement(CONFIG_FILE, DAOConstants.TRUNCATE_DATA_DEST);
              CallableStatement callableStmt = null;
              try {
                   callableStmt = conn.prepareCall(sqlStmt.getSql());
                   // set the in param
                   callableStmt.setString(1, insertTable);
                   callableStmt.executeUpdate();
              catch(SQLException e) {
                   System.out.println("Error Code .. Basava..."+e.getErrorCode());
                   e.printStackTrace();
                   throw new Exception("Error Deleting Data in the Destination Table: ", e);
              finally {
                   close(null, null, callableStmt);
    Below is the exception stack trace
    [4/20/11 15:11:35:991 EDT] 00000026 SystemOut O [Executing Job : AcctSearchLoaderWeeklyJob
    [4/20/11 15:11:37:116 EDT] 00000026 SystemOut O ******ADNAServiceProperties loaded successfully******
    [4/20/11 15:11:37:116 EDT] 00000026 SystemOut O [Account Search Data one time full data load started...
    [4/20/11 15:11:37:460 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:37 EDT 2011] : Current Active Table: ODSACCT.ACCT_SEARCH_A
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Number of Records in ODSACCT.ACCT_SEARCH_A table is 537352
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Active Table Record Count is ... 537352
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Truncate data from... ODSACCT.ACCT_SEARCH_B
    [4/20/11 15:11:39:741 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_0.txt
    [4/20/11 15:11:39:772 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_0.txt
    [4/20/11 15:11:39:788 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_1.txt
    [4/20/11 15:11:39:819 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_1.txt
    [4/20/11 15:11:39:819 EDT] 00000026 ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource jdbc/adna_prod_ds. The exception which was received is com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation:java.sql.SQLException: Protocol violation
    [4/20/11 15:11:39:819 EDT] 00000026 SystemOut O Error Code .. Basava...17401
    [4/20/11 15:11:39:835 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:39 EDT 2011] : Exception Occured while loading ACCT_SEARCH_B : party id is null
    [4/20/11 15:11:39:835 EDT] 00000026 SystemOut O [Account Search Data full data load failed.
    [4/20/11 15:11:39:819 EDT] 00000026 SystemErr R com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at java.lang.reflect.Method.invoke(Method.java:615)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:569 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_0.txt
    [4/20/11 15:11:40:585 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_0.txt
    [4/20/11 15:11:40:600 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_1.txt
    [4/20/11 15:11:40:600 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_1.txt
    [4/20/11 15:11:40:632 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_2.txt
    [4/20/11 15:11:40:647 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_2.txt
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R java.lang.Exception: Error Deleting Data in the Destination Table:
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:606)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at java.lang.reflect.Method.invoke(Method.java:615)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R Caused by: com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
         at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
         at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    ---- Begin backtrace for Nested Throwables
    java.sql.SQLException: Protocol violation
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
         at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:885)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:640)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4124)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecuteUpdate(WSJdbcPreparedStatement.java:948)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:615)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      ... 33 more
    Thanks
    Basavaraj G.M

  • Printing error  with t-code FBCJ: Can not find PDL for output device prtloc

    Hello , folks ,
    The error with my system show the details as follow :
    Cannot find PDL type for output device prtlocal
    Message no. FPRUNX113
    Diagnosis
    No PDL type has been found for the specified output device.
    System Response
    Error message
    Procedure
    Contact your system administrator.
    Procedure for System Administration
    For more information, see SAP Note 685571.
    Our Basis can not solve the problems .
    anybody know what's wrong with it ? 
    Thanks a lot .

    other problems could be:
    C drive is full
    ADS folder under C:\Temp are write protected

  • Demantra - problem with procedure EP_BUILD_MODEL

    Hi,
    We have installed Demantra 7.3.1 Then create new model with Data Model Wizard. After clicking Build model we got the following error:
    Error - ORA-20001: Error in Procedure REBUILD_DATABASE ORA-1400: can not insert null in (DEAMANTRA.LOC_LEVELS.ENGINE_PROFILES_ID)
    I found out that reason of this problem is procedure Data_Model.rebuild_database
    Statements like this:
    INSERT INTO LOC_LEVELS (loc_level,loc_field_name,loc_field) VALUES (1,'Lowest Location Level',1);
    INSERT INTO LOC_LEVELS (loc_level,loc_field_name,loc_field) VALUES (2,'Highest Fictive Level',0);
    INSERT INTO ITEMS_LEVELS (item_level,item_field_name,item_field) VALUES (1,'Lowest Item Level',2);
    INSERT INTO ITEMS_LEVELS (item_level,item_field_name,item_field) VALUES (2,'Highest Fictive Level',0);
    INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (1,1,1);
    INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (2,1,2);
    INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (3,2,2);
    gives error due to a fact that all this tables (LOC_LEVELS, ITEMS_LEVELS, FORECAST_TREE) has column ENGINE_PROFILES_ID with nullable set to no.

    Hi,
    The problem is solved it was a constraint violation when creating the data model on the location levels.
    Thank you

  • HT203175 Why won't iTunes install properly? It gives the start up error "The procedure entry point JSStringGetUTF8String could not be located in the dynamic link library WebKit.dll"

    I can't get iTunes to install/start on my HP laptop. When I start/install the current version, I get the following error "The procedure entry point "JSStringGetUTF8String could not be located in the dynamic link library WebKit.dll". Why isn't this dll included in the distribution? What do I do to get iTunes to install on my 64-bit AMD HP laptop.

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair".
    Does iTunes launch properly now?
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post:
    Re: I recently updated to vista service pack 2 and I updated to itunes

  • FDM Conditional Map error - Invalid Procedure Call or arguments

    Hi,
    I am trying to add a script to my LIKE mapping to pick up the target Product based on the type of target account.
    This is the script I have written -
    If Mid(varValues(14),1,1) = "6" Then Result = varValues(37) Else Result = varValues(21) End If
    When i try to import (using Integration script from a database table) I get the error - Invalid Procedure Call or arguments.
    If I remove the 'Else' part, it imports successfully. Also I tried the same using Case statements - I get the same error, if I remove 'Case Else' it works fine.
    Any hekp on this would be highly appreciated!
    Thanks in advnace...

    This mapping is associated with Product dimension - UD10 (varValues(37)). UD10 is active and mappable, mapped to target Product dimension. UD2 (varValues(21)) is the lookup which is not mapped to a target dimension.

Maybe you are looking for