-->
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.  [ 2 posts ] 
Author Message
 Post subject: IllegalArgumentException in UserType for byte[] identifier
PostPosted: Wed Apr 20, 2005 4:26 pm 
Newbie

Joined: Tue Sep 14, 2004 1:16 pm
Posts: 7
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: Hibernate2


I implemented the codes above as suggested for byte[] Indentifier.
When tried to query against the database, I'm getting this error:

IllegalArgumentException in class: com.model.xmldoc, setter method of
property: dxxrootId
[4/20/05 8:49:28:663 EDT] 1f15a08e BasicProperty E
net.sf.hibernate.property.BasicPropertyAccessor
expected type: com.util.BytesType,
actual value: com.util.Bytes
[4/20/05 8:49:28:813 EDT] 1f15a08e DispatcherSer E
org.springframework.web.servlet.DispatcherServlet Could not complete
request

Please refer to this link for Bytes and BytesType implementation
http://www.hibernate.org/50.html

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 22, 2005 4:27 am 
Beginner
Beginner

Joined: Thu Apr 21, 2005 5:37 am
Posts: 45
Location: Switzerland
something must be wrong with your setter-method.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.