Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 10:33 Go to next message
Steve Doody is currently offline Steve Doody
Messages: 4
Registered: June 2012
Junior Member
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 Go to previous message
Justin Spadea is currently offline Justin Spadea
Messages: 66
Registered: July 2009
Member
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
Previous Topic:Opa
Next Topic:New blog - What's cooking in the EDT kitchen, June 25
Goto Forum:
  


Current Time: Wed Apr 16 19:05:45 EDT 2014

Powered by FUDForum. Page generated in 0.07185 seconds