#4 AJAX client does not work anymore

closed-fixed
None
9
2012-02-13
2012-02-13
No

The AJAX client - http://localhost:8585/org.cumulus4j.integrationtest.webapp/jquery-test.html - as documented on the page http://cumulus4j.org/latest-dev/org.cumulus4j.integrationtest.webapp/index.html does not work anymore. In the server's log, this message is shown:

Feb 13, 2012 4:27:06 PM com.sun.jersey.spi.container.ContainerRequest getEntity
SEVERE: A message body reader for Java class org.cumulus4j.keymanager.front.shared.DateDependentKeyStrategyInitParam, and Java type class org.cumulus4j.keymanager.front.shared.DateDependentKeyStrategyInitParam, and MIME media type application/json; charset=UTF-8 was not found.
The registered message body readers compatible with the MIME media type are:
*/* ->
com.sun.jersey.core.impl.provider.entity.FormProvider
com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider
com.sun.jersey.core.impl.provider.entity.StringProvider
com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
com.sun.jersey.core.impl.provider.entity.FileProvider
com.sun.jersey.core.impl.provider.entity.InputStreamProvider
com.sun.jersey.core.impl.provider.entity.DataSourceProvider
com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
com.sun.jersey.core.impl.provider.entity.ReaderProvider
com.sun.jersey.core.impl.provider.entity.DocumentProvider
com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader
com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader
com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader
com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General
com.sun.jersey.core.impl.provider.entity.EntityHolderReader

Discussion

  • Marco Schulze

    Marco Schulze - 2012-02-13
    • assigned_to: nobody --> nlmarco
     
  • Marco Schulze

    Marco Schulze - 2012-02-13

    The only thing that was changed lately was the Jersey version used. I just tried switching back to Jersey 1.6 and the error does not occur. The bug only occurs with Jersey 1.9.

     
  • Marco Schulze

    Marco Schulze - 2012-02-13
    • status: open --> closed-fixed
     
  • Marco Schulze

    Marco Schulze - 2012-02-13

    The problem was the dependency declaration to "jersey-json" in project "org.cumulus4j.keymanager.front.webapp":

    <dependency>
    <groupId>com.sun.jersey</groupId>
    <artifactId>jersey-json</artifactId>
    <version>1.6</version>
    </dependency>

    The version is now missing in this file and instead there's a proper declaration added to the parent pom.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks