Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 23485 invoked from network); 10 May 2007 10:29:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2007 10:29:17 -0000 Received: (qmail 40512 invoked by uid 500); 10 May 2007 10:29:06 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 40475 invoked by uid 500); 10 May 2007 10:29:06 -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 40455 invoked by uid 99); 10 May 2007 10:29:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 03:29:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of manu.t.george@gmail.com designates 209.85.132.250 as permitted sender) Received: from [209.85.132.250] (HELO an-out-0708.google.com) (209.85.132.250) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 03:28:58 -0700 Received: by an-out-0708.google.com with SMTP id d40so143952and for ; Thu, 10 May 2007 03:28:37 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BiQKmK2ZAJRxlnFFMYoLTSvPmhNSC0LNMPRgPJLxvcPCmwdU7wMePx2LPln9w3/5fTkQI3Bm/p6b0CYaLW0uVVoSvyhBHH3jsxGG1dGMN0rqfEYgLki4Yt8Rnha9gfbYHl6cD+LnxNbhvq3S698+21oFbHgPiRIl6d1bvXaZZvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uI2L+SdJaBtHPIoEIpQSwo6uG8iOFXgHyJUwY/yLhkpyqVnfSKwH/pZJ7EBWc6ggnR6xILrfOU3SFtZzl1I+MvMxsqBwgCuJ2eVPp8QCCAs9mwB+xNCKQisw/iLR1HoLfM4xY6UoYe0w8lkURi446HYSgHnxw09fjVWZIuVfga8= Received: by 10.100.122.8 with SMTP id u8mr1120279anc.1178792917279; Thu, 10 May 2007 03:28:37 -0700 (PDT) Received: by 10.100.42.11 with HTTP; Thu, 10 May 2007 03:28:37 -0700 (PDT) Message-ID: <466797bd0705100328q5ed1e602o9598547698689867@mail.gmail.com> Date: Thu, 10 May 2007 15:58:37 +0530 From: "Manu George" To: user@geronimo.apache.org Subject: Re: Deployment of message driven bean in geronimo 2.0-m5 In-Reply-To: <1a681ff20705090658k3cfc3428qfdaf385c5dcab0b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1a681ff20705090658k3cfc3428qfdaf385c5dcab0b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Bruno, At first glance you seem to be missing @ActivationConfigProperty(propertyName="destination", propertyValue = "". @MessageDriven annotation's name attribute is the name of the bean and not the queue. Also you can try adding a geronimo specific deployment descriptor (openejb-jar.xml) where you may need to give a dependency to the module in which the queue is defined(RA module you deployed). Anyway the NullPointer looks like a bug as there should be error handling. You can raise a JIRA. regards Manu On 5/9/07, Bruno Aranda wrote: > Hi there, > > I am testing ejb 3.0 message driven beans and I was trying to deploy > in geronimo a simple jar containing a simple MDB. I am not using the > ejb-jar.xml as I want the container to discover the class. Whenever I > try to deploy it with the console, I get a NullPointerException when > deploying the ejb: > > 14:33:10,962 ERROR [GBeanInstanceState] Error while starting; GBean is > now in the FAILED state: > abstractName="default/intact-monitor-ear-1.0-SNAPSHOT/1178717578039/car?J2EEApplication=default/intact-monitor-ear-1.0-SNAPSHOT/1178717578039/car,j2eeType=EJBModule,name=ejbs-1.0-SNAPSHOT.jar" > org.apache.openejb.OpenEJBException: Creating application failed: > C:\dev\geronimo-tomcat6-jee5-2.0-M5\var\temp\geronimo-deploymentUtil58027.tmpdir: > Error building bean 'MessageConsumer'. Exception: class > java.lang.NullPointerException: null: null > at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:494) > at org.apache.openejb.assembler.classic.Assembler.createEjbJar(Assembler.java:326) > at > [...] > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) > at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$979ad769.startConfiguration() > at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.apache.openejb.OpenEJBException: Error building bean > 'MessageConsumer'. Exception: class java.lang.NullPointerException: > null: null > at org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:65) > at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:398) > ... 34 more > Caused by: java.lang.NullPointerException > at java.util.Hashtable.get(Hashtable.java:336) > at org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:60) > ... 35 more > > It seems that the nullpointer is due to the EjbJarBuilder returning > null for "ejbInfo.containerId"... > > Any ideas? Is this supposed to work? > > This is my simple class, packaged in a jar: > > > @MessageDriven(name="jms/testQueue", > activationConfig = { > @ActivationConfigProperty(propertyName = "acknowledgeMode", > propertyValue = "Auto-acknowledge"), > @ActivationConfigProperty(propertyName = "destinationType", > propertyValue = "javax.jms.Queue") > }) > public class MessageConsumer implements MessageListener > { > public void onMessage(Message message) > { > System.out.println("MESSAGE! "); > } > } > > > Thank you in advance, > > Bruno >