Java Spring RequestParam is null
<p>I am having a problem where Spring is giving me RequestParams that are null, even though I believe the Http request contains the variables and is formatted properly.</p>

<p>Here is the bugged code.</p>

<pre><code>@RequestMapping(value="/{username}/party/{partymember}",method=RequestMethod.PUT,  produces="application/json", consumes="application/x-www-form-urlencoded")
public ResponseEntity&lt;String&gt; updatePartyMember(@PathVariable String username, 
                                                @PathVariable String partymember,
                                                @RequestParam(value="membername", required=false) String newMemberName,
                                                @RequestParam(value="job", required=false) String newJob)
</code></pre>

<p>Here is another function that works properly.</p>

<pre><code>@RequestMapping(value="/{username}/party", method=RequestMethod.POST, produces="application/json", consumes="application/x-www-form-urlencoded")
public ResponseEntity&lt;String&gt; addPartyMember(@PathVariable String username, 
                                            @RequestParam(value="membername", required=false) String partyMemberName,
                                            @RequestParam(value="job", required=false) String partyMemberJob)
</code></pre>

<p>While debugging I took a working query for the second function and changed only the url and request method and I was able to call the first function. This leads me to believe there's nothing wrong with the queries I sent to the server. </p>