users@jersey.java.net

[Jersey] Re: ParseException: End of Header

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Fri, 27 May 2011 21:42:07 +0200

Hello Eric,

can you please share some more details? Best thing would be capturing
request on the wire and look what media type is being sent in request
headers. You can use LoggingFilter [1] or some client side
logging/sniffing tool, depends on what you have under control.

Regards,
Pavel

[1]
http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/container/filter/LoggingFilter.html

On 5/26/11 3:47 PM, Eric Reagan wrote:
> Hello,
> I am having some problems calling my REST service and I was trying
> to see if anyone else had this issue. I am getting an
> IllegalArgumentException: End of Header at
> com.sun.jersey.core.header.MediaTypes.createMediaTYpes(MediaTypes.java;230).....and
> the end of the stack tracke is java.text.ParseException: Endo of
> header at
> com.sun.jersey.core.header.readerHttpHeaderReaderImpl.getnextCharacter(HttpHeaderReaderImpl.java:219).
> I have googled this and I have come across a few mentions about a
> CDI/WELD issue. I did set the lookupExtensionInBeanManager to true
> inside of Glassfish. I am running Glassfish 3.1. I also set in my
> web.xml to class-loader delegate="false" but this didn't help. I am
> trying to run jersey 1.5 right now. I don't know if upgrading to 1.7
> would resolve this issue that I am having.
>
> Thank you,
> --
> Eric Reagan