Uploaded image for project: 'Spring Social Facebook'
  1. Spring Social Facebook
  2. SOCIALFB-197

User["video_upload_limits"] => Numeric value () out of range of int

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.1.RELEASE
    • Fix Version/s: 2.0.3.RELEASE
    • Component/s: API Binding
    • Labels:
      None

      Description

      FacebookTemplate fb = new FacebookTemplate(accessToken);
      fb.userOperations().getUserProfile(); =>

      org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Numeric value (2505397589) out of range of int
       at [Source: [email protected]; line: 1, column: 2568] (through reference chain: org.springframework.social.facebook.api.User["video_upload_limits"]->org.springframework.social.facebook.api.VideoUploadLimits["size"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Numeric value (2505397589) out of range of int
       at [Source: [email protected]; line: 1, column: 2568] (through reference chain: org.springframework.social.facebook.api.User["video_upload_limits"]->org.springframework.social.facebook.api.VideoUploadLimits["size"])
      	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:224)
      	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:208)
      	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:95)
      	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:599)
      	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:572)
      	at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:280)
      	at org.springframework.social.facebook.api.impl.FacebookTemplate.fetchObject(FacebookTemplate.java:214)
      	at org.springframework.social.facebook.api.impl.FacebookTemplate.fetchObject(FacebookTemplate.java:209)
      	at org.springframework.social.facebook.api.impl.UserTemplate.getUserProfile(UserTemplate.java:53)
      	at org.springframework.social.facebook.api.impl.UserTemplate.getUserProfile(UserTemplate.java:49)
      	at com.videoflot.marketplace.gui.component.LoginTabPanel$3.authSuccessful(LoginTabPanel.java:125)
      	at com.videoflot.marketplace.gui.social.OAuthPopupOpener$2.run(OAuthPopupOpener.java:92)
      	at com.vaadin.ui.UI.accessSynchronously(UI.java:1374)
      	at com.vaadin.ui.UI$3.run(UI.java:1440)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at com.vaadin.server.VaadinService.runPendingAccessTasks(VaadinService.java:1804)
      	at com.vaadin.server.VaadinSession.unlock(VaadinSession.java:1019)
      	at com.vaadin.server.VaadinService.ensureAccessQueuePurged(VaadinService.java:1768)
      	at com.vaadin.server.VaadinService.accessSession(VaadinService.java:1734)
      	at com.vaadin.server.VaadinSession.access(VaadinSession.java:1409)
      	at com.vaadin.ui.UI.access(UI.java:1437)
      	at com.videoflot.marketplace.gui.social.OAuthPopupOpener.fireAuthSuccessful(OAuthPopupOpener.java:88)
      	at com.videoflot.marketplace.gui.social.OAuthPopupOpener.access$0(OAuthPopupOpener.java:84)
      	at com.videoflot.marketplace.gui.social.OAuthPopupOpener$1.authSuccessful(OAuthPopupOpener.java:46)
      	at com.videoflot.marketplace.gui.social.OAuthData.fireSuccess(OAuthData.java:213)
      	at com.videoflot.marketplace.gui.social.OAuthData.setVerifier(OAuthData.java:152)
      	at com.videoflot.marketplace.gui.social.OAuthCallbackRequestHandler.handleRequest(OAuthCallbackRequestHandler.java:53)
      	at com.vaadin.server.communication.SessionRequestHandler.handleRequest(SessionRequestHandler.java:63)
      	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1408)
      	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:351)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: com.fasterxml.jackson.databind.JsonMappingException: Numeric value (2505397589) out of range of int
       at [Source: [email protected]; line: 1, column: 2568] (through reference chain: org.springframework.social.facebook.api.User["video_upload_limits"]->org.springframework.social.facebook.api.VideoUploadLimits["size"])
      	at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:210)
      	at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:177)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1474)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:463)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:376)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1099)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:294)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:131)
      	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
      	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:101)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
      	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3731)
      	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2808)
      	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:221)
      	... 52 more
      Caused by: com.fasterxml.jackson.core.JsonParseException: Numeric value (2505397589) out of range of int
       at [Source: [email protected]; line: 1, column: 2568]
      	at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1581)
      	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:533)
      	at com.fasterxml.jackson.core.base.ParserBase.convertNumberToInt(ParserBase.java:890)
      	at com.fasterxml.jackson.core.base.ParserBase._parseIntValue(ParserBase.java:828)
      	at com.fasterxml.jackson.core.base.ParserBase.getIntValue(ParserBase.java:656)
      	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:307)
      	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:287)
      	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:461)
      	... 63 more
      

        Attachments

          Activity

            People

            Assignee:
            habuma Craig Walls
            Reporter:
            luis.vesperi@gmail.com Luis Vesperi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: