I was using Oracle application server(latest 10g) that has EJB 2.0. When I run the old code that was based on EJB 1.1. I get error: Can not getprimaryket within ejbcreate() - ollyy thing I do in ejbcreate is return null as the key is Oracle system generated.. Believe me there is no call like getprimarykey in my code. Here is the line that fails.