Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 64037 invoked from network); 6 Oct 2008 20:04:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Oct 2008 20:04:09 -0000 Received: (qmail 54840 invoked by uid 500); 6 Oct 2008 20:04:07 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 54292 invoked by uid 500); 6 Oct 2008 20:04:05 -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 54280 invoked by uid 99); 6 Oct 2008 20:04:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 13:04:05 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_SECURITYSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.63] (HELO smtp108.prem.mail.sp1.yahoo.com) (98.136.44.63) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 06 Oct 2008 20:03:00 +0000 Received: (qmail 18839 invoked from network); 6 Oct 2008 20:02:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=jRs7s13HwcqiiZPgmvOYRJrCGexmSPo/NSXivU2QyCi1yHySgOd/WgVP9t4kJsflpM9AxUZl3ak4a3C8EUqQXPMs9g/822L/UDXx1In6pcLJPJ6P/GfMRwySJolFwLQgBQdpU0DZjAr4XOj/fZpKFc8lsnWJetnH2tD0c71x9Js= ; Received: from unknown (HELO ?10.11.55.45?) (david_jencks@63.105.20.225 with plain) by smtp108.prem.mail.sp1.yahoo.com with SMTP; 6 Oct 2008 20:02:35 -0000 X-YMail-OSG: I4itkv0VM1kqLyLSnMH4sXs43JndwrYPZN5yQz0qBhkwoXc5quYDpTfTnW9GY7iu5VhqVLrWHdV6p8NkwlCQT1PbdwmhzTMyRGkPS2Xs2LqPAgEdFkKvEY80PmWg9OGLhXrBJaHiluPANufSf7qAThdA2TRytflQX_dNfXSd0LsN_UvVdw-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <59BA5706-4021-4554-873D-AF947B86E770@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <48EA60E1.1010602@johndubchak.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: NPE on Deployment Date: Mon, 6 Oct 2008 13:02:33 -0700 References: <48EA60E1.1010602@johndubchak.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 6, 2008, at 12:02 PM, John wrote: > Hi All, > > I am trying to deploy an ear file to Geronimo 2.1.3. The ear > contains a number of dependency jar files, a war, an ejb and the > associated descriptors, or so I think. > > However, when I attempt to deploy through the admin console, I am > getting the following exception: > > java.lang.NullPointerException > org.apache.geronimo.common.DeploymentException: > java.lang.NullPointerException > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:275) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun > .reflect > .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun > .reflect > .DelegatingMethodAccessorImpl > .invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org > .apache > .geronimo > .gbean > .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: > 34) > at > org > .apache > .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) > at > org > .apache > .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 239) > at > org > .apache > .geronimo > .deployment > .plugin > .local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116) > at > org > .apache > .geronimo > .deployment > .plugin.local.DistributeCommand.run(DistributeCommand.java:61) > at java.lang.Thread.run(Thread.java:613) > Caused by: java.lang.NullPointerException > at > org > .apache > .geronimo > .connector > .deployment.ResourceRefBuilder.buildNaming(ResourceRefBuilder.java: > 127) > at > org > .apache > .geronimo > .j2ee > .deployment > .NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53) > at > org > .apache > .geronimo > .openejb > .deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:321) > at > org > .apache > .geronimo > .openejb > .deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java: > 292) > at > org > .apache > .geronimo > .openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java: > 764) > at > org > .apache > .geronimo > .j2ee > .deployment > .EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254) > ... 12 more > > My question is, can anyone give me some ideas on how to track down a > vague, non-descript, error such as this? What I do is look at the source code. Googling ResourceRefBuilder yields a commit email which leads to e.g. http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/connector/geronimo-connector-builder/src/main/java/org/apache/geronimo/connector/deployment/ResourceRefBuilder.java?annotate=651684 Modifying this to the 2.1.3 branch yields http://svn.apache.org/viewvc/geronimo/server/tags/2.1.3/plugins/connector/geronimo-connector-builder/src/main/java/org/apache/geronimo/connector/deployment/ResourceRefBuilder.java?annotate=651684 which despite the wrong rev id seems to show the correct source. Line 127 is String type = resourceRef.getResType().getStringValue().trim(); which makes me guess that you've left out the res-type from your resource-ref. May not be completely ideal but this process usually works for me. thanks david jencks > > > Thanks in advance, > John