You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bval.apache.org by Eric Evans <ee...@opennms.com> on 2013/08/01 03:42:08 UTC

Failure to validate

Hi,

I have a bean that is annotated with 4 NotNull constraints.  A unit test
is working as expected (validator.validate(new User()) returns 4
ConstraintViolations), but the same code does not work from within my
OSGI application.  There are no exceptions, it simply fails to return 
any ConstraintViolations.

Any help with this would be greatly appreciated.

Thanks,

-- 
Eric Evans
eevans@opennms.com

Re: Failure to validate

Posted by Matt Benson <mb...@apache.org>.
It may yet, but not with me.  Sorry!

Matt


On Thu, Aug 1, 2013 at 9:16 AM, Eric Evans <ee...@opennms.com> wrote:

> [ Matt Benson ]
> > We'd probably need a bit more to go on here... if you could boil this
> down
> > to a small self-contained example project that exhibits this problem we
> > might have a better likelihood of being able to assist you.
>
> I will try, but the unit test was my attempt at making it reproducible.
> The code that fails is otherwise identical except that it's running in an
> OSGI environment (which makes it is less easy to reproduce).
>
> I was hoping this would ring bells. :(
>
> > On Jul 31, 2013 8:44 PM, "Eric Evans" <ee...@opennms.com> wrote:
>
> > > I have a bean that is annotated with 4 NotNull constraints.  A unit
> test
> > > is working as expected (validator.validate(new User()) returns 4
> > > ConstraintViolations), but the same code does not work from within my
> > > OSGI application.  There are no exceptions, it simply fails to return
> > > any ConstraintViolations.
> > >
> > > Any help with this would be greatly appreciated.
> > >
> > > Thanks,
>
> --
> Eric Evans
> eevans@opennms.com
>

Re: Failure to validate

Posted by Eric Evans <ee...@opennms.com>.
[ Matt Benson ]
> We'd probably need a bit more to go on here... if you could boil this down
> to a small self-contained example project that exhibits this problem we
> might have a better likelihood of being able to assist you.

I will try, but the unit test was my attempt at making it reproducible.
The code that fails is otherwise identical except that it's running in an
OSGI environment (which makes it is less easy to reproduce).

I was hoping this would ring bells. :(

> On Jul 31, 2013 8:44 PM, "Eric Evans" <ee...@opennms.com> wrote:

> > I have a bean that is annotated with 4 NotNull constraints.  A unit test
> > is working as expected (validator.validate(new User()) returns 4
> > ConstraintViolations), but the same code does not work from within my
> > OSGI application.  There are no exceptions, it simply fails to return
> > any ConstraintViolations.
> >
> > Any help with this would be greatly appreciated.
> >
> > Thanks,

-- 
Eric Evans
eevans@opennms.com

Re: Failure to validate

Posted by Matt Benson <mb...@apache.org>.
Hi Eric,
We'd probably need a bit more to go on here... if you could boil this down
to a small self-contained example project that exhibits this problem we
might have a better likelihood of being able to assist you.

Regards,
Matt
On Jul 31, 2013 8:44 PM, "Eric Evans" <ee...@opennms.com> wrote:

>
> Hi,
>
> I have a bean that is annotated with 4 NotNull constraints.  A unit test
> is working as expected (validator.validate(new User()) returns 4
> ConstraintViolations), but the same code does not work from within my
> OSGI application.  There are no exceptions, it simply fails to return
> any ConstraintViolations.
>
> Any help with this would be greatly appreciated.
>
> Thanks,
>
> --
> Eric Evans
> eevans@opennms.com
>