ora 06550 - JPA PLS-00306: wrong number or types of arguments in call to 'STP_REFRESH_CATEGORY_GUARANTEE' -
I am using JPA to call the Oracle stored procedure and am getting mentioned exception below
error [4/24/14 9: 07: 37: 583 EDT] 00,000,031 SystemOut O [EL warning]: 2014-04-24 09: 07: 37.452 - UnitOfWork (+167971964) - Exception [EclipseLink-4002] (Eclipse Furnish Service - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-06550: Line 1, Column 7: PLS-00306: Incorrect 'STP_REFRESH_CATEGORY_GUARANTEE' ORA-0650: Call Line 7, PL / SQL: ST Ignored on Tment error code: 6550 Call: BEGIN STP_REFRESH_CATEGORY_GUARANTEE (SHIP_CODE = & gt;?, SAIL_DATE = & gt;?, Wapasi_kod = & gt;?); End; Bind = & gt; [3 parameters bound] Query: Dataraidekvin (name = "Rifreskrent guarantee") [4/24/14 9: 07: 37: 584 ADT] 00000031 Sistmot o **************** *************************************************************************************************** *************** [4/24/14 9: 07: 37: 584 EDT] 00,000,031 SystemOut O exception: exception [EclipseLink-4002] (Eclipse persistence services - 2.4.0. V20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-06550: Line 1, Column 7: PLS-00306: 'STP_REFRESH_CATEGORY_GUARANTEE' ORA calls incorrect numbers or types of arguments -06550: Line 1, Column 7: PL / SQL: Ignore the Statement Ia error code: 6550 Call: BEGIN STP_REFRESH_CATEGORY_GUARANTEE (SHIP_CODE = & gt;?, SAIL_DATE = & gt;?, Return_code = & gt;?); End; Bind = & gt; [3 binding standards] Q: DataReadQuery (name = "refreshCategoryGuarantee") SHIP_CODE: Al sail_date: 01 Jun -14 code: try {query =. GetEntityManager () createNamedQuery ("refreshCategoryGuarantee"); Query.setParameter ("SHIP_CODE", ship_code); Query.setParameter ("SAIL_DATE", DateUtil.getSqlDate (sailDate)); Return (integer) query .getSingleResult (); } Catch (Exception Pre) {System.out.println ("**************************************************************************************** *************************************************************************************************** ** ********************************************************************************************** ; Query Named Guarantee ["+ ship_code +", "+ sailDate +"] ", formerly) with the" Logger.error Paragraph "error (" Error in performing Refresh "); Back stored Processor Consultants. REGURN_CODE_EXCEPTION;} Here, the Refresh Category Guarantee has been named the query for STP_REFRESH_CATEGORY_GUARANTEE processes. ------------- Named Storage Prospector (named = "Refresh Segment Guarantee") Process name = "STP_REFRESH_CATEGORY_GUARANTEE", retainssetsetet = false, parameter = {@Sto RedProcedureParameter (queryParameter = "SHIP_CODE", type = String.class), @StoredProcedureParameter (queryParameter = "SAIL_DATE", type = date .class), @StoredProcedureParameter (queryParameter = "return_code", Direction = Direction.OUT, type = Integer class)})
My issue is, when I execute under any anonymous block in Oracle working without any issue SET server output at DECLARE rc NUMBER; BEGIN STP_REFRESH_CATEGORY_GUARANTEE ('OA', '24 -Jan-15 ', RC); Dbms_output.put_line ('response code:' || RC); End; I am not sure why I am getting a JAA call? Will you please some one to help me solve it?
"itemprop =" text "> StoredProcedureParameter Definition Parameter Type of SAIL_DATE, is it Java .util.date? This should be java.sql.date ...
@StoredProcedureParameter (queryParameter = "SAIL_DATE", type = java.slq.Date.class)
[4/24/14 9: 07: 37: 583 EDT] 00,000,031 SystemOut O [EL warning]: 2014-04-24 09: 07: 37.452 - UnitOfWork (+167971964) - Exception [EclipseLink-4002] (Eclipse Furnish Service - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-06550: Line 1, Column 7: PLS-00306: Incorrect 'STP_REFRESH_CATEGORY_GUARANTEE' ORA-0650: Call Line 7, PL / SQL: ST Ignored on Tment error code: 6550 Call: BEGIN STP_REFRESH_CATEGORY_GUARANTEE (SHIP_CODE = & gt;?, SAIL_DATE = & gt;?, Wapasi_kod = & gt;?); End; Bind = & gt; [3 parameters bound] Query: Dataraidekvin (name = "Rifreskrent guarantee") [4/24/14 9: 07: 37: 584 ADT] 00000031 Sistmot o **************** *************************************************************************************************** *************** [4/24/14 9: 07: 37: 584 EDT] 00,000,031 SystemOut O exception: exception [EclipseLink-4002] (Eclipse persistence services - 2.4.0. V20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-06550: Line 1, Column 7: PLS-00306: 'STP_REFRESH_CATEGORY_GUARANTEE' ORA calls incorrect numbers or types of arguments -06550: Line 1, Column 7: PL / SQL: Ignore the Statement Ia error code: 6550 Call: BEGIN STP_REFRESH_CATEGORY_GUARANTEE (SHIP_CODE = & gt;?, SAIL_DATE = & gt;?, Return_code = & gt;?); End; Bind = & gt; [3 binding standards] Q: DataReadQuery (name = "refreshCategoryGuarantee") SHIP_CODE: Al sail_date: 01 Jun -14 code: try {query =. GetEntityManager () createNamedQuery ("refreshCategoryGuarantee"); Query.setParameter ("SHIP_CODE", ship_code); Query.setParameter ("SAIL_DATE", DateUtil.getSqlDate (sailDate)); Return (integer) query .getSingleResult (); } Catch (Exception Pre) {System.out.println ("**************************************************************************************** *************************************************************************************************** ** ********************************************************************************************** ; Query Named Guarantee ["+ ship_code +", "+ sailDate +"] ", formerly) with the" Logger.error Paragraph "error (" Error in performing Refresh "); Back stored Processor Consultants. REGURN_CODE_EXCEPTION;} Here, the Refresh Category Guarantee has been named the query for STP_REFRESH_CATEGORY_GUARANTEE processes. ------------- Named Storage Prospector (named = "Refresh Segment Guarantee") Process name = "STP_REFRESH_CATEGORY_GUARANTEE", retainssetsetet = false, parameter = {@Sto RedProcedureParameter (queryParameter = "SHIP_CODE", type = String.class), @StoredProcedureParameter (queryParameter = "SAIL_DATE", type = date .class), @StoredProcedureParameter (queryParameter = "return_code", Direction = Direction.OUT, type = Integer class)})
My issue is, when I execute under any anonymous block in Oracle working without any issue SET server output at DECLARE rc NUMBER; BEGIN STP_REFRESH_CATEGORY_GUARANTEE ('OA', '24 -Jan-15 ', RC); Dbms_output.put_line ('response code:' || RC); End; I am not sure why I am getting a JAA call? Will you please some one to help me solve it?
"itemprop =" text "> StoredProcedureParameter Definition Parameter Type of SAIL_DATE, is it Java .util.date? This should be java.sql.date ...
@StoredProcedureParameter (queryParameter = "SAIL_DATE", type = java.slq.Date.class)
Comments
Post a Comment