Hello,
I am trying to access an Entity bean from a client on a seperate JVM.
I can access everything and the EntityBean is also successfully
deployed.
The EntityBean adds a row to the table.
When i call home.create(id,name,age) from the client ... I get the
following Exception.
Exception in thread "main" java.lang.InternalError: Object was null but
still part of the cache
at com.evermind.server.rmi.a8.invokeMethod(JAX)
at com.evermind.server.rmi.a_.invoke(JAX)
at com.evermind.server.rmi.a0.invoke(JAX)
at __Proxy0.create(Unknown Source)
at ProfileClient.main(ProfileClient.java:48)
My Client code is:---
ProfileHome profilehome =
(ProfileHome)PortableRemoteObject.narrow(objref,ProfileHome.class);
Profile = profilehome.create(id,name,age);
I have also tried with ...
profilehome.create(id,name,age);
The ProfileBean code for create is as:--
public ProfilePK ejbCreate(int id,String name,int age){
this.id=id;
this.name=name;
this.age=age;
return null;
}//ejbCreate
ProfilePK is the primary key class...
.....................................................
The value gets added in the database. But the client terminates by
throwing the above exception.
Where could I go wrong.
Please help..
Thanks,
Ishpal.