|
From: Weinan Li <we...@re...> - 2013-06-03 11:12:08
|
I've found multiple problems on trunk: - @CookieParam not inject properly - @MatrixParam not inject properly - @HeaderParam not work properly After investigating with the help of Wireshark, I found the requests were sent by JS-API correctly. But at sever side, the backend doesn't get the params correctly: - The variable that annotated with @CookieParam will always get a string 'cookie' instead of the real value sent by client. - The variable that annotated with @MatrixParam will always get a string 'matrix' instead of the real value sent by client. - The variable that annotated with @ HeaderParam will always get a string 'header' instead of the real value sent by client. Currently it seems not a JS-API component problem but a resteasy-jaxrs problem. I'll investigate more on these and put details in: https://issues.jboss.org/browse/RESTEASY-877 -- Weinan Li On Tuesday, May 28, 2013 at 9:52 PM, Weinan Li wrote: > > > -- > Weinan Li > > > On Tuesday, May 28, 2013 at 8:56 PM, Gregor Jarisch wrote: > > > Yes, that was the problem I had... still not sure why it doesn't occur anymore.. > Thanks for confirmation. I'll check what's going wrong. > > > > From: "Weinan Li" <we...@re... (mailto:we...@re...)> > > To: "Gregor Jarisch" <gr...@ja... (mailto:gr...@ja...)> > > Cc: res...@li... (mailto:res...@li...) > > Sent: Tuesday, May 28, 2013 12:33:54 PM > > Subject: Re: [Resteasy-developers] Init Resources - JSAPI - 3.0 beta-5 > > > > > > > > -- > > Weinan Li > > > > > > > > On Tuesday, May 28, 2013 at 4:36 PM, Gregor Jarisch wrote: > > > > > Hi, > > > > > > yes I have just seen it right before I created one :-) > > > > > > I have good news and bad news as well - somehow I was able to fix it - so it works fine now for me. The bad news - I have no idea what I did to make it work.. > > > It might has something to do with the maven dependencies, not sure though. I hope you are still able to reproduce it - since I think that it is a bug (due to the way it was behaving) - just cannot reproduce it anymore.. > > > > The problem I've met is that the js-api could not be generated correctly and from server side it threw NullPointer Exception. Is that the problem you've met? > > > > > > > > Let me know if I can assist you anyhow.. > > > > > > Gregor > > > > > > From: "Weinan Li" <we...@re... (mailto:we...@re...)> > > > To: "Gregor Jarisch" <gr...@ja... (mailto:gr...@ja...)> > > > Cc: res...@li... (mailto:res...@li...) > > > Sent: Tuesday, May 28, 2013 10:27:20 AM > > > Subject: Re: [Resteasy-developers] Init Resources - JSAPI - 3.0 beta-5 > > > > > > > > > > > > -- > > > Weinan Li > > > Sent with Sparrow (http://www.sparrowmailapp.com/?sig) > > > > > > > > > On Tuesday, May 28, 2013 at 3:27 PM, Weinan Li wrote: > > > > > > > Hi Gregor, I've confirmed this is a bug in RESTEasy 3.x. Could you please open an issue in Jira and assign to me? Thanks! (my email on JIRA: we...@re... (mailto:we...@re...)) > > > > > > I've created one Jira to track this: > > > > > > https://issues.jboss.org/browse/RESTEASY-877 > > > > > > > > > > > > -- > > > > Weinan Li > > > > Sent with Sparrow (http://www.sparrowmailapp.com/?sig) > > > > > > > > > > > > On Monday, May 27, 2013 at 5:50 PM, Gregor Jarisch wrote: > > > > > > > > > Hi there, > > > > > > > > > > I was switching to the resteasy 3.0 beta-5 to see what's new and what impact it has on our system (migration..). > > > > > I encountered troubles when using JSAPI. The client side JS-Rest-Interfaces don't get generated anymore, like it wouldn't find my rest implementations anymore. (I didn't change any code, only replaced the libs) > > > > > According to the logs they get loaded though - but maybe to late?! > > > > > > > > > > I use "resteasy.scan" to scan my resources - works perfectly with resteasy 2.3.*, but not with the current beta. Even handing over an implementation of javax.ws.rs.Application doesn't do it.. > > > > > > > > > > Any ideas? > > > > > > > > > > Thanks, > > > > > Gregor > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Try New Relic Now & We'll Send You this Cool Shirt > > > > > New Relic is the only SaaS-based application performance monitoring service > > > > > that delivers powerful full stack analytics. Optimize and monitor your > > > > > browser, app, & servers with just a few lines of code. Try New Relic > > > > > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > > > > > _______________________________________________ > > > > > Resteasy-developers mailing list > > > > > Res...@li... (mailto:Res...@li...) > > > > > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > > > > > > > > > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > > _______________________________________________ > Resteasy-developers mailing list > Res...@li... (mailto:Res...@li...) > https://lists.sourceforge.net/lists/listinfo/resteasy-developers |