Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 72143 invoked from network); 26 Oct 2006 06:48:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 06:48:33 -0000 Received: (qmail 65128 invoked by uid 500); 25 Oct 2006 16:31:16 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 65086 invoked by uid 500); 25 Oct 2006 16:31:16 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 65075 invoked by uid 99); 25 Oct 2006 16:31:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 09:31:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [64.39.31.158] (HELO zeus.atlassian.com) (64.39.31.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 09:31:00 -0700 Received: from [192.168.1.112] (dsl092-186-178.sfo1.dsl.speakeasy.net [66.92.186.178]) (authenticated (0 bits)) by zeus.atlassian.com (8.12.11.20060308/8.11.6) with ESMTP id k9PGURZB014746 for ; Wed, 25 Oct 2006 11:30:28 -0500 Message-ID: <453F9128.9000801@twdata.org> Date: Wed, 25 Oct 2006 09:30:32 -0700 From: Don Brown User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Struts Developers List Subject: Re: debug=console and profiling=yes in Struts 2.0.1 References: <7feebe1f0610240806o1bf7e6ffle1302334fb7b592c@mail.gmail.com> <453E8A37.3070503@twdata.org> <7feebe1f0610241453o36e0a881k8453f9cfb9f03878@mail.gmail.com> <453E8CEF.8030302@twdata.org> <7feebe1f0610242038k50b8796dsee28a4f12e850005@mail.gmail.com> In-Reply-To: <7feebe1f0610242038k50b8796dsee28a4f12e850005@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hmm...it looks like you don't have the debugging and profiling interceptors in your stack for that action. Otherwise, the console and profiling properties would be removed correctly from the parameters and you wouldn't see that output. Are you extending the "struts-default" package and using its stack, or rolling your own? Don Matt Raible wrote: > With debug=console, I get: > > ERROR - OgnlValueStack.setValue(176) | Error setting expr 'console' > with value '[Ljava.lang.String;@2bf86' > java.lang.RuntimeException: No object in the CompoundRoot has a > publicly accessible property named 'console' (no setter could be > found). > at > com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:67) > > at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1629) > at ognl.ASTProperty.setValueBody(ASTProperty.java:105) > at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177) > at ognl.SimpleNode.setValue(SimpleNode.java:246) > > Adding at the top of my page doesn't seem to help. Neither > does disabling sitemesh. > > If I add ?profiling=yes, I get: > > ERROR - ParametersInterceptor.setParameters(180) | Developer > Notification (set webwork.devMode to false to disable this message): > No object in the CompoundRoot has a publicly accessible property named > 'console' (no setter could be found). > ERROR - CompoundRootAccessor.setProperty(66) | No object in the > CompoundRoot has a publicly accessible property named 'profiling' (no > setter could be found). > ERROR - OgnlValueStack.setValue(176) | Error setting expr 'profiling' > with value '[Ljava.lang.String;@3941dd' > java.lang.RuntimeException: No object in the CompoundRoot has a > publicly accessible property named 'profiling' (no setter could be > found). > at > com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:67) > > > Matt > > > On 10/24/06, Don Brown wrote: >> What is puzzling is that profiling isn't working. When you append >> "profiling=yes" to the query string, Struts will start printing out >> profiling information to the log. If you have a lot of logging >> messages, these profiling statements might be lost among the clutter. >> For the debugging console, try turning Sitemesh off, either through >> removing its filter or excluding its decorator for the page. Take a >> look at the HTML generated to ensure that new markup is being inserted >> correctly. Finally, are you using any custom results to render the >> page? >> >> Don >> >> Matt Raible wrote: >> > On 10/24/06, Don Brown wrote: >> >> Those errors are fine, actually, although it is true they should be >> >> cleaned up to minimize confusion. Do you get the OGNL console popup? >> > >> > No. >> > >> >> If not, I'm guessing you are using sitemesh? >> > >> > Yes. >> > >> >> We did the demo at ApacheCon with the starter archetype app, which >> >> also uses >> >> Sitemesh, so it can work. >> > >> > Maybe it's an issue with Prototype/Scriptaculous? I tried removing >> > Scripaculous, but no dice. >> > >> >> >> >> Also, check that Struts 2 has devMode=true set in >> struts.properties in >> >> WEB-INF/classes. The debugging and profiling support are only >> enabled >> >> in dev mode. >> > >> > Yep, I have that. >> > >> > Matt >> > >> >> >> >> Don >> >> >> >> Matt Raible wrote: >> >> > I'm trying to use some features I found in Don Brown's >> presentation on >> >> > Struts 2.0 at ApacheCon. Using debug=console and profiling=yes >> >> > doesn't seem to work. >> >> > >> >> > When I use debug=console, I get: >> >> > >> >> > ERROR - ParametersInterceptor.setParameters(180) | Developer >> >> > Notification (set webwork.devMode to false to disable this >> message): >> >> > No object in the CompoundRoot has a publicly accessible property >> named >> >> > 'debug' (no setter could be found). >> >> > ERROR - CompoundRootAccessor.setProperty(66) | No object in the >> >> > CompoundRoot has a publicly accessible property named 'debug' (no >> >> > setter could be found). >> >> > ERROR - OgnlValueStack.setValue(176) | Error setting expr >> 'debug' with >> >> > value '[Ljava.lang.String;@74997a' >> >> > java.lang.RuntimeException: No object in the CompoundRoot has a >> >> > publicly accessible property named 'debug' (no setter could be >> found). >> >> > >> >> > Any ideas? >> >> > >> >> > Thanks, >> >> > >> >> > Matt >> >> > >> >> > >> --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> >> > For additional commands, e-mail: dev-help@struts.apache.org >> >> > >> >> > >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> >> For additional commands, e-mail: dev-help@struts.apache.org >> >> >> >> >> > >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> For additional commands, e-mail: dev-help@struts.apache.org >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org