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 <[email protected]>:

> 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 <[email protected]
> >
> 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" <[email protected]> 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 <
> > [email protected]
> > > >
> > > wrote:
> > >
> > > > Do you have a github sample showing it?
> > > > Le 29 févr. 2016 20:41, "sgjava" <[email protected]> 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
>

Reply via email to