From user-return-1981-apmail-hivemind-user-archive=hivemind.apache.org@hivemind.apache.org Wed Aug 23 05:17:24 2006 Return-Path: Delivered-To: apmail-hivemind-user-archive@www.apache.org Received: (qmail 89316 invoked from network); 23 Aug 2006 05:17:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2006 05:17:24 -0000 Received: (qmail 15884 invoked by uid 500); 23 Aug 2006 05:17:23 -0000 Delivered-To: apmail-hivemind-user-archive@hivemind.apache.org Received: (qmail 15873 invoked by uid 500); 23 Aug 2006 05:17:23 -0000 Mailing-List: contact user-help@hivemind.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hivemind.apache.org Delivered-To: mailing list user@hivemind.apache.org Received: (qmail 15864 invoked by uid 99); 23 Aug 2006 05:17:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 22:17:23 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of knut.wannheden@gmail.com designates 66.249.92.169 as permitted sender) Received: from [66.249.92.169] (HELO ug-out-1314.google.com) (66.249.92.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 22:17:22 -0700 Received: by ug-out-1314.google.com with SMTP id j40so13442ugd for ; Tue, 22 Aug 2006 22:17:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nYIOY8pHSBUKtUKaKC7OaZMiw1jgC35UhIBCLth8ZuETKyo9HNZqCNdSg5ZcmEClWZywVpv52s/8DVZh1fpM2P74pEZMLHoP+xGG81frQqVCgJcY9b8Jz+H0/DOFB58aVjUv9sb1xhBUkOaWjiPjHyAEeKSTCcCwDbmA3mVOnb0= Received: by 10.66.249.11 with SMTP id w11mr4861932ugh; Tue, 22 Aug 2006 22:17:01 -0700 (PDT) Received: by 10.66.218.18 with HTTP; Tue, 22 Aug 2006 22:17:00 -0700 (PDT) Message-ID: <360173eb0608222217s50578880r89e0a44eecabb5e3@mail.gmail.com> Date: Wed, 23 Aug 2006 07:17:00 +0200 From: "Knut Wannheden" To: user@hivemind.apache.org Subject: Re: Tapestry (4.0.2) / Hivemind (1.1.1) in OC4J 10.1.3 - Dig a little bit more, anyone please give me a ladder to climb up In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Vinicius, My guess would be that this is a classloader issue. Try to compare the classes of the constructor's declared parameters to those of the actual parameter values passed to newInstance(). Maybe your commons-logging jar is loaded by two different classloaders. HTH, --knut On 8/23/06, Vinicius Carvalho wrote: > Hello there! I still did not gave up OC4J 10.1.3 (well, I'd love to, > but my boss wont let me). > So, just to fresh-up memories, I get a nasty exception when I deploy > my app on oracle AS: > > 06/08/22 23:23:51 java.lang.IllegalArgumentException: argument type mismatch > 06/08/22 23:23:51 > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > 06/08/22 23:23:51 > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > 06/08/22 23:23:51 > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > 06/08/22 23:23:51 > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > 06/08/22 23:23:51 > org.apache.hivemind.service.impl.LoggingInterceptorFactory.instantiateInterceptor(LoggingInterceptorFactory.java:290) > 06/08/22 23:23:51 > org.apache.hivemind.service.impl.LoggingInterceptorFactory.createInterceptor(LoggingInterceptorFactory.java:255) > > Ok, so I start debuging the app on both tomcat and Oracle: > > Here's the snippet I was debugging inside the LogginInterceptorFactory: > > private Object instantiateInterceptor(InterceptorStack stack, > Class interceptorClass) > throws Exception > { > Object stackTop = stack.peek(); > > Constructor c = interceptorClass.getConstructors()[0]; > > return c.newInstance(new Object[] { stack.getServiceLog(), > stackTop }); <- point of problem > } > > Well below it's a "toString" of each of the variables involved: > > Tomcat: > stack =InterceptorStackImpl[contribution=ServiceInterceptorContributionImpl[factoryServiceId=hivemind.LoggingInterceptor > parameters=null precedingInterceptorIds=null > followingInterceptorIds=null name=null] interfaceClass=interface > org.apache.tapestry.parse.ISpecificationParser top= tapestry.parse.SpecificationParser(org.apache.tapestry.parse.ISpecificationParser)>] > > interceptorClass = lass $ISpecificationParser_10d3ecd54a4 > > stackTop = tapestry.parse.SpecificationParser(org.apache.tapestry.parse.ISpecificationParser)> > > c = public $ISpecificationParser_10d38c5277a(org.apache.commons.logging.Log,$ISpecificationParser_10d38c52779) > > stack.getServiceLog = org.apache.commons.logging.impl.Log4JLogger@1575b4 > > > OC4J > stack = InterceptorStackImpl[contribution=ServiceInterceptorContributionImpl[factoryServiceId=hivemind.LoggingInterceptor > parameters=null precedingInterceptorIds=null > followingInterceptorIds=null name=null] interfaceClass=interface > org.apache.tapestry.parse.ISpecificationParser top= tapestry.parse.SpecificationParser(org.apache.tapestry.parse.ISpecificationParser)>] > > interceptorClass = class $ISpecificationParser_10d38ce04a4 > > stackTop = tapestry.parse.SpecificationParser(org.apache.tapestry.parse.ISpecificationParser)> > > c = public $ISpecificationParser_10d38c89a9b(org.apache.commons.logging.Log,$ISpecificationParser_10d38c89a9a) > > stack.getServiceLog = org.apache.commons.logging.impl.Log4JLogger@3c28ab > > Well, I got stuck because, all the variables seems to be the same > type, hence, how could a type mismatch could be happening. > > I couldn't find a way to figure out the interfaces of the stackTop. > > Well I hope this piece of information would give an idea for the gurus > or hivemind/tapestry to give me a hand on how to solve this. > > I really need to get it working on 10.1.3 :( > > My best regards >