Announcement Announcement Module
Collapse
No announcement yet.
facebook jackson parsing exception for certain fb users only Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • facebook jackson parsing exception for certain fb users only

    I was trying spring-social 1.0.M3 showcase sample app and it turns out that my fb account logs in normally, but when i try with another account it throws this error. This is definitely fb account related (always same results)... :



    HTTP ERROR 500

    Problem accessing /signin/facebook. Reason:

    Unexpected graph API exception
    Caused by:

    org.springframework.social.facebook.api.GraphAPIEx ception: Unexpected graph API exception
    at org.springframework.social.facebook.api.impl.Faceb ookTemplate.fetchObject(FacebookTemplate.java:170)
    at org.springframework.social.facebook.api.impl.UserT emplate.getUserProfile(UserTemplate.java:36)
    at org.springframework.social.facebook.api.impl.UserT emplate.getUserProfile(UserTemplate.java:32)
    at org.springframework.social.facebook.connect.Facebo okApiAdapter.setConnectionValues(FacebookApiAdapte r.java:42)
    at org.springframework.social.facebook.connect.Facebo okApiAdapter.setConnectionValues(FacebookApiAdapte r.java:30)
    at org.springframework.social.connect.support.Abstrac tConnection.setValues(AbstractConnection.java:172)
    at org.springframework.social.connect.support.Abstrac tConnection.initKey(AbstractConnection.java:135)
    at org.springframework.social.connect.support.OAuth2C onnection.<init>(OAuth2Connection.java:71)
    at org.springframework.social.connect.support.OAuth2C onnectionFactory.createConnection(OAuth2Connection Factory.java:58)
    at org.springframework.social.connect.signin.web.Prov iderSignInController.oauth2Callback(ProviderSignIn Controller.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.web.bind.annotation.support.Ha ndlerMethodInvoker.invokeHandlerMethod(HandlerMeth odInvoker.java:176)
    at org.springframework.web.servlet.mvc.annotation.Ann otationMethodHandlerAdapter.invokeHandlerMethod(An notationMethodHandlerAdapter.java:436)
    at org.springframework.web.servlet.mvc.annotation.Ann otationMethodHandlerAdapter.handle(AnnotationMetho dHandlerAdapter.java:424)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:790)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:719)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:644)
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:549)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.eclipse.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:534)
    at org.eclipse.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1351)
    at org.springframework.web.filter.HiddenHttpMethodFil ter.doFilterInternal(HiddenHttpMethodFilter.java:7 7)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    at org.eclipse.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1322)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 312)
    at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:116)
    at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:83)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.access.ExceptionT ranslationFilter.doFilter(ExceptionTranslationFilt er.java:95)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.session.SessionMa nagementFilter.doFilter(SessionManagementFilter.ja va:100)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.authentication.An onymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:79)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.servletapi.Securi tyContextHolderAwareRequestFilter.doFilter(Securit yContextHolderAwareRequestFilter.java:54)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.savedrequest.Requ estCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:35)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:187)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.authentication.lo gout.LogoutFilter.doFilter(LogoutFilter.java:105)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.context.SecurityC ontextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:80)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 324)
    at org.springframework.security.web.FilterChainProxy. doFilter(FilterChainProxy.java:165)
    at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:237)
    at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
    at org.eclipse.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1322)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle( ServletHandler.java:473)
    at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:119)
    at org.eclipse.jetty.security.SecurityHandler.handle( SecurityHandler.java:479)
    at org.eclipse.jetty.server.session.SessionHandler.do Handle(SessionHandler.java:226)
    at org.eclipse.jetty.server.handler.ContextHandler.do Handle(ContextHandler.java:929)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(S ervletHandler.java:403)
    at org.eclipse.jetty.server.session.SessionHandler.do Scope(SessionHandler.java:184)
    at org.eclipse.jetty.server.handler.ContextHandler.do Scope(ContextHandler.java:864)
    at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:117)
    at org.eclipse.jetty.server.handler.ContextHandlerCol lection.handle(ContextHandlerCollection.java:247)
    at org.eclipse.jetty.server.handler.HandlerCollection .handle(HandlerCollection.java:151)
    at org.eclipse.jetty.server.handler.HandlerWrapper.ha ndle(HandlerWrapper.java:114)
    at org.eclipse.jetty.server.Server.handle(Server.java :352)
    at org.eclipse.jetty.server.HttpConnection.handleRequ est(HttpConnection.java:596)
    at org.eclipse.jetty.server.HttpConnection$RequestHan dler.headerComplete(HttpConnection.java:1051)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpPa rser.java:590)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(H ttpParser.java:212)
    at org.eclipse.jetty.server.HttpConnection.handle(Htt pConnection.java:426)
    at


    ...
    Caused by:

    org.codehaus.jackson.map.exc.UnrecognizedPropertyE xception: Unrecognized field "with" (Class org.springframework.social.facebook.api.Reference) , not marked as ignorable
    at [Source: org.apache.http.conn.EofSensorInputStream@3bed68; line: 1, column:

  • #2
    This is a known bug in M3 that should already be fixed in the latest snapshots. Give it a shot with the latest snapshot build and let us know if that fixes your problem. Thanks!

    Comment

    Working...
    X