No such Method error when using call...using [message #891704] |
Mon, 25 June 2012 10:33  |
Eclipse User |
|
|
|
Hi,
I've been following an example from Joe Pluta on calling QCMDEXC from EGL.
I've set up a connection to my IBM i as a resource binding in the DD.
I've got the following code in the EGL program:
program callQCMDEXC
MyI IBMiConnection? { @Resource };
function main()
command string = "SNDMSG 'TEST' LOGICAAPS";
call this.QCMDEXC(command, characterLen(clip(command))) using MyI;
end
function QCMDEXC(input string in, length decimal(15,5) in)
{
@IBMiProgram {
programName = "QCMDEXC",
libraryName = "/QSYS.LIB",
parameterAnnotations = [
@AS400Text {length = 80},
@AS400PackedDecimal {}
]
}
}
end
end
The call..using statement is highlighted as an error. The error message is:
IWN.JavascriptGen.9998.e 11/161 Exception occurred: No such method genStatementBody(org.eclipse.edt.mof.eglx.jtopen.impl.IBMiCallStatementImpl,
org.eclipse.edt.gen.javascript.Context, org.eclipse.edt.mof.codegen.api.TabbedWriter, ) for any template for Class org.eclipse.edt.mof.eglx.jtopen.impl.IBMiCallStatementImpl
My EDT version numbers are:
Eclipse IDE for EGL Web Developers - 0.8.0
EDT IBM i support - 0.8.1
EGL Web Developer Tools - 0.8.1
EGL Web Developer Tools Source Code - 0.8.1
EGL Web Developer Tools with Source Code - 0.8.1
Has anyone come across this error before and what would I need to do to correct it?
Thanks
Steve
|
|
|
Re: No such Method error when using call...using [message #891736 is a reply to message #891704] |
Mon, 25 June 2012 12:45  |
Eclipse User |
|
|
|
Hi Steve,
I just verified this with the latest code from CVS, go ahead and open a bug against JavaScriptGen at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EDT.
The JavaScript generator should be gracefully skipping this part since it's not a type that it supports (programs can be generated to Java but not JavaScript). A workaround would be to change your generator settings on the program to disable JavaScript generation. You can change the settings on the "EGL Compiler" property page of the resource (right click in Project Explorer > Properties).
-Justin
|
|
|
Powered by
FUDForum. Page generated in 0.09404 seconds