You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Mayne, Peter" <Pe...@ap.spherion.com> on 2003/08/05 03:37:55 UTC
Page recorder is locked after a commit()
Occasionally I'll get an exception while in the source of a Foreach.
Page recorder for page ListGrants is locked after a commit(), but received a
change to property grants of component ListGrants.
Stack Trace:
*
org.apache.tapestry.record.PageRecorder.observeChange(PageRecorder.java:160)
*
org.apache.tapestry.AbstractComponent.fireObservedChange(AbstractComponent.j
ava:350)
*
com.spherion.ap.arc.pages.grants.ListGrants$Enhance_110.setGrants(ListGrants
$Enhance_110.java)
*
com.spherion.ap.arc.pages.grants.ListGrants.getGrantsList(ListGrants.java:38
)
* sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
*
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
*
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
* java.lang.reflect.Method.invoke(Method.java:324)
* ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:255)
* ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:654)
*
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:
54)
*
ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
* ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1219)
* ognl.ASTProperty.getValueBody(ASTProperty.java:108)
* ognl.SimpleNode.getValue(SimpleNode.java:129)
* ognl.Ognl.getValue(Ognl.java:335)
* ognl.Ognl.getValue(Ognl.java:310)
*
org.apache.tapestry.binding.ExpressionBinding.resolveProperty(ExpressionBind
ing.java:240)
...
The page will work fine, then fail, then work fine again with no intervening
changes. I am setting the persistent property "grants" in getGrantsList(),
but the failure only happens intermittently.
What causes this error, so I can figure out how to fix it.
Thanks.
PJDM
--
Peter Mayne
Technology Consultant
Spherion Technology Solutions
Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
T: 61 2 62689727 F: 61 2 62689777
The information contained in this email and any attachments to it:
(a) may be confidential and if you are not the intended recipient, any interference with,
use, disclosure or copying of this material is unauthorised and prohibited; and
(b) may contain personal information of the recipient and/or the sender as defined
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to
collect, hold and use such information and any personal information contained in a
response to this email, for any reasonable purpose in the ordinary course of
Spherion's
business, including forwarding this email internally or disclosing it to a third party. All
personal information collected by Spherion will be handled in accordance with
Spherion's Privacy Policy. If you have received this email in error, please notify the
sender and delete it.
(c) you agree not to employ or arrange employment for any candidate(s) supplied in
this email and any attachments without first entering into a contractual agreement with
Spherion. You further agree not to divulge any information contained in this document
to any person(s) or entities without the express permission of Spherion.
Re: Page recorder is locked after a commit()
Posted by Sven Homburg <Sv...@hsofttec.com>.
Hi there,
its not possible to call a fireObserveChange from a getter methode.
MP> Occasionally I'll get an exception while in the source of a Foreach.
MP> Page recorder for page ListGrants is locked after a commit(), but received a
MP> change to property grants of component ListGrants.
MP> Stack Trace:
MP> *
MP> org.apache.tapestry.record.PageRecorder.observeChange(PageRecorder.java:160)
MP> *
MP> org.apache.tapestry.AbstractComponent.fireObservedChange(AbstractComponent.j
MP> ava:350)
MP> *
MP> com.spherion.ap.arc.pages.grants.ListGrants$Enhance_110.setGrants(ListGrants
MP> $Enhance_110.java)
MP> *
MP> com.spherion.ap.arc.pages.grants.ListGrants.getGrantsList(ListGrants.java:38
MP> )
MP> * sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
MP> *
MP> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
MP> )
MP> *
MP> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
MP> .java:25)
MP> * java.lang.reflect.Method.invoke(Method.java:324)
MP> * ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:255)
MP> * ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:654)
MP> *
MP> ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:
MP> 54)
MP> *
MP> ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
MP> * ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1219)
MP> * ognl.ASTProperty.getValueBody(ASTProperty.java:108)
MP> * ognl.SimpleNode.getValue(SimpleNode.java:129)
MP> * ognl.Ognl.getValue(Ognl.java:335)
MP> * ognl.Ognl.getValue(Ognl.java:310)
MP> *
MP> org.apache.tapestry.binding.ExpressionBinding.resolveProperty(ExpressionBind
MP> ing.java:240)
MP> ...
MP> The page will work fine, then fail, then work fine again with no intervening
MP> changes. I am setting the persistent property "grants" in getGrantsList(),
MP> but the failure only happens intermittently.
MP> What causes this error, so I can figure out how to fix it.
MP> Thanks.
MP> PJDM
--
Mit freundlichem Gruss
homburg Softwartechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947