Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EGL Development Tools » No such Method error when using call...using
No such Method error when using call...using [message #891704] Mon, 25 June 2012 14:33 Go to next message
Steve Doody is currently offline Steve DoodyFriend
Messages: 4
Registered: June 2012
Junior Member

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;

    function QCMDEXC(input string in, length decimal(15,5) in)
	@IBMiProgram {
		programName = "QCMDEXC",
		libraryName = "/QSYS.LIB",
		parameterAnnotations = [
			@AS400Text {length = 80},
			@AS400PackedDecimal {}

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?

Re: No such Method error when using call...using [message #891736 is a reply to message #891704] Mon, 25 June 2012 16:45 Go to previous message
Justin Spadea is currently offline Justin SpadeaFriend
Messages: 66
Registered: July 2009
Hi Steve,

I just verified this with the latest code from CVS, go ahead and open a bug against JavaScriptGen at

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).

Previous Topic:Opa
Next Topic:New blog - What's cooking in the EDT kitchen, June 25
Goto Forum:

Current Time: Fri Oct 30 20:35:04 GMT 2020

Powered by FUDForum. Page generated in 0.01905 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top