Hi all,
   I was able to access my entity bean with its remote interface, but I have 
been having trouble accessing my bean with its local interface.  I have 
stuck with this problem for 2 days now.  Please help!!

Here is a segment of my test client code:
///////////////////////////////////////////////////////////////////
      InitialContext context = new InitialContext();
      homeObject = context.lookup("customer/LocalCustomerHome");
      cHome = (LocalCustomerHome)homeObject;

      LocalCustomer lc = cHome.create("c1", "test", "test");
///////////////////////////////////////////////////////////////////
When the program executes LocalCustomer lc = cHome.create("c1", "test", 
"test"); it throws the following exception:

Exception in thread "main" java.lang.NullPointerException
        at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java
:110)
        at $Proxy0.create(Unknown Source)
        at customer.TestClient.main(TestClient.java:32)

Originally I thought it was a class not found problem, so I have included 
all the Jar files from JBoss/client and JBoss/lib, but it still giving this 
problem.  If I change my test client code to use remote interface, it won't 
give me this problem.  It there any configuration that I need to change in 
JBoss to bypass the RMI mechanism?


Thanks,

Doug


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


_______________________________________________________________

Multimillion Dollar Computer Inventory
Live Webcast Auctions Thru Aug. 2002 - http://www.cowanalexander.com/calendar



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to