RE: [ojb-users] NoSuchElementException
Brought to you by:
thma
From: Weaver, S. <Sw...@ri...> - 2002-04-24 16:22:58
|
Hi St=E9phane, This may or may not have any connection to your issue. I noticed that = if I had a default constructor that was setting default values for some of = my object's properties, specifically ones marked as PK's in my = repository.xml, I received similar errors to yours. As soon as I removed the lines = that initialized those properties, everything worked fine. Example: This caused the errors: public TscWarehouse() { super(); _recordCode =3D "WN"; companyNumber=3D new BigDecimal(0); //PK property in repository.xml applicationId =3D "IA"; //PK property in repository.xml } this fixed it: public TscWarehouse() { super(); } hth, Scott > -----Original Message----- > From: Stephane Felten [mailto:sf...@un...] > Sent: Wednesday, April 24, 2002 10:41 AM > To: obj...@li... > Subject: [ojb-users] NoSuchElementException >=20 >=20 > hi, > I am trying to use OJB; I make only simple query and I get in=20 > one case a =3D > no suchElementException: > java.util.NoSuchElementException at=20 > ojb.broker.accesslayer.RsIterator.next(=3D > RsIterator.java:154) at=20 > ojb.broker.singlevm.PersistenceBrokerImpl.getCollec=3D > tionByQuery(PersistenceBrokerImpl.java:900) at=3D20 >=20 > I do not receive this Exception when there are no elements on=20 > this table. > I could not find why I receive this error; maybe it is a=20 > typical error can =3D > you give me some hints to find my mistakes? >=20 > St=E9phane FELTEN >=20 >=20 >=20 > _______________________________________________ > Objectbridge-users mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-users >=20 |