Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 44082 invoked from network); 5 Dec 2007 04:48:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2007 04:48:57 -0000 Received: (qmail 77882 invoked by uid 500); 5 Dec 2007 04:48:39 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 77867 invoked by uid 500); 5 Dec 2007 04:48:39 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 77856 invoked by uid 99); 5 Dec 2007 04:48:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 20:48:39 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 04:48:41 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IzmBI-0005fP-Jq for user@geronimo.apache.org; Tue, 04 Dec 2007 20:48:20 -0800 Message-ID: <14165282.post@talk.nabble.com> Date: Tue, 4 Dec 2007 20:48:20 -0800 (PST) From: beyondjusitn To: user@geronimo.apache.org Subject: Re: Exception in thread "main" java.lang.NullPointerException? In-Reply-To: <643f2fbe317f2a125d45eccf1f06187d@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: beyondjustin@gmail.com References: <14150835.post@talk.nabble.com> <1b5bfeb50712040637i63d8e1e4h8eefdad3c3cae0fa@mail.gmail.com> <14152277.post@talk.nabble.com> <643f2fbe317f2a125d45eccf1f06187d@localhost> X-Virus-Checked: Checked by ClamAV on apache.org Then, how can I make it to access the remote EJB interface in my application client? I would really appreciate if you could write an step-by-step tutorial to me, of course use eclipse and Geronimo. I'm totally desperate now. Thanks a lot! Johannes Lietz wrote: > > > Simply said: You can't just add a main method to an EJB class and expect > it > to run in the same way as it would inside an application server. > > You need the whole infrastructure an application server provides, which > does a lot of things behind the scenes. In your class, the server would > "magically" instantiate an object for your member remoteBusinessIntf, > which > will do a sayHello(). In your case remoteBusinessIntf is null, and the > error is thrown. > > -Johannes > > > > ----- -- Best Wishes! Justin Tsao -- View this message in context: http://www.nabble.com/Exception-in-thread-%22main%22-java.lang.NullPointerException--tf4943169s134.html#a14165282 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.