I am new to PCML. I went through the wizard to create the Program Call Beans. Then I created the below method to run the RPG program. When I ran it I got the following exception. Any ideas?
Thanks,
Jon Mitchell
Thanks,
Jon Mitchell
Code:
public static void lookup(int cnum) {
try {
AS400JDBCDriver driver = new AS400JDBCDriver();
AS400 as400 = new AS400(sysname, username, password);
driver.connect(as400);
CustLookup look = new CustLookup();
look.setCnum(new Integer(cnum));
look.setCname("");
look.setConnectionData(as400);
look.invoke();
System.out.println("Customer " + look.getCnum() + " - " + look.getCname());
}
catch(Exception e) {
System.out.println(e.getMessage() + "\n" + e.toString());
e.printStackTrace();
}
}
Code:
______Thread 0 = main
304529:47:28.851 0 > Unable to create ProgramCallDocument : com.ibm.as400.data.PcmlException: Text not available for error message key 'java.util.MissingResourceException'
Error in processing ProgramCall project : ProjectName = [CustLookup]
com.ibm.connector.LogonException: Error in processing ProgramCall project : ProjectName = [CustLookup]
com.ibm.connector.LogonException: Error in processing ProgramCall project : ProjectName = [CustLookup]
at com.ibm.connector.as400.AS400LogonLogoff.logon(AS400LogonLogoff.java:302)
at com.ibm.connector.as400.AS400Connection.logon(AS400Connection.java:247)
at com.ibm.connector.as400.AS400Connection.open(AS400Connection.java:283)
at com.ibm.connector.as400.AS400Communication.connect(AS400Communication.java:132)
at com.ibm.ivj.eab.command.CommandCommunicationPrimitive.oldBeforeExecute(CommandCommunicationPrimitive.java:638)
at com.ibm.ivj.eab.command.CommandCommunicationPrimitive.beforeExecute(CommandCommunicationPrimitive.java:95)
at com.ibm.ivj.eab.command.CommunicationCommand.connEtoM1(CommunicationCommand.java:222)
at com.ibm.ivj.eab.command.CommunicationCommand.beforeInternalExecution(CommunicationCommand.java:102)
at com.ibm.connector.as400.ProgramCallCommand.beforeInternalExecution(ProgramCallCommand.java:592)
at com.ibm.ivj.eab.command.Command.fireBeforeInternalExecution(Command.java:363)
at com.ibm.ivj.eab.command.Command.execute(Command.java:283)
at com.ibm.ivj.eab.command.Command.execute(Command.java:254)
at com.ibm.ivj.eab.command.CommunicationCommand.execute(CommunicationCommand.java:671)
at com.ibm.iseries.webint.WebIntProgramCall.execute(WebIntProgramCall.java:395)
at com.ibm.connector.as400.ProgramCallBean.invoke(ProgramCallBean.java:121)
at com.ejiw.test.CustLookup.invoke(CustLookup.java:47)
at com.ejiw.test.CustomerLookup.lookup(CustomerLookup.java:19)
at com.ejiw.test.CustomerLookup.main(CustomerLookup.java:37)