You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
Hi,
When when perform a call to get the user network updates I got an NPE exception.
The stacktrace is:
java.lang.NullPointerException
at org.codehaus.jackson.node.TreeTraversingParser.<init>(TreeTraversingParser.java:72)
at org.codehaus.jackson.map.ObjectMapper.treeAsTokens(ObjectMapper.java:1717)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:2015)
at org.springframework.social.linkedin.api.impl.json.LinkedInNetworkUpdateListDeserializer.deserialize(LinkedInNetworkUpdateListDeserializer.java:88)
at org.springframework.social.linkedin.api.impl.json.LinkedInNetworkUpdateListDeserializer.deserialize(LinkedInNetworkUpdateListDeserializer.java:43)
at org.codehaus.jackson.map.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:217)
at org.codehaus.jackson.map.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:194)
at org.codehaus.jackson.map.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:30)
at org.codehaus.jackson.map.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:299)
at org.codehaus.jackson.map.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:905)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObjectUsingNonDefault(BeanDeserializer.java:739)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:683)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1923)
at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readJavaType(MappingJacksonHttpMessageConverter.java:166)
at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.read(MappingJacksonHttpMessageConverter.java:161)
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:94)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:496)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:465)
at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:236)
at org.springframework.social.linkedin.api.impl.NetworkUpdateTemplate.getNetworkUpdates(NetworkUpdateTemplate.java:141)
at org.springframework.social.linkedin.api.impl.NetworkUpdateTemplate.getNetworkUpdates(NetworkUpdateTemplate.java:98)
Debugging the code, I found the problem. The response sent by LinkedIn is invalid because doesn't have updateContent.
This is JSON response for update with problem:
Hi,
When when perform a call to get the user network updates I got an NPE exception.
The stacktrace is:
Debugging the code, I found the problem. The response sent by LinkedIn is invalid because doesn't have updateContent.
This is JSON response for update with problem:
In line 88 from LinkedInNetworkUpdateListDeserializer class, when jackson attempts to readValue from a null person, the NPE is raised.
This is an error in linkedin spring social or in linkedin?
Thanks
The text was updated successfully, but these errors were encountered: