Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 89036 invoked from network); 10 Dec 2005 16:53:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Dec 2005 16:53:35 -0000 Received: (qmail 97544 invoked by uid 500); 10 Dec 2005 16:53:34 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 96842 invoked by uid 500); 10 Dec 2005 16:53:32 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 96830 invoked by uid 99); 10 Dec 2005 16:53:31 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Dec 2005 08:53:30 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8F3C018B for ; Sat, 10 Dec 2005 17:53:09 +0100 (CET) Message-ID: <314784543.1134233589553.JavaMail.jira@ajax.apache.org> Date: Sat, 10 Dec 2005 17:53:09 +0100 (CET) From: "Aaron Mulder (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Resolved: (GERONIMO-1219) EJB Deploy Error In-Reply-To: <611779982.1132685381331.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-1219?page=3Dall ] =20 Aaron Mulder resolved GERONIMO-1219: ------------------------------------ Fix Version: 1.0 (was: 1.1) Resolution: Fixed Assign To: Aaron Mulder Caused when the CMP engine can't find a method it expects based on the CMP,= CMR, or Select configuration. Now throws a more informative exception. > EJB Deploy Error > ---------------- > > Key: GERONIMO-1219 > URL: http://issues.apache.org/jira/browse/GERONIMO-1219 > Project: Geronimo > Type: Bug > Components: OpenEJB, deployment > Versions: 1.0-M5 > Reporter: Aaron Mulder > Assignee: Aaron Mulder > Fix For: 1.0 > > Problem reported on mailing list. Need better error message, at a minimu= m. > Hi, > I can=C2=B4t deploy: > Error: Unable to distribute helloworld.jar: Unable to initialize > EJBContainer GBean: ejbName > [helloworld.domain.avail.AvailabilityMovement] caused by -1 > All seems right: > ejb-jar.xml: > > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version=3D"2.1" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xmlns=3D"http://java.sun.com/xml/ns/j2ee"> > > > Movimiento de disponibilidad > helloworld.domain.avail.AvailabilityMovement > helloworld.domain.avail.AvailabilityMovementHome > helloworld.domain.avail.AvailabilityMovement > helloworld.domain.avail.AvailabilityMovementCMP > Container > java.lang.String > false > 2.x > AvailabilityMovement > > availabilityMovementId > > ... > openejb-jar.xml: > > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/naming-1.0" > xmlns:pkgen=3D"http://www.openejb.org/xml/ns/pkgen-2.0" > xmlns:security=3D"http://geronimo.apache.org/xml/ns/security-1.0" > xmlns:sys=3D"http://geronimo.apache.org/xml/ns/deployment-1.0" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://www.openejb.org/xml/ns/openejb-jar-2.0" > configId=3D"helloworld" parentId=3D"org/apache/geronimo/Server"> > > TrkSiTravel > > > > helloworld.domain.avail.AvailabilityMovement > helloworld.domain.avail.AvailabilityMovementHome > availability_movement > > availabilityMovementId > availabilitymovementid > > .... > geronimo.log: > 18:53:56,265 DEBUG [Deployer] Deployment failed: plan=3Dnull, > module=3D/usr2/geronimo/geronimo51/grupoiris/helloworld.jar > org.apache.geronimo.common.DeploymentException: Unable to initialize > EJBContainer GBean: ejbName [helloworld.domain.avail.AvailabilityMovement= ] > at > org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:= 188) > at > org.openejb.deployment.CMPEntityBuilder.buildBeans(CMPEntityBuilder.java:= 108) > at > org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilde= r.java:518) > at > org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.i= nvoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja= va:118) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java= :760) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) > at > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationI= nvoker.java:36) > at > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMe= thodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$2e9d1= ba5.addGBeans() > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(E= ARConfigBuilder.java:384) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$3= 8e56ec6.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja= va:118) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java= :760) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) > at > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationI= nvoker.java:36) > at > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMe= thodInterceptor.java:96) > at > org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$3a8= a2417.buildConfiguration() > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:19= 0) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:87= ) > at > org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invok= e() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja= va:118) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java= :795) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:180) > at > org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:125) > at > org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke= () > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja= va:118) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java= :795) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:180) > at > org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDele= gate.java:117) > at > javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionIm= pl.java:1408) > at > javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImp= l.java:81) > at > javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMI= ConnectionImpl.java:1245) > at java.security.AccessController.doPrivileged(Native Method) > at > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMICo= nnectionImpl.java:1348) > at > javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.ja= va:782) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.jav= a:701) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 > at > org.openejb.entity.cmp.CMPInstanceContextFactory.(CMPInstanceContex= tFactory.java:127) > at > org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.ja= va:311) > at > org.openejb.deployment.AbstractContainerBuilder.createConfiguration(Abstr= actContainerBuilder.java:354) > at > org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:= 185) --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira