Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 49691 invoked from network); 8 Aug 2006 07:43:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 07:43:04 -0000 Received: (qmail 96909 invoked by uid 500); 8 Aug 2006 07:43:01 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 96872 invoked by uid 500); 8 Aug 2006 07:43:01 -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 96861 invoked by uid 99); 8 Aug 2006 07:43:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 00:43:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 00:43:00 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DAEC9410010 for ; Tue, 8 Aug 2006 07:40:18 +0000 (GMT) Message-ID: <28548971.1155022818894.JavaMail.jira@brutus> Date: Tue, 8 Aug 2006 00:40:18 -0700 (PDT) From: "Manu T George (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-2297) ClassCastException on invoking a non existing/Stopped EJB from a remote client. In-Reply-To: <29654515.1155019640848.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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-2297?page=all ] Manu T George updated GERONIMO-2297: ------------------------------------ Attachment: DeploymentIndex.patch This is ocurring because of an IllegalArgumentException which is thrown on trying to create an AbstractName with the JNDI string when the JNDI lookup fails. So a try - catch block has been added to handle this scenario. Once this scenario is handled the proper exception is thrown i.e. javax.naming.NameNotFoundException > ClassCastException on invoking a non existing/Stopped EJB from a remote client. > ------------------------------------------------------------------------------- > > Key: GERONIMO-2297 > URL: http://issues.apache.org/jira/browse/GERONIMO-2297 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: OpenEJB > Affects Versions: 1.1 > Environment: All Platforms > Reporter: Manu T George > Attachments: DeploymentIndex.patch > > > When I invoke a stopped/nonexisting EJB from an remote client then I get a ClassCastException instead of an exception saying that the EJB is not started/or does not exist > The exception is shown below > Client Side > java.lang.ClassCastException > at org.openejb.client.JNDIContext.lookup(JNDIContext.java:277) > at javax.naming.InitialContext.lookup(Unknown Source) > at examples.cmp.ProductClient.main(ProductClient.java:28) > Server Side > 12:15:12,483 ERROR [JndiRequestHandler] JNDI request error > java.lang.IllegalArgumentException: uri path must be in the form [groupId]/[arti > factId]/[version]/[type] : /ProductRemote > at org.apache.geronimo.gbean.AbstractNameQuery.(AbstractNameQuery. > java:104) > at org.openejb.DeploymentIndex.getDeploymentIndex(DeploymentIndex.java:2 > 06) > at org.openejb.DeploymentIndex$$FastClassByCGLIB$$d76635c8.invoke( ated>) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:122) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:817) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.openejb.DeploymentIndex$$EnhancerByCGLIB$$7b6484b7.getDeploymentI > ndex() > at org.openejb.server.ejbd.JndiRequestHandler.doLookup(JndiRequestHandle > r.java:175) > at org.openejb.server.ejbd.JndiRequestHandler.processRequest(JndiRequest > Handler.java:111) > at org.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:154) > at org.openejb.server.ejbd.EjbServer.service(EjbServer.java:87) > at org.openejb.server.ejbd.EjbServer$$FastClassByCGLIB$$d379d2ff.invoke( > ) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:122) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:817) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.activeio.xnet.ServerService$$EnhancerByCGLIB$$c7de235e.service( enerated>) > at org.activeio.xnet.ServicePool$2.run(ServicePool.java:67) > at org.activeio.xnet.ServicePool$3.run(ServicePool.java:90) > at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:172) > at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(Th > readPool.java:289) > at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So > urce) > at java.lang.Thread.run(Unknown Source) -- 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