-
1. Re: Calling create method in a local home raises NullPointer
carloseugenio Aug 6, 2003 12:37 PM (in response to carloseugenio)Hi,
I've just figured out the problem. I'm using a client class to access local interfaces. Jboss is running in it's own JVM (my client was running in a window).
Sorry for the inconvinience.
Carlos Eugenio. -
2. Re: Calling create method in a local home raises NullPointer
brice Aug 7, 2003 11:15 AM (in response to carloseugenio)Hi,
I'm just having the same error. I could deploy an Entity Bean. But when it comes to execute the "create" or "findByPrimaryKey" method, a NullPointerException is raised. Can you please explain how you figured out this problem.
Thanks,
Brice
P.S: Here is the stack trace
java.lang.NullPointerException
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
at $Proxy0.findByPrimaryKey(Unknown Source)
at client.Test.main(Test.java:33) -
3. Re: Calling create method in a local home raises NullPointer
raja05 Aug 7, 2003 11:52 AM (in response to carloseugenio)You are trying to get a local interface from a different VM. Local Interfaces and the Clients have to be in same VM. Try accessing the local home thru a servlet instead. That shud work properly. If you need to access the local interface from an external VM, make the interface remote as well as local and access the remote interface.
-
4. Re: Calling create method in a local home raises NullPointer
carloseugenio Aug 7, 2003 1:40 PM (in response to carloseugenio)Yes, you're right. The concept is very simple but it seens that it catch me up.
-
5. Re: Calling create method in a local home raises NullPointer
brice Aug 9, 2003 5:53 AM (in response to carloseugenio)I finally figured out the problem thanks to your help!
Brice