Error: Wrong number of arguments in method
Hi all,
I keep getting the above mentioned error when compiling simple JSPs with
only a few lines of codes. Here are the log dump.
Mon Aug 07 20:02:30 GMT+08:00 2000:<I> <ServletContext-General> file: init
Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
resource 'language.html' in document root 'C:\weblogic\myserver\public_html'
Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
resource 'top.html' in document root 'C:\weblogic\myserver\public_html'
Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
resource 'language.html' in document root 'C:\weblogic\myserver\public_html'
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: init
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
verbose initialized to: true
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
packagePrefix initialized to: jsp
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
compileCommand initialized to: C:/jdk1.2.2/bin/javac.exe
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
srcCompiler initialized to weblogic.jspc
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
superclass initialized to null
Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
workingDir initialized to: C:\weblogic\myserver\classfiles
Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
pageCheckSeconds initialized to: 1
Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> *.jsp:
initialization complete
Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> Generated
java file: C:\weblogic\myserver\classfiles\jsp\helloworld.java
Mon Aug 07 20:02:59 GMT+08:00 2000:<E> <ServletContext-General> Compilation
of C:\weblogic\myserver\classfiles\jsp\helloworld.java failed:
C:\weblogic\myserver\classfiles\jsp\helloworld.java:54: Wrong number of
arguments in method.
if (sci.isResourceStale("/helloworld.jsp", 933320916000L, "5.1.0
Service Pack 4 06/29/2000 18:18:23 #74560")) return true;
^
C:\weblogic\myserver\classfiles\jsp\helloworld.java:55: Wrong number of
arguments in method.
if (sci.isResourceStale("/dukebanner.html", 933321078000L, "5.1.0
Service Pack 4 06/29/2000 18:18:23 #74560")) return true;
^
2 errors
java.io.IOException: Compiler failed
executable.exec([Ljava.lang.String;[C:/jdk1.2.2/bin/javac.exe, -classpath,
c:\weblogic\lib\weblogic510sp4boot.jar;c:\weblogic\myserver\User.jar;c:\webl
ogic\myserver\Person.jar;c:\weblogic\myserver\TradingAccount.jar;c:\weblogic
\myserver\uniquesequence.jar;c:\weblogic\myserver\stockbroker.jar;;C:\jdk1.2
.2\jre\lib\rt.jar;C:\jdk1.2.2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\w
eblogic\eval\cloudscape\lib\cloudscape.jar;c:\weblogic\lib\weblogic510sp4.ja
r;c:\weblogic\license;c:\weblogic\classes;c:\weblogic\myserver\serverclasses
;c:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\tmp_deployments\ejbjar
-10126.jar;C:\weblogic\lib\persistence\WebLogic_RDBMS.jar;C:\weblogic\myserv
er\tmp_deployments\ejbjar-10125.jar;C:\weblogic\myserver\tmp_deployments\ejb
jar-10124.jar;C:\weblogic\myserver\tmp_deployments\ejbjar-10123.jar;C:\weblo
gic\myserver\tmp_deployments\ejbjar-10122.jar;C:\weblogic\myserver\tmp_deplo
yments\ejbjar-10121.jar;C:\weblogic\myserver\servletclasses;C:\weblogic\myse
rver\classfiles, -d, C:\weblogic\myserver\classfiles,
C:\weblogic\myserver\classfiles\jsp\helloworld.java])
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a, Compiled Code)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
7)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:142)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:744)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:692)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Mon Aug 07 20:02:59 GMT+08:00 2000:<E> <ServletContext-General> Servlet
failed with Exception
java.io.IOException: Compiler failed
executable.exec([Ljava.lang.String;[C:/jdk1.2.2/bin/javac.exe, -classpath,
c:\weblogic\lib\weblogic510sp4boot.jar;c:\weblogic\myserver\User.jar;c:\webl
ogic\myserver\Person.jar;c:\weblogic\myserver\TradingAccount.jar;c:\weblogic
\myserver\uniquesequence.jar;c:\weblogic\myserver\stockbroker.jar;;C:\jdk1.2
.2\jre\lib\rt.jar;C:\jdk1.2.2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\w
eblogic\eval\cloudscape\lib\cloudscape.jar;c:\weblogic\lib\weblogic510sp4.ja
r;c:\weblogic\license;c:\weblogic\classes;c:\weblogic\myserver\serverclasses
;c:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\tmp_deployments\ejbjar
-10126.jar;C:\weblogic\lib\persistence\WebLogic_RDBMS.jar;C:\weblogic\myserv
er\tmp_deployments\ejbjar-10125.jar;C:\weblogic\myserver\tmp_deployments\ejb
jar-10124.jar;C:\weblogic\myserver\tmp_deployments\ejbjar-10123.jar;C:\weblo
gic\myserver\tmp_deployments\ejbjar-10122.jar;C:\weblogic\myserver\tmp_deplo
yments\ejbjar-10121.jar;C:\weblogic\myserver\servletclasses;C:\weblogic\myse
rver\classfiles, -d, C:\weblogic\myserver\classfiles,
C:\weblogic\myserver\classfiles\jsp\helloworld.java])
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a, Compiled Code)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
7)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:142)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:744)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:692)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
I believe that it has got something to do with the configuration of the
server and not the code in the JSPs. Have anyone encountered this error
before? Pls advice thanx!
Cheers,
kianhui
double d[] = new double[300];
getMax(d);Pass the array, not an element in the array.
Similar Messages
-
Wrong number of arguments in method
i have made on jar file in which i have one method let say String c(String a, String b,String c).
i am calling this method in my jsp like
String num = c(String a, String b, String c)
but giving error
500 internal server error
Wrong number of arguments in method.
thanksI assume you have this in a Java snippet and the method is defined within the JSP. Ok, then you should call as follows:
String num = c(a,b,c);
When you call a method, you don't include the Types in the call-- that's only when you define the method.
Hope this helps. -
Error message: 450 [Wrong number of arguments or invalid property assignment]
Hello Support,
I have a vbscript which does some database query. i see from the log that script quits with the below error.
Error message: 450 [Wrong number of arguments or invalid property assignment]
but when i execute the same query directly on database, it gives me correct result. also i see that not all the time script quits with this error.
Does anyone have idea how to troubleshoot it?
-KAKA-i see. i know at which line it fails as error handling is done and will be written in the log.
sQuery_Prod = "select object_text from sto_ov_externalnode where name = '" & NodeId & "'"
oRecordSet_Prod.Open sQuery_Prod, oConnection, adOpenStatic, adLockOptimistic
if err.number <> 0 then
LogWrite ("Unable to run query")
LogWrite ("Query: [" & sQuery_Prod & "]")
LogWrite ("Connection string: [" & sConnect & "]")
LogWrite ("Error message: " & err.number & " [" & err.description & "]")
wscript.quit(1)
end if
and this piece of code write following in the log.
07.10.2014 16:55:03:Unable to run query
07.10.2014 16:55:03:Query: [select object_text from sto_ov_externalnode where name = '{B10255CF-F618-45FB-99BC-31A57D747702}']
07.10.2014 16:55:03:Connection string: [DSN=Script;DRIVER={SQL Native Client};User ID=xxxxxx;Password=yyyyyy]
07.10.2014 16:55:03:Error message: 450 [Wrong number of arguments or invalid property assignment]
Where as i can run query "select object_text from sto_ov_externalnode where name = '{B10255CF-F618-45FB-99BC-31A57D747702}'" successfully directly on database.
also in the next cycle same query will be successfull within script too.
Does this help in understanding the problem?
-KAKA- -
Error: wrong number or types of arguments
Getting the following error:-
wrong number or types of arguments in call to 'XMLTYPE'
with the following insert statement:-
INSERT INTO com_xml(name,content)
VALUES (V_FILENAME,XMLType(bfilename('EMAIL_ATTACH', 'JobInstructions.xml')));
Any ideas for a fix folks?hi guys
managed a work around with utl_file
DECLARE
V_FILENAME VARCHAR2(20):= 'JobInstructions.xml';
V_PATH VARCHAR2(100):= '/oracle/attachments';
+V_XML CLOB; --HOLDS THE CONTENTS OF THE XML FILE TO BE INSERTED IN TO THE DATABASE+
+VNEWLINE VARCHAR2(200):= ''; --HOLDS THE LINE TO INSERTED IN TO V_xml+
+VSFILE utl_file.file_type; --HOLDS THE FILE+
BEGIN
VSFile := utl_file.fopen(V_PATH, V_FILENAME,'r');
IF utl_file.is_open(VSFILE) THEN
LOOP
BEGIN
utl_file.get_line(VSFILE, vNewLine);
IF vNewLine IS NULL THEN
EXIT;
ELSE
V_XML := V_XML||vNewLine;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXIT;
END;
END LOOP;
END IF;
--insert the file into com_xml+
--INSERT THE FILE CONTENTS+
INSERT INTO COM_XML(name,content)
VALUES ('STEW',XMLType(V_XML));
end; -
Getting Wrong number of Arguments as response
Hi,
I am just trying run one Process Rtask for RACF called "AdduserToDataSet" which gives a response called Wrong number of Arguments:
I checked for both Process Task mapping variables and Adapter Varibles and looks like both are same. Not sure what could be the issue?
2011-05-27 06:04:30,281 INFO (http-0.0.0.0-8080-7) [STDOUT] Target Class = com.identityforge.oracle.integration.IdfUserOperations
*2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] java.lang.IllegalArgumentException: wrong number of arguments*
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADDUSERTODATASET.ADDUSERTODATASETTASK(adpADDUSERTODATASET.java:109)
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADDUSERTODATASET.implementation(adpADDUSERTODATASET.java:58)
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
2011-05-27 06:04:30Can you enable the debug logging level for the connector and retry and then post the output?
Thanks,
Kevin -
Procedure - Execute - Wrong Number of Arguments...
Hi All,
I am using the following block for executing procedure.
But iam getting OUT parameter error.
Error
ORA:06550: line4,column9:
PLS:00306: wrong number or arguments in call to PROCSS_PROC
ORA:06550: line 4,column9
PL/SQL: statement ignored
DECLARE
l_status NUMBER(1);
BEGIN
SCHEMA_NAME.PKG_NAME.PROCSS_PROC
( 3, --> Days to be purged
T_TYPE('TABLE_1','TABLE_2','TABLE_3'),
l_status
DBMS_OUTPUT.PUT_LINE('l_status - '|| l_status);
END;
Main Package procedure
CREATE OR REPLACE PACKAGE pkg_name
AS
TYPE T_TYPE IS TABLE OF VARCHAR2 (4000);
PROCEDURE PROCSS_PROC
p_freq IN NUMBER,
p_multi_tab IN T_TYPE,
p_res OUT NUMBER
END pkg_name; --End of Package
CREATE OR REPLACE PACKAGE BODY pkg_name
AS
PROCEDURE PROCSS_PROC (
p_freq IN NUMBER,
p_multi_tab IN T_TYPE,
p_res OUT NUMBER )
IS
BEGIN
--Setting the local variable to check whether the procedure executed successfully or not.
--If it returns '0'; then all the process haven't got successfully completed
--If it returns '1'; then all process got success
p_res := 0;
p_res := 1; --If it returns '1'; then all process got success
END PROCSS_PROC; --End of the Procedure
END pkg_name; --End of the Package
/Please help....
Thanks..
Edited by: Linus on Oct 4, 2010 6:07 AMType is declared in the package, therefore to reference it outside the package you must qualify it with package name:
DECLARE
l_status NUMBER(1);
BEGIN
SCHEMA_NAME.PKG_NAME.PROCSS_PROC
( 3, --> Days to be purged
pkg_name.T_TYPE('TABLE_1','TABLE_2','TABLE_3'),
l_status
DBMS_OUTPUT.PUT_LINE('l_status - '|| l_status);
END;
/SY. -
Wrong number of arguments in call to .....
Hi All, <br><br> .. I donno what mistake iam performing here.. <br>
<br><br> There are 141 columns in my procedure .... I have checked and compared each and every parameter datatype with the ones iam setting foor callablestmt and everything is correct ..... but still iam getting error .. Wrong number of arguments call...I am just giving dummy values..
<br><br>
int x=0; <br>String s=null;
for Number Type parameter --- >cstmt.setInt(1,x)<br>
for Varchar2 Parameter --->cstmt.setString(2,s) <br>
for Date Parameter --->cstmt.setDate(1,null)<br>
for inout Parameter --> just setting the string and not giving any registeroutparamter<br>
for out parameters (iam giving 3 types)<br>
-->cstmt.registerOutParameter(139,OracleTypes.VARCHAR);<br>
<br>cstmt.registerOutParameter(134,OracleTypes.DATE);<br> cstmt.registerOutParameter(131,OracleTypes.NUMERIC,0,10);<br>
<br>
Iam passing 141 columns in sqlstatement with bind params including out params..<br>
am I doing this correctly ?<br>When i searched one thread .. on person said that he removed assignments for out paramter annd no need to set for outparmas. <br>I tried that also .. but then it is giving "bind varaibled does not exist"..I donno where ian doing the mistake ... can u please help me?
<br><br>
Thanks<br>
SoujanyaSoujanya,
Another thing to consider here is that because you are calling a procedure with such a large number of params and most of them might be defaulted/not set, it would be a better practice to call a wrapper procedure where you can add extra validation on input params before calling the actual procedure and send the required params from OAF as a single record.
--Shiv -
Getting error wrong number or type of parameters for EAM_PROCESS_WO_PUB
Hi All,
I am Getting error wrong number or type of parameters for EAM_WO_PROCESS_PUB.PROCESS_WO API, pls any body can help me,pls send code for
EAM_WO_PROCESS_PUB.PROCESS_WO API.
Thanks&Reagrds,
Hanimi Reddy.Hi srini,
I developed code for work order api EAM_PROCESS_WO_PUB.PROCESS_MASTER_CHILD_WO following and i am getting error wrong number or types of arguments in call to 'PROCESS_MASTER_CHILD_WO, pls see the code and help me
CREATE OR REPLACE PROCEDURE SANG_WR_TO_WO_API/*(ERRBUF OUT VARCHAR2, RETCODE OUT VARCHAR2)*/ IS
v_created_by number;
v_updated_by number;
v_updated_name varchar2(30);
V_ENTITY_ID VARCHAR2(30);
l_EAM_WO_RELATIONS_TBL EAM_PROCESS_WO_PUB.EAM_WO_RELATIONS_TBL_type ;
--:= EAM_PROCESS_WO_PUB.g_miss_EAM_WO_RELATIONS_rec;
l_eam_wo_tbl EAM_PROCESS_WO_PUB.eam_wo_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_EAM_WO_rec;
l_eam_op_tbl EAM_PROCESS_WO_PUB.eam_op_tbl_type ;--:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_tbl;
l_eam_op_network_tbl EAM_PROCESS_WO_PUB.eam_op_network_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_network_tbl;
l_eam_res_tbl EAM_PROCESS_WO_PUB.eam_res_tbl_type;--:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_tbl;
l_eam_res_inst_tbl EAM_PROCESS_WO_PUB.eam_res_inst_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_inst_tbl;
l_eam_sub_res_tbl EAM_PROCESS_WO_PUB.eam_sub_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_sub_res_tbl ;
-- l_eam_res_usage_tbl EAM_PROCESS_WO_PUB.eam_res_usage_tbl_type := EAM_PROCESS_WO_PUB.G_MISS_eam_res_usage_tbl;
l_eam_mat_req_tbl EAM_PROCESS_WO_PUB.eam_mat_req_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_mat_req_tbl ;
l_eam_direct_items_tbl EAM_PROCESS_WO_PUB.eam_direct_items_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_direct_items_tbl ;
l_x_eam_wo_tbl EAM_PROCESS_WO_PUB.eam_wo_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_wo_rec;
l__x_EAM_WO_RELATIONS_TBL EAM_PROCESS_WO_PUB.EAM_WO_RELATIONS_TBL_type ;--:= EAM_PROCESS_WO_PUB.g_miss_EAM_WO_RELATIONS_TBL;
l_x_eam_op_tbl EAM_PROCESS_WO_PUB.eam_op_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_rec ;
l_x_eam_op_network_tbl EAM_PROCESS_WO_PUB.eam_op_network_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_network_tbl;
l_x_eam_res_tbl EAM_PROCESS_WO_PUB.eam_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_tbl;
l_x_eam_res_inst_tbl EAM_PROCESS_WO_PUB.eam_res_inst_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_inst_tbl ;
l_x_eam_sub_res_tbl EAM_PROCESS_WO_PUB.eam_sub_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_sub_res_tbl;
-- l_x_eam_res_usage_tbl EAM_PROCESS_WO_PUB.eam_res_usage_tbl_type := EAM_PROCESS_WO_PUB.G_MISS_eam_res_usage_tbl ;
l_x_eam_mat_req_tbl EAM_PROCESS_WO_PUB.eam_mat_req_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_mat_req_tbl;
l_x_eam_direct_items_tbl EAM_PROCESS_WO_PUB.eam_direct_items_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_direct_items_tbl ;
l_x_return_status VARCHAR2(30);
l_x_msg_count NUMBER;
l_x_debug VARCHAR2(30);
l_output_dir VARCHAR2(30);
l_debug_filename VARCHAR2(30) ;
l_debug_file_mode VARCHAR2(30) ;
CURSOR CUR_WTW IS
SELECT
EWR.WIP_ENTITY_ID
,EWR.WIP_ENTITY_NAME
,EWR.ORGANIZATION_ID
,WAC.ORGANIZATION_CODE
,EWR.DESCRIPTION
,EWR.ASSET_GROUP_ID
,EWR.ASSET_NUMBER
,EWR.ASSET_NUMBER_DESCRIPTION
,WAC.ACCOUNTING_CLASS
,WAC.MATERIAL_ACCOUNT
,WAC.MATERIAL_OVERHEAD_ACCOUNT
,WAC.RESOURCE_ACCOUNT
,WAC.OUTSIDE_PROCESSING_ACCOUNT
,WAC.MATERIAL_VARIANCE_ACCOUNT
,WAC.RESOURCE_VARIANCE_ACCOUNT
,WAC.OUTSIDE_PROC_VARIANCE_ACCOUNT
,WAC.STD_COST_ADJUSTMENT_ACCOUNT
,WAC.OVERHEAD_ACCOUNT
,WAC.OVERHEAD_VARIANCE_ACCOUNT
,EWR.WORK_REQUEST_OWNING_DEPT_ID
,EWR.WORK_REQUEST_OWNING_DEPT
,EWR.WORK_REQUEST_PRIORITY_ID
,EWR.WORK_REQUEST_PRIORITY
,EWR.WORK_REQUEST_STATUS_ID
,WAC.ORGANIZATION_NAME
FROM
WIP_EAM_WORK_REQUESTS_V EWR
,WIPFV_ACCOUNTING_CLASSES WAC
,WIP_EAM_PARAMETERS WAP
WHERE
EWR.ORGANIZATION_ID = WAC.ORGANIZATION_ID
AND WAC.ORGANIZATION_ID = WAP.ORGANIZATION_ID
AND WAC.ACCOUNTING_CLASS = WAP.DEFAULT_EAM_CLASS
AND EWR.WORK_REQUEST_STATUS = 'Awaiting Work Order';
BEGIN
--i number := 1;
FND_GLOBAL.apps_initialize (1001255, 50326, 700, 0);
V_CREATED_BY := FND_GLOBAL.USER_ID;
V_UPDATED_BY := FND_GLOBAL.USER_ID;
v_updated_name := FND_GLOBAL.USER_name;
for rec in cur_wtw loop
l_eam_wo_tbl.WIP_ENTITY_ID := rec.wip_entity_id;
l_eam_wo_tbl.ORGANIZATION_ID := rec.ORGANIZATION_ID ;
l_eam_wo_tbl.ASSET_NUMBER := rec.ASSET_NUMBER;
l_eam_wo_tbl.ASSET_GROUP_ID := rec.ASSET_GROUP_ID ;
l_eam_wo_tbl.DESCRIPTION := rec.DESCRIPTION ;
--SELECT WIP_ENTITIES_S.NEXTval INTO V_ENTITY_ID FROM DUAL;
EAM_PROCESS_WO_PUB.PROCESS_MASTER_CHILD_WO
(P_PO_IDENTIFIER => 'EAM'
,P_API_VERSION_NUMBER => 1.0
,P_INIT_MSG_LIST => FALSE
,P_EAM_WO_RELATIONS_TBL => l_EAM_WO_RELATIONS_TBL
,P_EAM_WO_tbl => l_eam_wo_tbl
, p_eam_op_tbl => l_eam_op_tbl
, p_eam_op_network_tbl => l_eam_op_network_tbl
, p_eam_res_tbl => l_eam_res_tbl
, p_eam_res_inst_tbl => l_eam_res_inst_tbl
, p_eam_sub_res_tbl => l_eam_sub_res_tbl
--, p_eam_res_usage_tbl => l_eam_res_usage_tbl
, p_eam_mat_req_tbl => l_eam_mat_req_tbl
, p_eam_direct_items_tbl => l_eam_direct_items_tbl
, x_eam_wo_tbl => l_x_eam_wo_tbl
, X_EAM_WO_RELATIONS_TBL => l__x_EAM_WO_RELATIONS_TBL
, x_eam_op_tbl => l_x_eam_op_tbl
, x_eam_op_network_tbl => l_x_eam_op_network_tbl
, x_eam_res_tbl => l_x_eam_res_tbl
, x_eam_res_inst_tbl => l_x_eam_res_inst_tbl
, x_eam_sub_res_tbl => l_x_eam_sub_res_tbl
-- , x_eam_res_usage_tbl =>l_x_eam_res_usage_tbl
, x_eam_mat_req_tbl => l_x_eam_mat_req_tbl
, x_eam_direct_items_tbl => l_x_eam_direct_items_tbl
, x_return_status => l_x_return_status
, x_msg_count => l_x_msg_count
,p_commit =>'N'
, p_debug => 'N'
, p_output_dir => NULL
, p_debug_filename => 'EAM_WO_DEBUG.log'
, p_debug_file_mode => 'w'
END LOOP;
END SANG_WR_TO_WO_API;
COMMIT;
Thanks ,
Hanimi -
Peoplecode compile error(wrong number of parameter)
i am getting the below error when i click on "MAINTAIN ITEMS" under the navigation "ENTERPRISE LEARNING->CATALOG" in ELM.
"PEOPLECODE COMPLIE ERROR(WRONG NUMBER OF PARAMETER(2,16)) FOR PROGRAM LECS.COMPONENTS.CATALOGITEMCOMMON.ONEXECUTE.(2,405). A PEOPLECODE PROGRAM FOR THE SPECIFIED REFERENCE FAILED TO COMPILE CORRECTLY FOR THE INDICATED REASON" .
Let me know if anyone has any idea on this and how to fix this.<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by SQLJ Development ([email protected]):
Mmmh. This may be a bug in the way SQLJ resolves functions/stored procedures. Could you send me your infile/.sql/.sqlj files so that I can reproduce your problem? Thanks!
In the meantime, if everything works at runtime, you may have to ignore the errors and do your final compile offline.<HR></BLOCKQUOTE>
I haven't forgotten. We've got a lot of code, and will try to boil down to an illustrative example when we can.
At the moment, an off-line compile seems to work - though you might want to check my other post today :-)
null -
Error for wrong number of arguments
Hi
I am getting the below error for plsql
IF (l_src_cd ='P' or l_src_cd = 'E') THEN
ERROR at line 243:
ORA-06550: line 243, column 22:
PLS-00306: wrong number or types of arguments in call to '='
ORA-06550: line 243, column 9:
PL/SQL: Statement ignored
while writing
IF (l_src ='P' or l_src= 'E') THEN
l_activity := 'ERS';
elsif (length(l_adj_cd) > 0) THEN
l_activity := 'KAM';
elsif (length(l_offer_cd) > 0 ) THEN
l_activity := 'RAM';
elsif (length(l_visit_nbr) > 0 ) THEN
l_activity := 'SAM';
ELSE l_activity :='UNK';
END IF;
wrong number or type of argument
Appreciate your help on the above?
Thanks & RegardsWhat is the data type of l_src?
SQL> declare
2 type t_tp is table of varchar2(10) index by binary_integer;
3 l_v t_tp;
4 begin
5 l_v(1) := 'A';
6 l_v(2) := 'B';
7 if l_v = 'A' or l_v = 'B' then
8 dbms_output.put_line('True');
9 else
10 dbms_output.put_line('False');
11 end if;
12* end;
SQL> /
if l_v = 'A' or l_v = 'B' then
ERROR at line 7:
ORA-06550: line 7, column 11:
PLS-00306: wrong number or types of arguments in call to '='
ORA-06550: line 7, column 4:
PL/SQL: Statement ignoredJohn -
PLSQL Concurrent error: wrong number or types of arguments in call
Hi there,
I've defined a PLSQL Concurrent with 2 parameters:
10) DELIVERABLE_ID using valueset 10/Number (A 10 digit positive number field with no validation)
20) STATUS using valueset 10 Characters (10 Characters free text with no validation)
My request run into error, with parameter values DELIVERABLE_ID = 105367,STATUS=New
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'EBOARD_WF_START'
ORA-06550: line 1, column 7:
But I ran the the same PLSQL from toad
ADB_PA_BC_WF.EBOARD_WF_START (105367,'New');
I dont have any error, it completed successfully.
Any clue what gone wrong?You need to define package / procedure with RETCODE and ERRBUF arguments to call as concurrent program.
procedure my_cp
( errbuf out varchar2,
retcode out varchar2,
p_arg1 in varchar2,
p_arg2 in varchar2
Regards,
Gareth -
Error: Illegal number of arguments passsed to the function call
HI All,
In our scenario we are using XSLT mapping with java enhancement.Its working fine in Stylus studio but when the same is imported into XI its throwing the below mentioned error:
javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: Illegal number of arguments or types of arguments in a call of function 'Trans:Convert'.
Our requirement is that we are summing up the field "Grant_Amount" which occurs multiple times in the source structure and the sum is mapped to the field "Sum' on the target side.The stylesheet is working fine in stylus studio but whe imported into XI the above mentioned error is being thrown.Can any one one please help me solving this issue.
The XSL, the source XMLand the java class are mentioned below:
<
XSL:
===
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.infosys.com/sap/xi/projects/sce/n1" xmlns:Trans="com.company.group.String2Number">
<xsl:template match="/">
<a:MT_TargetXSLJava>
<Record>
<Detailrecord>
<Sum>
<xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
</Sum>
<Flag>
<xsl:text>1</xsl:text>
</Flag>
</Detailrecord>
</Record>
</a:MT_TargetXSLJava>
</xsl:template>
</xsl:stylesheet>
XML:
===
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SourceXSLJava xmlns:ns0="http://www.infosys.com/sap/xi/projects/sce/n1">
<Recordset>
<DETAILRECORD>
<Grant_Amount>$100.00</Grant_Amount>
</DETAILRECORD>
<DETAILRECORD>
<Grant_Amount>$200.00</Grant_Amount>
</DETAILRECORD>
<summary_record>
<Total>$300.00</Total>
</summary_record>
</Recordset>
</ns0:MT_SourceXSLJava>
Java Code:
========
package com.company.group;
public class String2Number
public static double Convert(String[] a)
double sum=0;
String[] temp = new String100;
for(int i=0;i<a.length;i++)
temp = (a).replaceAll(",
$
sum=sum+Double.parseDouble(temp);
return sum;
Please guide me to the right solution.
Thanks and Regards,
KaranamIf you are using below mentioned java code for Convert method, then see you are passing a String Array, but in below statement:
<xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
This is just a single value i think, you have to pass an array with values 100,200,300. Pls check it.
BR,
Alok -
Status for listener has wrong number of arguments
I'm runing the OEM and trying to click on the "Listner Status" button on the right side of the screen when showing the listeners. It returns an error message "NL-00857 wrong number (0-1 needed) of arguments tot status"
where do I see these arguments?
thnx
EndreOK, I have made some progress on this. Try opening the file you created in Pages '08 in Preview and saving under a new name. This is what my friend did and it worked. Here is what he said in his email to me:
+"I opened your file on my MacBook Pro with Preview and then saved again under new name. I could open the file I saved in widows fine but the original file you sent would not open. "+
Unfortunately, it did not work when I retraced his steps on my Mac. However, it is worth a try, and if it doesn't work on your own Mac, try another one you own or see if it will work on a friend's Mac. -
Hi,
We currently run Crystal Reports v10 with ODBC (CR Oracle ODBC Driver 4.20) to Oracle 9i database (on solaris) and have some reports which gets data (ref cursors) from stored procedures. So far so good and now we are upgrading our oracle database to 10g on Linux server and during my testing these reports give the following error.
Error Description:
Failed to open rowset
Query Engine Error: HY000:[DataDirect][ODBC Oracle driver]ORA-06550:line 1, column 8:
PLS-00306: wrong number or types of arguments in call to 'MY_STORED_PROCEDURE'
ORA-06550: line1, column 35:
PLS-00363: expression 'MY_PARAM_VALUE' cannot be used as an assignment target
ORA-6550: lin1, column8:
PL/SQL: Stateme'
Any help would be greatly appreciated.
Thanks,
-Venkat GopalanDiscovered on another post that 4.2 is too old. You need to upgrade to a more current ODBC driver that runs on Solaris.
We have a newer one version 5.3 but it's only for windows. Go to Datadirect.com and see if they have one for that OS.
Otherwise you'll have to configure your reports to use the native Oracle driver.
Thank you
Don -
SPD 2013 WF Error: Maximum number of arguments per activity (50).
Hi,
We have hit a limit with using variables in SPD Designer workflow in SP2013. The following is the error message that we receive:
"Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Activity 'DynamicActivity' has 52 arguments, which exceeds the maximum number of arguments per activity (50)."
The following thread >>here
did provide a solution but we need a solution that's based on Powershell or Server Object Model. Is there an approach for changing the variable limit for workflows with Server Object Model/Powershell?
Blog: http://dotnetupdate.blogspot.com |Hi Vikram,
as i know if you want to change this, there is no other way then to update the database directly, that we strongly not recommend this to be done.
they may not have any powershell or server object modal command to update the database value directly, instead you need to try on your environment, here is the example to access sql from powershell:
http://technet.microsoft.com/en-us/magazine/hh289310.aspx
to check the database, you can use the database explorer to develop the code:
http://moresharepoints.blogspot.in/2014/01/sharepoint-designer-2013-workflow-error.html
Regards,
Aries
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
New ipod touch will not charge with car stereo anymore
I recently got an iPod Touch and when I plug it in to my car stereo it says that "charging is not supported with this accessory". I'm assuming it has something to do with the fact that the new IPT do not charge with firewire. I'm having the same prob
-
Portal runtime error in MSS / employee review --- all the links
Hi I got an portal runtime error Here is the error that I am getting. Portal Runtime Error An exception occurred while processing a request for : iView : pcd:portal_content/WEB_GROUP.cra.ca.WEB_GROUP/roles/cra.mss.MSS/cra.mss.MSS/cra.mss.EmployeeRevi
-
Document type not defined in lsmw idoc method
hello iam posting Open AR Line Items for contract account using message type CTRACDOCUMENT_CREATE using lsmw idoc method .iam getting error as Document type not defined but actually when iam creating document manually item is created with out any e
-
How to create Short Lived process?..can neone pls help...
How to create Short Lived process?..can neone pls help...
-
Hello, I need to covert a FHD video to DCP 2k. I can achieve that with After Effects and Media Encoder and export/render as DCP 2k. The problem is the cinema needs the file marked as "advertisement" to be able to run it, and by default it comes as "f