From: cheeser <hib...@ch...> - 2003-01-03 04:41:49
|
Here's the pgsql log. See anything wrong? LOG: query: set autocommit =3D on; commit; LOG: query: set autocommit =3D off;=20 LOG: query: select nextval ('uid_sequence') LOG: query: insert into CommentTable ( Value, DateEntered, PrimaryKey,=20 subclass ) values ( null, null, 4, 'Comment' ) LOG: query: update CommentTable set Value =3D 'this is a test', DateEnte= red =3D=20 null where PrimaryKey =3D 4 LOG: query: SELECT Comme0.PrimaryKey AS PrimaryKey, Comme0.Value as Valu= e,=20 Comme0.DateEntered as DateEntered FROM CommentTable Comme0 WHERE=20 Comme0.PrimaryKey =3D 4 LOG: pq_recvbuf: unexpected EOF on client connection On Thursday 02 January 2003 09:00 pm, Gavin King wrote: > That "unexpected EOF" usually occurs if somehow the connection > between client and database processes is broken (eg. the > VM dies). What happens if you use a sequence, instead > of hi/lo generation? (And remember that you can't use > HiLoGenerator in an appserver....) > > > -----Original Message----- > > From: cheeser [mailto:hib...@ch...] > > Sent: Friday, 3 January 2003 2:40 PM > > To: hib...@li... > > Subject: [Hibernate] saving to pgsql > > > > > > I'm having troubles getting my objects to persist. In my > > pgsql.err, i get > > error messages about "unexpected EOF on client connection." > > Has anyone seen > > this? I create the bean and call session.save() with it. > > When I'm done with > > the session, I call flush() and close() (trying to force it) > > and nothing gets > > saved. Here's part of my hibernate.xml: > > > > =09<class name=3D"org.cheeseronline.antfarm.system.CommentBean" > > =09=09table=3D"CommentTable" discriminator-value=3D"Comment"> > > > > =09=09<id name=3D"PrimaryKey"> > > =09=09=09<generator > > class=3D"cirrus.hibernate.id.HiLoGenerator"> > > =09=09=09=09<param>uid_table</param> > > =09=09=09=09<param>next_hi_value_column</param> > > =09=09=09</generator> > > =09=09</id> > > =09=09<discriminator column=3D"subclass" type=3D"string"/> > > =09=09<property name=3D"Text" type=3D"string" column=3D"Value"/> > > =09=09<property name=3D"DateEntered" type=3D"date"/> > > =09</class> > > > > There are other classes in there, but the code is generated > > so it all looks > > the same. Can anyone see what I'm doing wrong? > > > > cheeser > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > hibernate-devel mailing list hib...@li... > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > ********** CAUTION - Disclaimer ********** > This message may contain privileged and confidential > information. If you are not the intended recipient of this > message (or responsible for delivery of the message to > such person) you are hereby notified that any use, > dissemination, distribution or reproduction of this message > is prohibited. If you have received this message in error, > you should destroy it and kindly notify the sender by reply > e-mail. Please advise immediately if you or your employer > do not consent to Internet e-mail for messages of this kind. > Opinions, conclusions and other information in this > message that do not relate to the official business of > Expert Information Services Pty Ltd ("The Company") > shall be understood as neither given nor endorsed by it. > > The Company advises that this e-mail and any attached > files should be scanned to detect viruses. The Company > accepts no liability for loss or damage (whether caused > by negligence or not) resulting from the use of any > attached files. > **EIS******** End of Disclaimer ********** |