-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: cannot load objects with generated id in hsqldb
PostPosted: Wed Feb 18, 2004 1:51 pm 
Newbie

Joined: Fri Jan 23, 2004 2:24 pm
Posts: 3
Location: Olten/Switzerland (mas sou brasileiro)
Hi all,

I'm facing some problems when trying to load objects that contain ids generated by the UUIDStringGenerator.
The exception below is being thrown:

Code:
net.sf.hibernate.ObjectNotFoundException: No row with the given identifier exists: X@3zH?zH wV??, of class: ch.fhso.efitness.server.domain.EtProto]


I also have some test data with "normal" ids (manually inserted). With this data everything works fine.
Does anyone faced a similar problem before? Or have any idea of what could be wrong?

My environment:

hibernate 2.1.2
hsqldb 1.7.1
jboss 3.2.3
springframework 1.0-rc1

Thanks in advance
Fabio


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2004 2:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Probably some encoding troubles ... have you tried uuid.hex?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2004 2:41 pm 
Newbie

Joined: Fri Jan 23, 2004 2:24 pm
Posts: 3
Location: Olten/Switzerland (mas sou brasileiro)
My unit tests are working perfectly, in both cases, either with the generated id or the "normal" one.
I'll probably have to find another way to pass the parameters (ids).
Currently I'm passing them via URL in a <HREF> link.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2004 2:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Ah thats most likely the problem, I strongly suspect the Strings get mangled somewhere in the encoding of the website/request.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 6:44 am 
Newbie

Joined: Fri Jan 23, 2004 2:24 pm
Posts: 3
Location: Olten/Switzerland (mas sou brasileiro)
It was due to some encoding problem.
With uuid.hex its working fine.

Thanks a lot
Fabio


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.