OK, this is two separate issues. This last one was because M2 expects
@ConstructorProperties to include args from super class even though they
are defined in super class ConstructorProperties and super is called.
The weird thing is that the validations failing should pass:
c.b.s.m.ReaderLoggingInterceptor - Body:
{"accountId":"324234","hostName":"69.69.69.69","customerGuid":"5A234B53-8AFB-080C-8FCB-F027CFF1F696","transId":8558741418371468705,"maxAgeMs":5000}
These are in the base class:
o.a.c.j.v.ValidationExceptionMapper -
MasService.getCustomerSTBData.arg0.maxAgeMs: may not be null
o.a.c.j.v.ValidationExceptionMapper -
MasService.getCustomerSTBData.arg0.customerGuid: size must be between 36
and 36
Something weird in bean validation in M2?
On Wed, Mar 2, 2016 at 1:56 PM, Romain Manni-Bucau <[email protected]>
wrote:
> try adding in system.properties: org.apache.openejb.cxf.bus.features =
> org.apache.cxf.feature.LoggingFeature
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> | Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com>
>
> 2016-03-02 19:54 GMT+01:00 Steve Goldsmith <[email protected]>:
>
> > This is on the output side of the fence, so it's probably the jackson
> > client. With 2.7.2 I get:
> >
> > Argument #1 of constructor [constructor for
> > com.bhn.services.masblaster.dto.CustStbDto, annotations: {interface
> >
> >
> java.beans.ConstructorProperties=@java.beans.ConstructorProperties(value=[accountId])}]
> > has no property name annotation; must have name when multiple-parameter
> > constructor annotated as Creator
> >
> > On Wed, Mar 2, 2016 at 1:51 PM, Romain Manni-Bucau <
> [email protected]>
> > wrote:
> >
> > > what's the raw input JSON?
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> | Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > <http://www.tomitribe.com>
> > >
> > > 2016-03-02 19:17 GMT+01:00 sgjava <[email protected]>:
> > >
> > > > This is what I'm getting in M2 (works in M1):
> > > >
> > > > Can not deserialize instance of java.util.ArrayList out of
> START_OBJECT
> > > > token
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-M2-JAX-RS-List-issue-tp4677721p4677740.html
> > > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > > >
> > >
> >
> >
> >
> > --
> > Steven P. Goldsmith
> >
>
--
Steven P. Goldsmith