More issues with IBM i program calls [message #894366] |
Sun, 08 July 2012 18:21 |
Dan Darnell 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
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02741 seconds