users@jersey.java.net

java.lang.IllegalArgumentException: Error parsing media type

From: Michael Andrews <mandrews_at_liveops.com>
Date: Wed, 17 Jun 2009 10:33:19 -0700

Hi Paul,

Thanks for your quick reply.

> Hi Michael,
>
> The media type "text/plain;javascript" is not a valid media type as
> defined by the HTTP 1.1 specification [1].
>
> Parameters require a value. Note that content negotiation will only
> take into account the type and subtype of the media type and not any
> parameters.

I figured as much, but I have little control over enforcing the
specification since it is an external URI. Basically the service returns
'application/json' except that it is labeled 'text/plain;javascript'. Is
there a technique in the API to rewrite this header before the Client
assigns a Provider?

Michael