when i call a remote method on
ejb, it throws a NullPointerException.
i am passing a VO as an argument.
code: in Action somewhere in my Action code...
ArrayList al = (ArrayList) EJBRemote.xyz(VO);
in Remote Interface public collection EJBRemote.xyz(VO) throws RemoteException;
in Session Bean public collection EJBRemote.xyz(VO){
Dao.getXYZ(VO);
}
Error code : java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.NullPointerException I have checked the code in DAO, there is no way it is going to throw NullPointerException. what could be the reason for NullPointerException?