Skip to Content
0
Jan 05, 2006 at 06:41 PM

Java Error : This method must return a result of type JCO.Table

30 Views

Hi all

I am new to Java !!!

Here is the piece of code that raises the error:

// Method to establish the Link for Outside World

public JCO.Table getLogonClientList() {

try {

myFunction = getFunctionModule();

myConnection.execute(myFunction);

myTable = myFunction.getTableParameterList().getTable("CLIENT_LIST");

return myTable;

}

catch (Exception e4) {

System.out.println(e4.toString());

}

}

When i try to compile the program, i am facing following error:

<b>Error This method must return a result of type JCO.Table</b>

I have already declared myTable(like others such as myConnection, myFunction) as JCO.Table in the beginning of the Class..

Any help please !!!

Thanks

Kay