You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by sgjava <sg...@gmail.com> on 2016/02/29 20:14:56 UTC

TomEE 7.0.0-M2 JAX-RS List issue

Looks like M2 broke code working with SNAPSHOT and M1:

        List<Event2Dto> response = client.target(url).request().post(Entity.
                entity(rdvrEvent2DtoList, MediaType.APPLICATION_JSON),
                new GenericType<List&lt;Event2Dto>>() {
        });

This worked before to return a list of DTOs.

javax.ws.rs.BadRequestException: HTTP 400 Bad Request



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-M2-JAX-RS-List-issue-tp4677721.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
Let me see if I can duplicate on test project...

On Wed, Mar 2, 2016 at 3:13 PM, Romain Manni-Bucau <rm...@gmail.com>
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" <sg...@gmail.com> 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 <
> rmannibucau@gmail.com>
> > wrote:
> >
> > > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> > >
> > > > 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 <
> > > rmannibucau@gmail.com>
> > > > 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 <sg...@gmail.com>:
> > > > >
> > > > > > 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 <
> > > > > rmannibucau@gmail.com>
> > > > > > 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 <sg...@gmail.com>:
> > > > > > >
> > > > > > > > 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

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
I fixed the github project. I hope it's just a mistype in my real project
too :)

On Thu, Mar 3, 2016 at 3:51 PM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> 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
> jackson
>
>
> 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-03 20:42 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
>
> > 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 <
> rmannibucau@gmail.com>
> > 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" <sg...@gmail.com> 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 <
> > > rmannibucau@gmail.com>
> > > > wrote:
> > > >
> > > > > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> > > > >
> > > > > > 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 <
> > > > > rmannibucau@gmail.com>
> > > > > > 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 <sg...@gmail.com>:
> > > > > > >
> > > > > > > > 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 <
> > > > > > > rmannibucau@gmail.com>
> > > > > > > > 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 <sg...@gmail.com>:
> > > > > > > > >
> > > > > > > > > > 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
> >
>



-- 
Steven P. Goldsmith

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
Cool, I'll fix my test project and the "real" one, thanks again.

On Thu, Mar 3, 2016 at 4:53 PM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Guess johnzon was behaving differently maybe but didnt check. Bval changes
> were really minor so not sure but can dig if important.
> Le 3 mars 2016 22:21, "Steve Goldsmith" <sg...@gmail.com> a écrit :
>
> > Cool, thanks for the second set of eyes. Did M1 not validate case or
> > something?
> >
> > On Thu, Mar 3, 2016 at 3:51 PM, Romain Manni-Bucau <
> rmannibucau@gmail.com>
> > wrote:
> >
> > > 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
> > > jackson
> > >
> > >
> > > 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-03 20:42 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> > >
> > > > 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 <
> > > rmannibucau@gmail.com>
> > > > 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" <sg...@gmail.com> 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 <
> > > > > rmannibucau@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> > > > > > >
> > > > > > > > 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 <
> > > > > > > rmannibucau@gmail.com>
> > > > > > > > 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 <
> sgjava@gmail.com
> > >:
> > > > > > > > >
> > > > > > > > > > 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 <
> > > > > > > > > rmannibucau@gmail.com>
> > > > > > > > > > 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 <sg...@gmail.com>:
> > > > > > > > > > >
> > > > > > > > > > > > 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
> > > >
> > >
> >
> >
> >
> > --
> > Steven P. Goldsmith
> >
>



-- 
Steven P. Goldsmith

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Guess johnzon was behaving differently maybe but didnt check. Bval changes
were really minor so not sure but can dig if important.
Le 3 mars 2016 22:21, "Steve Goldsmith" <sg...@gmail.com> a écrit :

> Cool, thanks for the second set of eyes. Did M1 not validate case or
> something?
>
> On Thu, Mar 3, 2016 at 3:51 PM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > 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
> > jackson
> >
> >
> > 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-03 20:42 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> >
> > > 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 <
> > rmannibucau@gmail.com>
> > > 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" <sg...@gmail.com> 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 <
> > > > rmannibucau@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> > > > > >
> > > > > > > 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 <
> > > > > > rmannibucau@gmail.com>
> > > > > > > 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 <sgjava@gmail.com
> >:
> > > > > > > >
> > > > > > > > > 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 <
> > > > > > > > rmannibucau@gmail.com>
> > > > > > > > > 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 <sg...@gmail.com>:
> > > > > > > > > >
> > > > > > > > > > > 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
> > >
> >
>
>
>
> --
> Steven P. Goldsmith
>

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
Cool, thanks for the second set of eyes. Did M1 not validate case or
something?

On Thu, Mar 3, 2016 at 3:51 PM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> 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
> jackson
>
>
> 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-03 20:42 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
>
> > 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 <
> rmannibucau@gmail.com>
> > 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" <sg...@gmail.com> 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 <
> > > rmannibucau@gmail.com>
> > > > wrote:
> > > >
> > > > > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> > > > >
> > > > > > 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 <
> > > > > rmannibucau@gmail.com>
> > > > > > 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 <sg...@gmail.com>:
> > > > > > >
> > > > > > > > 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 <
> > > > > > > rmannibucau@gmail.com>
> > > > > > > > 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 <sg...@gmail.com>:
> > > > > > > > >
> > > > > > > > > > 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
> >
>



-- 
Steven P. Goldsmith

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 jackson


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-03 20:42 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:

> 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 <rm...@gmail.com>
> 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" <sg...@gmail.com> 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 <
> > rmannibucau@gmail.com>
> > > wrote:
> > >
> > > > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> > > >
> > > > > 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 <
> > > > rmannibucau@gmail.com>
> > > > > 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 <sg...@gmail.com>:
> > > > > >
> > > > > > > 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 <
> > > > > > rmannibucau@gmail.com>
> > > > > > > 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 <sg...@gmail.com>:
> > > > > > > >
> > > > > > > > > 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
>

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
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 <rm...@gmail.com>
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" <sg...@gmail.com> 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 <
> rmannibucau@gmail.com>
> > wrote:
> >
> > > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> > >
> > > > 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 <
> > > rmannibucau@gmail.com>
> > > > 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 <sg...@gmail.com>:
> > > > >
> > > > > > 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 <
> > > > > rmannibucau@gmail.com>
> > > > > > 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 <sg...@gmail.com>:
> > > > > > >
> > > > > > > > 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

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
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" <sg...@gmail.com> 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 <rm...@gmail.com>
> wrote:
>
> > 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
> >
> > > 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 <
> > rmannibucau@gmail.com>
> > > 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 <sg...@gmail.com>:
> > > >
> > > > > 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 <
> > > > rmannibucau@gmail.com>
> > > > > 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 <sg...@gmail.com>:
> > > > > >
> > > > > > > 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
>

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
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 <rm...@gmail.com>
wrote:

> 2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:
>
> > 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 <
> rmannibucau@gmail.com>
> > 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 <sg...@gmail.com>:
> > >
> > > > 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 <
> > > rmannibucau@gmail.com>
> > > > 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 <sg...@gmail.com>:
> > > > >
> > > > > > 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

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
2016-03-02 20:16 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:

> 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 <rm...@gmail.com>
> 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 <sg...@gmail.com>:
> >
> > > 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 <
> > rmannibucau@gmail.com>
> > > 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 <sg...@gmail.com>:
> > > >
> > > > > 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
>

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
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 <rm...@gmail.com>
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 <sg...@gmail.com>:
>
> > 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 <
> rmannibucau@gmail.com>
> > 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 <sg...@gmail.com>:
> > >
> > > > 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

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 <sg...@gmail.com>:

> 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 <rm...@gmail.com>
> 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 <sg...@gmail.com>:
> >
> > > 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
>

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
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 <rm...@gmail.com>
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 <sg...@gmail.com>:
>
> > 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

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 <sg...@gmail.com>:

> 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.
>

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by sgjava <sg...@gmail.com>.
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.

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
One change I can think about is application/json being strict in M2 where
before foo/bar+json would have worked too. Maybe check @Consumes/@Produces.


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-02-29 22:08 GMT+01:00 Steve Goldsmith <sg...@gmail.com>:

> OK, test looks OK, so I'll have to peel back the real app and see what's
> going on...
>
> On Mon, Feb 29, 2016 at 2:53 PM, Romain Manni-Bucau <rmannibucau@gmail.com
> >
> wrote:
>
> > I use this king of thing for a personal project so guess issue is not on
> > client itself but either the model or server.
> > Le 29 févr. 2016 20:51, "Steve Goldsmith" <sg...@gmail.com> a écrit :
> >
> > > Crap. I knew you were going to ask that :) I'll through something
> > together
> > > now...
> > >
> > > On Mon, Feb 29, 2016 at 2:48 PM, Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >
> > > wrote:
> > >
> > > > Do you have a github sample showing it?
> > > > Le 29 févr. 2016 20:41, "sgjava" <sg...@gmail.com> a écrit :
> > > >
> > > > > Looks like M2 broke code working with SNAPSHOT and M1:
> > > > >
> > > > >         List<Event2Dto> response =
> > > > > client.target(url).request().post(Entity.
> > > > >                 entity(rdvrEvent2DtoList,
> > MediaType.APPLICATION_JSON),
> > > > >                 new GenericType<List&lt;Event2Dto>>() {
> > > > >         });
> > > > >
> > > > > This worked before to return a list of DTOs.
> > > > >
> > > > > javax.ws.rs.BadRequestException: HTTP 400 Bad Request
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-M2-JAX-RS-List-issue-tp4677721.html
> > > > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Steven P. Goldsmith
> > >
> >
>
>
>
> --
> Steven P. Goldsmith
>

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
OK, test looks OK, so I'll have to peel back the real app and see what's
going on...

On Mon, Feb 29, 2016 at 2:53 PM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> I use this king of thing for a personal project so guess issue is not on
> client itself but either the model or server.
> Le 29 févr. 2016 20:51, "Steve Goldsmith" <sg...@gmail.com> a écrit :
>
> > Crap. I knew you were going to ask that :) I'll through something
> together
> > now...
> >
> > On Mon, Feb 29, 2016 at 2:48 PM, Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >
> > wrote:
> >
> > > Do you have a github sample showing it?
> > > Le 29 févr. 2016 20:41, "sgjava" <sg...@gmail.com> a écrit :
> > >
> > > > Looks like M2 broke code working with SNAPSHOT and M1:
> > > >
> > > >         List<Event2Dto> response =
> > > > client.target(url).request().post(Entity.
> > > >                 entity(rdvrEvent2DtoList,
> MediaType.APPLICATION_JSON),
> > > >                 new GenericType<List&lt;Event2Dto>>() {
> > > >         });
> > > >
> > > > This worked before to return a list of DTOs.
> > > >
> > > > javax.ws.rs.BadRequestException: HTTP 400 Bad Request
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-M2-JAX-RS-List-issue-tp4677721.html
> > > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > > >
> > >
> >
> >
> >
> > --
> > Steven P. Goldsmith
> >
>



-- 
Steven P. Goldsmith

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
I use this king of thing for a personal project so guess issue is not on
client itself but either the model or server.
Le 29 févr. 2016 20:51, "Steve Goldsmith" <sg...@gmail.com> a écrit :

> Crap. I knew you were going to ask that :) I'll through something together
> now...
>
> On Mon, Feb 29, 2016 at 2:48 PM, Romain Manni-Bucau <rmannibucau@gmail.com
> >
> wrote:
>
> > Do you have a github sample showing it?
> > Le 29 févr. 2016 20:41, "sgjava" <sg...@gmail.com> a écrit :
> >
> > > Looks like M2 broke code working with SNAPSHOT and M1:
> > >
> > >         List<Event2Dto> response =
> > > client.target(url).request().post(Entity.
> > >                 entity(rdvrEvent2DtoList, MediaType.APPLICATION_JSON),
> > >                 new GenericType<List&lt;Event2Dto>>() {
> > >         });
> > >
> > > This worked before to return a list of DTOs.
> > >
> > > javax.ws.rs.BadRequestException: HTTP 400 Bad Request
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-M2-JAX-RS-List-issue-tp4677721.html
> > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > >
> >
>
>
>
> --
> Steven P. Goldsmith
>

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Steve Goldsmith <sg...@gmail.com>.
Crap. I knew you were going to ask that :) I'll through something together
now...

On Mon, Feb 29, 2016 at 2:48 PM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Do you have a github sample showing it?
> Le 29 févr. 2016 20:41, "sgjava" <sg...@gmail.com> a écrit :
>
> > Looks like M2 broke code working with SNAPSHOT and M1:
> >
> >         List<Event2Dto> response =
> > client.target(url).request().post(Entity.
> >                 entity(rdvrEvent2DtoList, MediaType.APPLICATION_JSON),
> >                 new GenericType<List&lt;Event2Dto>>() {
> >         });
> >
> > This worked before to return a list of DTOs.
> >
> > javax.ws.rs.BadRequestException: HTTP 400 Bad Request
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-M2-JAX-RS-List-issue-tp4677721.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>



-- 
Steven P. Goldsmith

Re: TomEE 7.0.0-M2 JAX-RS List issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Do you have a github sample showing it?
Le 29 févr. 2016 20:41, "sgjava" <sg...@gmail.com> a écrit :

> Looks like M2 broke code working with SNAPSHOT and M1:
>
>         List<Event2Dto> response =
> client.target(url).request().post(Entity.
>                 entity(rdvrEvent2DtoList, MediaType.APPLICATION_JSON),
>                 new GenericType<List&lt;Event2Dto>>() {
>         });
>
> This worked before to return a list of DTOs.
>
> javax.ws.rs.BadRequestException: HTTP 400 Bad Request
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-M2-JAX-RS-List-issue-tp4677721.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>