cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattmann, Chris A (388J)" <chris.a.mattm...@jpl.nasa.gov>
Subject Re: Seeing error with JAX RS and @FormParam
Date Sun, 23 Jan 2011 02:15:31 GMT
Some further info on this:

I've ruled out that it was CXF-3147:

https://issues.apache.org/jira/browse/CXF-3147

Firebug indeed confirms that Content-type is being passed:

Response Headersview source
Server	Apache-Coyote/1.1
Content-Type	text/html;charset=utf-8
Content-Length	2241
Date	Sun, 23 Jan 2011 02:08:29 GMT
Connection	close
Request Headersview source
Host	localhost:8080
User-Agent	Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203
Firefox/3.6.13
Accept	*/*
Accept-Language	en-us,en;q=0.5
Accept-Encoding	gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	115
Connection	keep-alive
Content-Type	application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With	XMLHttpRequest
Referer	http://localhost:8080/curator/home.jsp
Content-Length	469
Cookie	JSESSIONID=0A100F2DC7B00DC9AEB88DAC1BF9ADAA
Pragma	no-cache
Cache-Control	no-cache

Cheers,
Chris

On Jan 22, 2011, at 5:59 PM, Mattmann, Chris A (388J) wrote:

> Hi Folks,
> 
> Was trying to find someone in IRC, but going to post this to the list too I'm using JAX
RS from CXF, with the 2.3.2 jars within Apache OODT. We've seen an error in one of our webapps
over there that seems to be what this user was reporting:
> 
> http://osdir.com/ml/users-cxf-apache/2009-05/msg00166.html
> 
> I've filed an OODT issue about this:
> 
> https://issues.apache.org/jira/browse/OODT-118
> 
> Basically what I'm seeing is that I have a JAX RS service mapped to /services/metadata/catalog
the method looks like this:
> @POST
> @Path(CATALOG)
> @Consumes("application/x-www-form-urlencoded")
> @Produces("text/plain")
> public String setCatalogMetadata(MultivaluedMap<String, String> formParams,
> @FormParam("id") String id) {
> 
> What i'm seeing is an error where id is always null. I  threw up firebug and confirmed
that id is getting passed in correctly via the form params. 
> 
> Any ideas? You can see the OODT code for yourself around line 260 in this file:
> 
> http://s.apache.org/eEE
> 
> Cheers,
> Chris
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: chris.a.mattmann@nasa.gov
> WWW:   http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Mime
View raw message