Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 88823 invoked from network); 16 Feb 2007 09:16:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2007 09:16:23 -0000 Received: (qmail 72792 invoked by uid 500); 16 Feb 2007 09:16:25 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 72766 invoked by uid 500); 16 Feb 2007 09:16:25 -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 72755 invoked by uid 99); 16 Feb 2007 09:16:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 01:16:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.242] (HELO smtp109.plus.mail.mud.yahoo.com) (68.142.206.242) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 16 Feb 2007 01:16:13 -0800 Received: (qmail 12852 invoked from network); 16 Feb 2007 09:15:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=t7M14RcdWYuXg4+GR9XhqICbk88m8/391jtB5CceDIBg9Cy3iX2798NAfPh92kZg/YHYyEyCjC0e+1CQCQSQbzsvpCNqrPJcMbdfs8uS2g5bPp2BDw497+rismc89OSpKbjrwtavtcASrHEotdEFdH/pJjjdPG8eevMqrN+yvPA= ; Received: from unknown (HELO ?10.11.55.41?) (david_jencks@63.105.20.225 with plain) by smtp109.plus.mail.mud.yahoo.com with SMTP; 16 Feb 2007 09:15:51 -0000 X-YMail-OSG: luXwb64VM1kxD1n5eZxODrawGcSf57ggdvCt4LC0oo4Xqk7QZKINQoZZr.hSQIxxVshgyxHhqNgna_mmQHvD2vy7EfKCbQmfzJtF58IBwwYkoNqqhRD_cfqU.3Z0Ne9KhfwI1VYrjjfDCfPSAGDW058ZvNphYmjUAs9_I6ibwUevsMWID7bV Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <8a855ce00702152341i5ef7482dt55b0acbd114844a7@mail.gmail.com> References: <8a855ce00702152341i5ef7482dt55b0acbd114844a7@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2967D29A-722C-49D4-A168-3387C1307DDB@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Error while getting InitialContext Date: Fri, 16 Feb 2007 01:15:48 -0800 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org What code is doing the lookup and what is it trying to find? It looks like this is a non-j2ee client application, in which case the only thing it can get from geronimo is ejb's. In this case you probably want to use the openejb jndi implementation specified in jndi.properties or in code props.put("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory"); props.put("java.naming.provider.url", "127.0.0.1:4201"); props.put("java.naming.security.principal", "testuser"); props.put("java.naming.security.credentials", "testpassword"); I don't think the principal or credentials are needed, and you should adjust the url as appropriate. Hope this helps david jencks On Feb 15, 2007, at 11:41 PM, Hari Krishna Korrapati wrote: > Hi, > We are working on Geronimo1.1.1 > We are facing some problem while getting the InitialContext, > the log for the same is given below... > > org.apache.geronimo.interop.SystemException: > java.lang.NullPointerException > at org.apache.geronimo.interop.rmi.iiop.client.UrlInfo.init > (UrlInfo.java:138) > at > org.apache.geronimo.interop.rmi.iiop.client.UrlInfo.getInstance > (UrlInfo.java:43) > at > org.apache.geronimo.interop.rmi.iiop.client.ClientNamingContext.init > (ClientNamingContext.java:307) > at > org.apache.geronimo.interop.rmi.iiop.client.ClientNamingContext.getIns > tance(ClientNamingContext.java:57) > at > org.apache.geronimo.interop.client.InitialContextFactory.getInitialCon > text(InitialContextFactory.java:29) > at javax.naming.spi.NamingManager.getInitialContext(Unknown > Source) > at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) > at javax.naming.InitialContext.init(Unknown Source) > at javax.naming.InitialContext.(Unknown Source) > at packagename.Sample.getInitialContext(RunEDSService.java:391) > at packagename.Sample.init(RunEDSService.java:382) > at packagename.Sample.main(RunEDSService.java:201) > Caused by: java.lang.NullPointerException > at > com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.getB64StrProp > (PolicyRuntime.java:188) > at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime. > (PolicyRuntime.java:91) > at > com.trend.iwss.jscan.appscan.runtime.NetworkPolicyRuntime. > (NetworkPolicyRuntime.java:85) > at com.trend.iwss.jscan.appscan.runtime.NetworkPolicyRuntime > $Factory.make(NetworkPolicyRuntime.java:439) > at > com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.accessInstance > (PolicyRuntime.java:225) > at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.preFilter > (PolicyRuntime.java:127) > at > com.trend.iwss.jscan.appscan.runtime.NetworkPolicyRuntime.preFilter > (NetworkPolicyRuntime.java:108) > at org.apache.geronimo.interop.rmi.iiop.client.UrlInfo.init > (UrlInfo.java:98) > ... 11 more > > > Can anybody guess where the error could have been occured. > > > Thanks and Regards, > Hari