Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via nabble.com by Unknown author, 1 year ago
Cannot cast class com.sun.jersey.core.impl.provider.entity.StringProvider to interface javax.ws.rs.ext.MessageBodyReader [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at java.lang.Class.cast(Class.java:1711) [21.09.10 18:05:19:657 CEST
java.lang.ClassCastException: Cannot cast class com.sun.jersey.core.impl.provider.entity.StringProvider to interface javax.ws.rs.ext.MessageBodyReader
[21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R 	at java.lang.Class.cast(Class.java:1711)
[21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R 	at com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:122)
[21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R 	at com.sun.jersey.core.spi.factory.MessageBodyFactory.getProviderMap(MessageBodyFactory.java:136)	at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:110)	at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:105)	at com.sun.jersey.api.client.Client.(Client.java:208)	at com.sun.jersey.api.client.Client.(Client.java:124)