Keith R. Davis wrote:
> Paul,
>
> That was the culprit, replaced 0.8 with 0.9 followed by a quick curl test
> and PUTs are working as expected!
>
Great! Thanks for your perseverance.
Paul.
> Thanks again for your help!
>
> Keith
>
> -------- Original Message --------
> Subject: Re: [Jersey] Updated: JSON GET followed by PUT - Additional
> Information
> Date: Mon, 04 Aug 2008 06:16:15 -0600
> From: Keith R. Davis <keith.davis_at_zunisoft.com>
> To: users_at_jersey.dev.java.net
>
> Paul,
>
> Thanks for the hint. I thought I tried XML and got the same results,
> however, I will retry with XML again just to be sure. I will also compare
> my full stack tract against issue #78. If the latest binaries help, I will
> report back here.
>
> Again thank you for help and it is appreciated!
>
> Keith
>
> On Mon, 04 Aug 2008 12:15:59 +0200, Paul Sandoz <Paul.Sandoz_at_Sun.COM>
> wrote:
>> Hi Keith,
>>
>> I think it may be a bug in the JSON unmarshalling of 0.8:
>>
>> https://jersey.dev.java.net/issues/show_bug.cgi?id=78
>>
>> which is now fixed in 0.9 snapshot.
>>
>> Did you try PUT'ing XML instead of JSON?
>>
>>
>>> Stack trace (short version):
>>>
>>> StandardWrapperValve[ServletAdaptor]: PWC1406: Servlet.service() for
>> servlet ServletAdaptor threw exception
>>> com.sun.jersey.api.container.ContainerException: Exception injecting
>> parameters to Web resource method
>>
>> Does the longer version of the stack trace look similar to that
>> presented in issue 78?
>>
>>
>> The trailing slash thing is a red-herring. In previous versions of
>> Jersey it used to automatically redirect from a non-trailing slashed URL
>> to a trailing slashed URL if the @Path contained a trailing slash. This
>> confused developers and we turned off that functionality by default (you
>> can turn it back on if you like).
>>
>>
>> BTW we are still transitioning from ant to maven in 0.9, if you like,
>> and if you are using maven, you can get the latest snapshot version here:
>>
>>
> http://download.java.net/maven/2/com/sun/jersey/jersey-server/0.9-ea-SNAPSHOT/
>> Alternatively, if not using maven, if might be easier to download the
>> bundle here:
>>
>>
> http://download.java.net/maven/2/com/sun/jersey/jersey-bundle/0.9-ea-SNAPSHOT/
>> Paul.
>>
>> Keith R. Davis wrote:
>>> In addition to my last post, I also created a brand new web project:
>>> Created entity classes against my DB and then generated the REST
>>> services against those entity classes. Built and ran the 'Test RESTful
>>> Web Services' and got the same results as with my original project (404
>>> and 500 errors). GETs work, PUTs do not and I did not modify any of the
>>> generated objects in the test project.
>>>
>>> OS: Ubuntu 8.04
>>> Java VM: 1.6.0_06
>>> IDE: Netbeans 6.1 (fully updated including the Jersy 0.8ea plugin)
>>> Database: Java DB 10.2
>>> Application Server: Glassfish v2UR2
>>>
>>> Hopefully this may offer a hint to the problem...
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>> --
>> | ? + ? = To question
>> ----------------\
>> Paul Sandoz
>> x38109
>> +33-4-76188109
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109