users@glassfish.java.net

Jersey Failure

From: <glassfish_at_javadesktop.org>
Date: Mon, 20 Sep 2010 02:47:54 PDT

Hello Everyone ,
  I am trying to run a Jersey client from Glassfish v3. I seem to always get this error no matter what I do. I am running this from a servlet if that helps. Here is a snippet , I can post the whole thing if you like as well as a list of jars in the app and the server if that would help. I am using Jersey client and core 1.5.

WARNING: StandardWrapperValve[CreditServlet]: PWC1406: Servlet.service() for servlet CtServlet threw exception
java.lang.AbstractMethodError
        at com.sun.jersey.core.spi.factory.MessageBodyFactory._getMessageBodyReader(MessageBodyFactory.java:229)
        at com.sun.jersey.core.spi.factory.MessageBodyFactory.getMessageBodyReader(MessageBodyFactory.java:215)
...

Here is the source code , its quite small to be throwing such large errors
             ClientConfig config = new DefaultClientConfig();
             Client client = Client.create(config);
            WebResource webResource = client.resource("http://glootverify.somepath.com");
            webResource.path("/rest/service");
           String s = webResource.get(String.class);
...
[Message sent by forum member 'ubuntupenguin']

http://forums.java.net/jive/thread.jspa?messageID=483129