Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 95887 invoked from network); 17 Jul 2003 09:43:20 -0000 Received: from unknown (HELO m0relay.wnet.es.wanadoo.com) (62.81.236.42) by daedalus.apache.org with SMTP; 17 Jul 2003 09:43:20 -0000 Received: from m1estafeta.wnet.es.wanadoo.com ([10.192.8.84]) by m0relay.wnet.es.wanadoo.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 17 Jul 2003 11:43:32 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [BeanUtils]. Getting IllegalMonitorStateException Date: Thu, 17 Jul 2003 11:43:32 +0200 Message-ID: <5F28B9A2CEA88143B412DFD730FC3185010A46EF@m1estafeta.wnet.es.wanadoo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [BeanUtils]. Getting IllegalMonitorStateException Thread-Index: AcNMRBFEFzGMwKo2RpmvUVgu9unOswAAjo1g From: "Ruiz Moyano, Juan Pablo" To: "Jakarta Commons Users List" X-OriginalArrivalTime: 17 Jul 2003 09:43:32.0699 (UTC) FILETIME=[E2BDE2B0:01C34C47] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The "MyClass" class extends to ActionForm -struts 1.1- I receive the same message independently of the property requested. -----Mensaje original----- De: Jos=E9 Antonio P=E9rez Testa [mailto:japtesta@indra.es]=20 Enviado el: jueves, 17 de julio de 2003 11:17 Para: Jakarta Commons Users List Asunto: Re: [BeanUtils]. Getting IllegalMonitorStateException Could you give a more details on the insides of 'MyClass' ? I gess the problem is inside that class and not in beanutils. You must=20 review all your wait() and notify() calls, because there is the source of throwing IllegalMonitorStateException Suerte Maestro! Ruiz Moyano, Juan Pablo wrote: >I receive IllegalMonitorStateException when I invoke the = PropertyUtils.getProperty method. >=20 >public class Runner implements Runnable { > public Runner() { > Thread thread =3D new Thread(this); > synchronized( thread ) { > thread.start(); > } =20 > } > public void run() { > ... > ... > MyClass myclass =3D new MyClass(); > Object value =3D PropertyUtils.getProperty( myclass , propertyX ); >=20 > java.lang.IllegalMonitorStateException: current thread not owner > at = org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Propert= yUtils.java:957) > at = org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Propert= yUtils.java:979) > at = org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Property= Utils.java, Compiled Code) > at = org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtil= s.java:1172) > at = org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtil= s.java, Compiled Code) > at = org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java= :801) > ... > .. > at Runner.run(Runner.java:83) > at java.lang.Thread.run(Thread.java:479) = =20 > =20 >Any help/suggestions ? >=20 >Thanks >=20 > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-user-help@jakarta.apache.org > > =20 > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org