Not sure it was intended but @ConstructorProperties({"transId", "id",
"userName", "fullName"}) was wrong on second parameter making jackson not
able to deserialize the payload. Then all works fine with or without jacksonRomain 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-03 20:42 GMT+01:00 Steve Goldsmith <[email protected]>: > OK, check out https://github.com/sgjava/jcache-tomee. This is closer to my > real project which uses JCache. I'm wondering if this has something to do > with it. I'm passing a fully populated DTO, but one of the fields is being > set to null somewhere. > > On Wed, Mar 2, 2016 at 3:13 PM, Romain Manni-Bucau <[email protected]> > wrote: > > > Can you share your project or sthg to reproduce on github? Bval only got > > some caching and no other change AFAIK. > > Le 2 mars 2016 21:05, "Steve Goldsmith" <[email protected]> a écrit : > > > > > It looks like it's in java.beans.ConstructorProperties since changing > to > > > @ConstructorProperties({"accountId", "customerGuid", "masIp", > "maxAgeMs", > > > "transId"}) causes the validation warnings. Did something change in > that > > > tier? M1 had no issues... > > > > > > On Wed, Mar 2, 2016 at 2:37 PM, Romain Manni-Bucau < > > [email protected]> > > > wrote: > > > > > > > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <[email protected]>: > > > > > > > > > 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. > > > > > > > > > > > > > > Hmm, then how to construct these properties if there are not in the > > > > constructor? > > > > > > > > > > > > > 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} > > > > > > > > > > > > > > If you updated @ConstructorProperties it can be linked. There was no > > > > changed about that between M1 and M2 in bval. > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > -- > > > Steven P. Goldsmith > > > > > > > > > -- > Steven P. Goldsmith >
