Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGL Development Tools » More issues with IBM i program calls(Hmmmmmm.....)
More issues with IBM i program calls [message #894366] Sun, 08 July 2012 18:21 Go to next message
Dan Darnell is currently offline Dan DarnellFriend
Messages: 145
Registered: November 2011
Location: Arkansas
Senior Member
I guess there is something fundamental that has changed in 0.81 M3 that I'm just not getting. I can't even get a regular service call to an IBM i program (one that doesn't try to come directly from a Rich UI client) to work. This doesn't compile (nor do any of the variations I tried that override binding detail):

service CallRPGService
	
function hello(name string inout)

   try

      call helloRPG(name);

   onException(exception AnyException);
   end
	
end

function helloRPG(name string inout)
{
    @Resource { uri = "binding:MyConnection" },
	
    @IBMiProgram {         
     	 programName = "MYRPG",
         libraryName = "/QSYS.LIB/*LIBL.LIB/",
         isServiceProgram = false,
         parameterAnnotations = [
            @StructText{length = 40}
         ]
    }
}	
end

end


The error traces back to this generated code:
import org.eclipse.edt.javart.resources.*;
import org.eclipse.edt.javart.*;
import org.eclipse.edt.javart.services.*;
import org.eclipse.edt.javart.Runtime;
import org.eclipse.edt.javart.json.Json;
import org.eclipse.edt.runtime.java.eglx.lang.EAny;
import java.lang.Object;
import eglx.lang.AnyException;
import org.eclipse.edt.runtime.java.eglx.lang.EString;
import java.lang.String;
@SuppressWarnings("unused")
@javax.xml.bind.annotation.XmlRootElement(name="CallRPGService")
public class CallRPGService extends ServiceBase {
	private static final long serialVersionUID = 10L;
	public CallRPGService() {
		super();
	}
	{
		if(Runtime.getRunUnit().getActiveExecutable() == null)
		Runtime.getRunUnit().setActiveExecutable(this);
		ezeInitialize();
	}
	public void ezeInitialize() {
	}
	@FunctionSignature(name="hello", parameters={@FunctionParameter(jsonInfo=@Json(name="name", clazz=EString.class, asOptions={}), kind=FunctionParameterKind.INOUT)})
	public void hello(AnyBoxedObject<String> name) {
		try {


...and that is LITERALLY all of the code generated in CallRPGService.java ...the generator apparently crashed.

I'm sure the EGL coding error is mine. Any ideas?

--Dan

[Updated on: Sun, 08 July 2012 18:26]

Report message to a moderator

Re: More issues with IBM i program calls [message #894503 is a reply to message #894366] Mon, 09 July 2012 13:09 Go to previous messageGo to next message
Joseph Vincens is currently offline Joseph VincensFriend
Messages: 31
Registered: December 2011
Location: Prospect CT
Member
Hi Dan,

This is a defect.
Normally I would ask you to open a defect, but we have started locking down 0.8.1 and I want to make sure a fix goes in as soon as possible. So I've opened a defect (384603) to expedite the process.

Until I commit a fix add 'this.' to the function in the call statement ie:
call this.helloRPG(name);


I hope to have a fix in tonight's build.

regards,
Joe
Re: More issues with IBM i program calls [message #894527 is a reply to message #894503] Mon, 09 July 2012 14:13 Go to previous messageGo to next message
Dan Darnell is currently offline Dan DarnellFriend
Messages: 145
Registered: November 2011
Location: Arkansas
Senior Member
Thanks, Joe. Please keep me posted. Any thoughts about this other IBM i program call issue?

http://www.eclipse.org/forums/index.php/t/367135/
Re: More issues with IBM i program calls [message #894570 is a reply to message #894503] Mon, 09 July 2012 15:51 Go to previous messageGo to next message
Dan Darnell is currently offline Dan DarnellFriend
Messages: 145
Registered: November 2011
Location: Arkansas
Senior Member
Will I have to pull in a nightly to get the fix or will it also be attached to the bug? (I see a PNG attached there now but not a code fix.)

--Dan
Re: More issues with IBM i program calls [message #894745 is a reply to message #894570] Tue, 10 July 2012 10:52 Go to previous message
Joseph Vincens is currently offline Joseph VincensFriend
Messages: 31
Registered: December 2011
Location: Prospect CT
Member
Hi Dan,
The bug attachment is an image of the changed files. You will need to pick up a nightly build to get the changes.

regards,
Joe
Previous Topic:Validators error
Next Topic:[Requesting feedback] Drop support for Eclipse 3.6?
Goto Forum:
  


Current Time: Sat Dec 20 01:04:29 GMT 2014

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

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