-->
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: Validator 4 beta and ConstraintViolation serialization
PostPosted: Tue Aug 25, 2009 2:22 pm 
Newbie

Joined: Thu Aug 06, 2009 3:01 pm
Posts: 5
I'm using Validator CR3/Beta 4 in an RMI/IIOP environment and my IIOP provider is unable to serialize a ConstraintViolation set returned from the validator. It has no problems returning an empty ConstraintViolationException since this class implements Serializable via RuntimeException. As soon as I attach a CV set, I end up with a NotSerializableException. The bean I am validating is serializable, if that is important. Is this not a supported environment (yet)?

-Jeremy


Top
 Profile  
 
 Post subject: Re: Validator 4 beta and ConstraintViolation serialization
PostPosted: Wed Aug 26, 2009 7:28 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

Currently ConstraintViolation is not marked as Serializable. Unfortunately, it is not so easy as just adding 'implements Serializable' since ConstraintViolation contains for example the root bean and no guarantee can be given whether this class is Serializable. We would basically get RuntimeExceptions.

I created a Jira issue - HV-213.

Not sure what the best approach is.

--Hardy


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.