Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 95428 invoked from network); 19 Jan 2006 09:14:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jan 2006 09:14:21 -0000 Received: (qmail 4465 invoked by uid 500); 19 Jan 2006 09:14:18 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 4444 invoked by uid 500); 19 Jan 2006 09:14:18 -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 4431 invoked by uid 99); 19 Jan 2006 09:14:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 01:14:17 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.169.227] (HELO smtp107.mail.sc5.yahoo.com) (66.163.169.227) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 19 Jan 2006 01:14:16 -0800 Received: (qmail 22413 invoked from network); 19 Jan 2006 09:13:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=qbr0AKYz2j7qNvkV1AElwvnpWhXMVPEKfJZg4/sMIvbn1Yt+xH+4OyYr4YEtcyzdO7dBnij1V/zuik1GdJZ2MMbRKdYdwYfXNtGemyTG29mgyzd2aTKkAchlkDXcR1HJl5wxmkVDXVyHB+VtGh4gzyzEEtfNymzAHUb7RNPAOH4= ; Received: from unknown (HELO ?192.168.1.5?) (david?jencks@66.93.38.137 with plain) by smtp107.mail.sc5.yahoo.com with SMTP; 19 Jan 2006 09:13:54 -0000 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <20060119090210.10DC410FB011@asf.osuosl.org> References: <20060119090210.10DC410FB011@asf.osuosl.org> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <13DFF038-0658-43C4-AFDC-6D3B83826311@yahoo.com> Content-Transfer-Encoding: quoted-printable From: David Jencks Subject: Re: ActivationSpec problem (ClassCastException) Date: Thu, 19 Jan 2006 01:13:53 -0800 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.746.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Jan 19, 2006, at 1:01 AM, johnxmas wrote: > Hi Aaron, > > a) I tried with just one setter and getter > > private int port; > public int getPort() > public void setPortl(int port) throws InvalidPropertyException > > and the problem persists. Unfortunately the spec doesn't provide any guidance on what types are =20= allowed for activation spec properties. Reasonable conclusions might =20= be, - only string - only types allowed for ManagedConnectionFactory properties - only strings and primitive types..... We might support only types allowed for MCF properties, which rules =20 out primitive types. Could you try Integer and String and report the =20= results? thanks david jencks > > b) If I suppress the property port in all descriptors and force the =20= > value in my ActivationSpec, > the MDB deploys with no problem. > > I m a bit puzzled there. If I can be of any help for investigating =20 > deeper, let me know > > Thanks for your help > > Jean-Noel > > > > > >> I wonder if the problem is due to the multiple setters. Can you >> temporarily try with an ActivationSpec class with only one int setter >> (assuming the getter and private variable are also ints) and see if >> that solves the problem? It so, it would suggest that we need to try >> harder to distinguish the proper setter to call in the face of >> overloading like that. If that doesn't help, maybe we have a problem >> with setting primitives or something? >> >> Thanks, >> Aaron >> >> On 1/18/06, johnxmas wrote: >>> Hi, >>> >>> id is String >>> >>> As regards port, it's an int. But the ActivationSpec implements =20 >>> three setters >>> (each required due to WebLogic, Jboss, Sun and others =20 >>> implementations of their application server): >>> - with an int parameter >>> - with an Integer parameter >>> - with a String parameter >>> >>> >>> Jean-No=EBl >>> >>> >>> >>> >>>> Hmm... It looks like we're trying to set the wrong data type on =20= >>>> the >>>> properties. Can you check the data types of the "port" and "id" >>>> properties? >>>> >>>> Thanks, >>>> Aaron >>>> >>>> On 1/17/06, johnxmas wrote: >>>>> I've written an InboundResourceAdapter. When deploying my =20 >>>>> MessageDrivenBean, with the following >>>>> descriptor >>>>> >>>>> >>>> xmlns=3D"http://www.openejb.org/xml/ns/openejb-jar" >>>>> xmlns:naming=3D"http://geronimo.apache.org/xml/ns/naming" >>>>> xmlns:security=3D"http://geronimo.apache.org/xml/ns/security" >>>>> xmlns:sys=3D"http://geronimo.apache.org/xml/ns/deployment" >>>>> configId=3D"InboundMdb" parentId=3D"ScortJcaAdapter15"> >>>>> >>>>> >>>>> InboundMdb >>>>> >>>>> ScortJcaAdapter15 >>>>> >>>>> >>>>> >>>>> port>>>> activation-config-property-name> >>>>> >>>> value>23072 >>>>> >>>>> >>>>> id>>>> activation-config-property-name> >>>>> >>>> value>CUSTLIST >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I encounter the following problem (using geronimo 1.0) =20 >>>>> (BTW, it reminds me of GERONIMO-689) >>>>> >>>>> 17:26:08,054 ERROR [GBeanInstanceState] Error while starting; =20 >>>>> GBean is now in the FAILED state: =20 >>>>> objectName=3D"geronimo.server:EJBModule=3DInboundMdb,J2EEApplication= =3Dn=20 >>>>> ull,J2EEServer=3Dgeronimo,j2eeType=3DJCAActivationSpec,name=3DInboun= dMdb=20 >>>>> " >>>>> java.lang.ClassCastException >>>>> at =20 >>>>> com.scort.inbound.jca.socket.impl.SocketActivationSpec$=20 >>>>> $FastClassByCGLIB$$7d9f9cac.invoke() >>>>> at net.sf.cglib.reflect.FastMethod.invoke=20 >>>>> (FastMethod.java:53) >>>>> at org.apache.geronimo.gbean.DynamicGBeanDelegate=20 >>>>> $Operation.invoke(DynamicGBeanDelegate.java:181) >>>>> at =20 >>>>> org.apache.geronimo.gbean.DynamicGBeanDelegate.setAttribute=20 >>>>> (DynamicGBeanDelegate.java:134) >>>>> at =20 >>>>> org.apache.geronimo.connector.ActivationSpecWrapperGBean.setAttrib=20= >>>>> ute(ActivationSpecWrapperGBean.java:68) >>>>> at org.apache.geronimo.gbean.runtime.GBeanAttribute=20 >>>>> $DynamicSetterMethodInvoker.invoke(GBeanAttribute.java:430) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanAttribute.setValue=20 >>>>> (GBeanAttribute.java:403) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanAttribute.inject=20 >>>>> (GBeanAttribute.java:334) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance=20 >>>>> (GBeanInstance.java:925) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullSt=20= >>>>> art(GBeanInstanceState.java:325) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start=20 >>>>> (GBeanInstanceState.java:110) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursiv=20= >>>>> e(GBeanInstanceState.java:132) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive=20 >>>>> (GBeanInstance.java:537) >>>>> at =20 >>>>> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean=20= >>>>> (BasicKernel.java:208) >>>>> at =20 >>>>> org.apache.geronimo.kernel.config.Configuration.startRecursiveGBea=20= >>>>> ns(Configuration.java:315) >>>>> at org.apache.geronimo.kernel.config.Configuration$=20 >>>>> $FastClassByCGLIB$$7f4b4a9b.invoke() >>>>> at net.sf.cglib.reflect.FastMethod.invoke=20 >>>>> (FastMethod.java:53) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke=20 >>>>> (FastMethodInvoker.java:38) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke=20 >>>>> (GBeanOperation.java:118) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke=20 >>>>> (GBeanInstance.java:835) >>>>> at org.apache.geronimo.kernel.basic.BasicKernel.invoke=20 >>>>> (BasicKernel.java:178) >>>>> at org.apache.geronimo.kernel.basic.BasicKernel.invoke=20 >>>>> (BasicKernel.java:173) >>>>> at =20 >>>>> org.apache.geronimo.kernel.config.ConfigurationManagerImpl.start=20= >>>>> (ConfigurationManagerImpl.java:142) >>>>> at =20 >>>>> org.apache.geronimo.kernel.config.ConfigurationManagerImpl$=20 >>>>> $FastClassByCGLIB$$fbed85d2.invoke() >>>>> at net.sf.cglib.reflect.FastMethod.invoke=20 >>>>> (FastMethod.java:53) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke=20 >>>>> (FastMethodInvoker.java:38) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke=20 >>>>> (GBeanOperation.java:118) >>>>> at =20 >>>>> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke=20 >>>>> (GBeanInstance.java:800) >>>>> at org.apache.geronimo.gbean.runtime.RawInvoker.invoke=20 >>>>> (RawInvoker.java:57) >>>>> at =20 >>>>> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke=20 >>>>> (RawOperationInvoker.java:36) >>>>> at =20 >>>>> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(=20= >>>>> ProxyMethodInterceptor.java:96) >>>>> at =20 >>>>> org.apache.geronimo.kernel.config.ConfigurationManager$=20 >>>>> $EnhancerByCGLIB$$49a67291.start() >>>>> at =20 >>>>> org.apache.geronimo.console.configmanager.DeploymentPortlet.proces=20= >>>>> sAction(DeploymentPortlet.java:126) >>>>> at org.apache.pluto.core.PortletServlet.dispatch=20 >>>>> (PortletServlet.java:229) >>>>> at org.apache.pluto.core.PortletServlet.doPost=20 >>>>> (PortletServlet.java:163) >>>>> at javax.servlet.http.HttpServlet.service=20 >>>>> (HttpServlet.java:615) >>>>> at javax.servlet.http.HttpServlet.service=20 >>>>> (HttpServlet.java:688) >>>>> at org.apache.pluto.core.PortletServlet.service=20 >>>>> (PortletServlet.java:153) >>>>> at =20 >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter=20= >>>>> (ApplicationFilterChain.java:252) >>>>> at =20 >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter=20 >>>>> (ApplicationFilterChain.java:173) >>>>> at org.apache.catalina.core.ApplicationDispatcher.invoke=20= >>>>> (ApplicationDispatcher.java:672) >>>>> at =20 >>>>> org.apache.catalina.core.ApplicationDispatcher.doInclude=20 >>>>> (ApplicationDispatcher.java:574) >>>>> at =20 >>>>> org.apache.catalina.core.ApplicationDispatcher.include=20 >>>>> (ApplicationDispatcher.java:499) >>>>> at =20 >>>>> org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke=20 >>>>> (PortletInvokerImpl.java:120) >>>>> at =20 >>>>> org.apache.pluto.invoker.impl.PortletInvokerImpl.action=20 >>>>> (PortletInvokerImpl.java:68) >>>>> at =20 >>>>> org.apache.pluto.PortletContainerImpl.processPortletAction=20 >>>>> (PortletContainerImpl.java:164) >>>>> at =20 >>>>> org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.proce=20= >>>>> ssPortletAction(PortletContainerWrapperImpl.java:82) >>>>> at org.apache.pluto.portalImpl.Servlet.doGet=20 >>>>> (Servlet.java:227) >>>>> at org.apache.pluto.portalImpl.Servlet.doPost=20 >>>>> (Servlet.java:267) >>>>> at javax.servlet.http.HttpServlet.service=20 >>>>> (HttpServlet.java:615) >>>>> at javax.servlet.http.HttpServlet.service=20 >>>>> (HttpServlet.java:688) >>>>> at =20 >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter=20= >>>>> (ApplicationFilterChain.java:252) >>>>> at =20 >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter=20 >>>>> (ApplicationFilterChain.java:173) >>>>> at org.apache.catalina.core.StandardWrapperValve.invoke=20 >>>>> (StandardWrapperValve.java:213) >>>>> at org.apache.catalina.core.StandardContextValve.invoke=20 >>>>> (StandardContextValve.java:178) >>>>> at =20 >>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke=20 >>>>> (AuthenticatorBase.java:482) >>>>> at org.apache.geronimo.tomcat.GeronimoStandardContext=20 >>>>> $SystemMethodValve.invoke(GeronimoStandardContext.java:272) >>>>> at =20 >>>>> org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke=20 >>>>> (DefaultSubjectValve.java:46) >>>>> at =20 >>>>> org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke=20 >>>>> (PolicyContextValve.java:50) >>>>> at =20 >>>>> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke=20 >>>>> (TransactionContextValve.java:53) >>>>> at =20 >>>>> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke=20 >>>>> (ComponentContextValve.java:47) >>>>> at =20 >>>>> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke=20 >>>>> (InstanceContextValve.java:60) >>>>> at org.apache.catalina.core.StandardHostValve.invoke=20 >>>>> (StandardHostValve.java:126) >>>>> at org.apache.catalina.valves.ErrorReportValve.invoke=20 >>>>> (ErrorReportValve.java:105) >>>>> at org.apache.catalina.core.StandardEngineValve.invoke=20 >>>>> (StandardEngineValve.java:107) >>>>> at org.apache.catalina.valves.AccessLogValve.invoke=20 >>>>> (AccessLogValve.java:526) >>>>> at org.apache.catalina.connector.CoyoteAdapter.service=20 >>>>> (CoyoteAdapter.java:148) >>>>> at org.apache.coyote.http11.Http11Processor.process=20 >>>>> (Http11Processor.java:856) >>>>> at org.apache.coyote.http11.Http11Protocol=20 >>>>> $Http11ConnectionHandler.processConnection(Http11Protocol.java:=20 >>>>> 744) >>>>> at =20 >>>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket=20 >>>>> (PoolTcpEndpoint.java:527) >>>>> at =20 >>>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt=20 >>>>> (LeaderFollowerWorkerThread.java:80) >>>>> at org.apache.tomcat.util.threads.ThreadPool=20 >>>>> $ControlRunnable.run(ThreadPool.java:684) >>>>> at java.lang.Thread.run(Thread.java:534) >>>>> 17:26:08,070 DEBUG [GBeanSingleReference] Waiting to start =20 >>>>> geronimo.server:EJBModule=3DInboundMdb,J2EEApplication=3Dnull,J2EESe= rv=20 >>>>> er=3Dgeronimo,j2eeType=3DMessageDrivenBean,name=3DInboundMdb = because =20 >>>>> no targets are running for reference ActivationSpecWrapper =20 >>>>> matching the patterns =20 >>>>> geronimo.server:EJBModule=3DInboundMdb,J2EEApplication=3Dnull,J2EESe= rv=20 >>>>> er=3Dgeronimo,j2eeType=3DJCAActivationSpec,name=3DInboundMdb >>>>> >>>>> >>>>> Thanks for your help >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> . >>> >> >> .