I'm trying to access data on AS400 from Websphere.

I'm getting an error

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][AS] SQL0204N "QSYS.NULLID" is an undefined name. SQLSTATE=42704

when I try to execute a select statement.

Here is the code that I used to get a connection.

objConnection = DriverManager.getConnection("jdbc:db2:CAUNIDB","xx xxxxxx","yyyyyyyy");

I got a connection succesfully. But when I execute a SELECT statement
like SELECT * FROM <libname>/<tablename> I'm getting the above exception.