users@jersey.java.net

[Jersey] ParseException: End of Header

From: Eric Reagan <reaganej_at_gmail.com>
Date: Thu, 26 May 2011 09:47:24 -0400

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