Hi G�nther,

G�nther Wieser wrote:
hi,

this weekend ojb brought me a lot of "fun". i'd been searching for a problem
for over half a day until i found out that ojb didn't like the way i
overwrote the toString() method ob the objects that i wanted to be
persisted.

finally i found some debug output like "BAD toString() implementation of
class xxxxx", but couldn't find any further details.

anyone an idea how i can implement an ojb compatible toString() method
output, and what ojb does with the result of the toString() method?


The "BAD toString()..." comment was cause by an exception thrown by the #toString() method of your persistent objet.
When OJB is logging some times the persistent object itself was logged too. In this case OJB checks if the #toString method of the object is valid to use. If not (#toString throws an exception) the "BAD toString..." entry is shown.


Could it be the case that the #toString method of your persistent object is cause an exception?

regards,
Armin


kr,
guenther



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to