Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: java.lang.NoSuchMethodError: StringHttpMessaStringHttpMessageConverter.<ini

  1. #1

    Exclamation java.lang.NoSuchMethodError: StringHttpMessaStringHttpMessageConverter.<ini

    Hi all,
    Suddenly my web application integrated via Spring social is not letting me logon. Below is the stack trace.

    Below are my version
    <org.springframework-version>3.1.1.RELEASE</org.springframework-version>
    <org.springframework.security-version>3.1.0.RELEASE</org.springframework.security-version>
    <org.springframework.social-version>1.1.0.BUILD-SNAPSHOT</org.springframework.social-version>
    <org.springframework.social.facebook-version>1.1.0.BUILD-SNAPSHOT</org.springframework.social.facebook-version>

    i tried changing the spring version to latest but had some other repercussion.
    i tried creating a new app and still get the same error.

    Any help would be greatly appreciated

    Thanks

    HTTP Status 500 -

    exception

    org.springframework.web.util.NestedServletExceptio n: Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.http.converter.StringHttpMessa geConverter.<init>(Ljava/nio/charset/CharsetV
    org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:972)
    org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:852)
    org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:882)
    org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:778)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
    org.netbeans.modules.web.monitor.server.MonitorFil ter.doFilter(MonitorFilter.java:393)
    com.zinghopper.web.filter.UrlRedirectionFilter.doF ilter(UrlRedirectionFilter.java:59)
    org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:346)
    org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:259)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 311)
    org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:116)
    org.springframework.security.web.access.intercept. FilterSecurityInterceptor.doFilter(FilterSecurityI nter

  2. #2

    Default

    oh. finally figured it out.

    The version of Spring social build with 20130215 was (spring-social-core-1.1.0.BUILD-20130215.091522-300) was the problem. used the previous built jars and it worked.

  3. #3
    Join Date
    Aug 2004
    Posts
    1,067

    Default

    Glad you figured it out! It's funny, I encountered the exact same problem yesterday because I was switching between older branches of Spring Social.
    Craig Walls
    Spring Social Project Lead

  4. #4

    Default

    Dear Craig Walls (habuma),
    Thanks for your reply. I was just thinking, this solution may not be correct though it worked. Ideally i need to get the latest Spring-web which contains StringHttpMessageConverter which i am going to try next. Please correct me if i am wrong.

    Thanks
    Shreenidhi

  5. #5
    Join Date
    Apr 2013
    Posts
    6

    Default

    Hi,
    I'm currently integrating Spring Social and JSF, and I got that error when connecting. I am using spring-social-core-1.1.0.M2 to which version should I switch to avoid this exception?

    Regards,
    jfzr

  6. #6

    Default

    dear jfzr,
    Here are my version details. Its working for me. May be you can also try

    <org.springframework-version>3.1.4.RELEASE</org.springframework-version>
    <org.springframework.security-version>3.1.1.RELEASE</org.springframework.security-version>
    <org.springframework.social-version>1.1.0.M2</org.springframework.social-version>
    <org.springframework.social.facebook-version>1.1.0.M2</org.springframework.social.facebook-version>
    <org.springframework.social.twitter-version>1.0.1.RELEASE</org.springframework.social.twitter-version>

    Regards
    Shreenidhi

  7. #7
    Join Date
    Apr 2013
    Posts
    6

    Default

    HI shreenidhisp,
    Thanks for your fast answer. I just try the same repositories as the one you post; but still getting this error:

    root cause

    java.lang.NoSuchMethodError: org.springframework.http.converter.StringHttpMessa geConverter.<init>(Ljava/nio/charset/CharsetV
    org.springframework.social.oauth2.AbstractOAuth2Ap iBinding.getFormMessageConverter(AbstractOAuth2Api Binding.java:143)
    org.springframework.social.oauth2.AbstractOAuth2Ap iBinding.getMessageConverters(AbstractOAuth2ApiBin ding.java:126)
    org.springframework.social.oauth2.AbstractOAuth2Ap iBinding.<init>(AbstractOAuth2ApiBinding.java:64)
    org.springframework.social.facebook.api.impl.Faceb ookTemplate.<init>(FacebookTemplate.java:127)
    org.springframework.social.facebook.connect.Facebo okServiceProvider.getApi(FacebookServiceProvider.j ava:43)
    org.springframework.social.facebook.connect.Facebo okServiceProvider.getApi(FacebookServiceProvider.j ava:27)
    org.springframework.social.connect.support.OAuth2C onnection.initApi(OAuth2Connection.java:132)
    org.springframework.social.connect.support.OAuth2C onnection.<init>(OAuth2Connection.java:71)
    org.springframework.social.connect.support.OAuth2C onnectionFactory.createConnection(OAuth2Connection Factory.java:73)
    com.planetrestore.service.impl.SocialMediaService. completeOAuth2(SocialMediaService.java:193)

    Any idea why is this happening?

  8. #8

    Default

    hi,
    i can only think of one possible reason. Your local repository might have different versioned jars which might have downloaded when you had mentioned earlier version than above. Just try deleting them (all spring related jars) so that build would download fresh jars and try again. Good luck

    Thanks
    Shreenidhi

  9. #9
    Join Date
    Apr 2013
    Posts
    6

    Default

    hi,
    Thanks once more, quick question which version of jar you have for spring-web. I running 3.2.1.release. Same there?

  10. #10

    Default

    I tried updating to 3.2.1 and i got some other error. I had to spend time and update corresponding dependencies. I had little time. Currently i am using 3.1.4.RELEASE.

    Thanks
    Shreenidhi

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •