Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 27161 invoked from network); 5 Jan 2007 15:36:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2007 15:36:00 -0000 Received: (qmail 85106 invoked by uid 500); 5 Jan 2007 15:36:03 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 85096 invoked by uid 500); 5 Jan 2007 15:36:03 -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 85083 invoked by uid 99); 5 Jan 2007 15:36:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2007 07:36:03 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of richard.carragher.jr@sap.com designates 155.56.68.171 as permitted sender) Received: from [155.56.68.171] (HELO smtpde01.sap-ag.de) (155.56.68.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2007 07:35:53 -0800 Received: from sap-ag.de (smtpde01) by smtpde01.sap-ag.de (out) with ESMTP id QAA26585 for ; Fri, 5 Jan 2007 16:35:31 +0100 (MEZ) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: JNDI Access Problem Date: Fri, 5 Jan 2007 10:35:29 -0500 Message-ID: <368E35DFD9D7C749B4C8CEC58942525A0245A8EC@usphle12.phl.sap.corp> In-Reply-To: <208E8888-A77C-4128-B5DF-90376D9616B7@yahoo.com> Thread-Topic: JNDI Access Problem Thread-Index: Accw2SL3VlEFBxvySA6Vk9LN4ndJMAABco5w From: "Carragher Jr, Richard" To: X-OriginalArrivalTime: 05 Jan 2007 15:35:31.0461 (UTC) FILETIME=[224C3B50:01C730DF] X-SAP: out X-Virus-Checked: Checked by ClamAV on apache.org Ok, user error. I was looking up the jndi name from a property file, and the property file had the name in quotes (""). That explains that problem. However, now I'm getting this one: 10:30:23,843 ERROR [JndiRequestHandler] Failed to write to JNDIResponse java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113) at java.net.SocketOutputStream.write(SocketOutputStream.java:157) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStrea m.java:1733) at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Object OutputStream.java:1642) at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:120 0) at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1131) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1 332) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1083) at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1 449) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:312) at org.openejb.client.EJBMetaDataImpl.writeExternal(EJBMetaDataImpl.java:18 5) at org.openejb.client.JNDIResponse.writeExternal(JNDIResponse.java:203) at org.openejb.server.ejbd.JndiRequestHandler.processRequest(JndiRequestHan dler.java:131) 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(Inlined Compiled Code)) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv oker.java(Compiled Code)) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j ava(Inlined Compiled Code)) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav a(Compiled Code)) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java(Inli ned Compiled Code)) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperation Invoker.java(Compiled Code)) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyM ethodInterceptor.java(Compiled Code)) at org.activeio.xnet.ServerService$$EnhancerByCGLIB$$bffe4aa3.service() 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(Threa dPool.java:289) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:568) 10:30:23,846 ERROR [EjbDaemon] 0:0:0:0:0:0:0:1 "JNDI_REQUEST OEJP/2.0" FAIL "Broken pipe" Any thoughts?=20 Thanks, Rick Carragher=20 Senior Architect=20 Store and Multi-Channel=20 SAP AG=20 311 Sinclair Rd.=20 Bristol, PA. 19007=20 T +1(215)785-4321x425=20 mailto:richard.carragher.jr@sap.com=20 www.sap.com=20 -----Original Message----- From: David Jencks [mailto:david_jencks@yahoo.com]=20 Sent: Friday, January 05, 2007 9:52 AM To: user@geronimo.apache.org Subject: Re: JNDI Access Problem On Jan 5, 2007, at 9:04 AM, Carragher Jr, Richard wrote: > David, Thanks for the response. I'll try to debug it - I'm assuming > there's no log statements, and you would like me to run it in a > debugger? Either that or add some logging statements and recompile. I suspect =20 the debugger might be simpler. > > Another thought that I had, is it possible to look at the JNDI =20 > tree, to > verify that my ejb is deployed properly? I don't know of any tools that would let you look. > And also, I don't have a > geronimo-application.xml deployed with my ear. Could that have =20 > anything > to do with it? (I couldn't find any examples that met what we do in > this app). I can't think of a way this could cause the problem you are seeing, =20 but my imagination might be limited. thanks david jencks > > Thanks, > Rick > On Jan 4, 2007, at 8:03 PM, Carragher Jr, Richard wrote: > >>> Hi, >>> >>> I'm trying to deploy a non-j2ee application client connecting to a >>> stateless session bean in Geronimo 1.1. This seems simple, and it >>> has worked without changes on WebSphere, Jboss, and WebLogic, so >> I'm pretty sure that I m setting something up in Geronimo =20 >> incorrectly. >> >> >> In open-ejb-jar.xml, I have the following snippet: >> >> >> Controller >> awc >> ControllerLocal >> >> jdbc/datasourceUri> gernaming:ref-name> >> jdbc/ >> transactionwareDataSource >> >> >> >> My client has the following properties setup: >> = java.naming.factory.initial=3Dorg.openejb.client.RemoteInitialContextFa >> c > >> tory >> java.naming.provider.url=3Dlocalhost:4201 >> java.naming.security.principal=3Dsystem >> java.naming.security.credentials=3Dmanager >> And the client lookup code is pretty straightforward: >> InitialContext jndiContext =3D new InitialContext(env); >> Object ref =3D jndiContext.lookup("awc"); >> ControllerRemoteHome home =3D (ControllerRemoteHome) >> PortableRemoteObject.narrow(ref, ControllerRemoteHome.class); >> Here's the exception I get in geronimo.out: >> 19:46:54,233 ERROR [JndiRequestHandler] JNDI request error >> java.lang.IllegalArgumentException >> at java.net.URI.create(URI.java:859) >> at org.openejb.ContainerIndex.getContainerIndex >> (ContainerIndex.java:207) >> at org.openejb.ContainerIndex$$FastClassByCGLIB$ >> $6674ccb6.invoke() >> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java >> (Inlined Compiled Code)) >> at >> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke >> (FastMethodInvoker.java(Compiled Code)) >> at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke >> (GBeanOperation.java(Inlined Compiled Code)) >> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke >> (GBeanInstance.java(Compiled Code)) >> at org.apache.geronimo.gbean.runtime.RawInvoker.invoke >> (RawInvoker.java(Inlined Compiled Code)) >> at >> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke >> (RawOperationInvoker.java(Compiled Code)) >> at >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept >> (ProxyMethodInterceptor.java(Compiled Code)) >> >> at org.openejb.ContainerIndex$$EnhancerByCGLIB$ >> $2edf4a7f.getContainerIndex() >> at org.openejb.server.ejbd.JndiRequestHandler.doLookup >> (JndiRequestHandler.java:178) >> at org.openejb.server.ejbd.JndiRequestHandler.processRequest >> (JndiRequestHandler.java:115) >> 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 >> (Inlined Compiled Code)) >> at >> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke >> (FastMethodInvoker.java(Compiled Code)) >> at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke >> (GBeanOperation.java(Inlined Compiled Code)) >> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke >> (GBeanInstance.java(Compiled Code)) >> at org.apache.geronimo.gbean.runtime.RawInvoker.invoke >> (RawInvoker.java(Inlined Compiled Code)) >> at >> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke >> (RawOperationInvoker.java(Compiled Code)) >> at >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept >> (ProxyMethodInterceptor.java(Compiled Code)) >> >> at org.activeio.xnet.ServerService$$EnhancerByCGLIB$ >> $eb95fe48.service() >> 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(ThreadPool.java:289) >> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor >> $Worker.run(Unknown Source) >> at java.lang.Thread.run(Thread.java:568) >> Caused by: java.net.URISyntaxException: Illegal character in path >> at index 1: /"awc" >> at java.net.URI$Parser.fail(URI.java:2764) >> at java.net.URI$Parser.checkChars(URI.java(Inlined Compiled >> Code)) >> at java.net.URI$Parser.parseHierarchical(URI.java(Compiled >> Code)) >> at java.net.URI$Parser.parse(URI.java(Compiled Code)) >> at java.net.URI.(URI.java:595) >> at java.net.URI.create(URI.java:857) >> ... 29 more >> I've tried all variations of the jndi name in my client, but none >> seem to work. Any thoughts or ideas? > > I dont see anything wrong with your setup. The lookup should have > succeeded in line 175 of JndiRequestHandler. Is there any chance you > could debug the call to ContainerIndex.getContainerIndexByJndiName > and see what is in jndiNameToIndex and what the jndi name parameter =20 > is ? > > Wish I could help better > david jencks > >> Thanks, >> Rick Carragher >>