magott / spring-social-yammer Goto Github PK
View Code? Open in Web Editor NEWThe Spring Social implementation for Yammer
Home Page: http://www.springsource.org/spring-social
License: Apache License 2.0
The Spring Social implementation for Yammer
Home Page: http://www.springsource.org/spring-social
License: Apache License 2.0
I am getting the following when authorizing
WARN : org.springframework.web.client.RestTemplate - POST request for "https://www.yammer.com/oauth2/access_token" resulted in 404 (Not Found); invoking error handler
DEBUG: org.apache.http.wire - << "3E[\r][\n]"
DEBUG: org.apache.http.wire - << "No Access Token, Request Token, or valid ROPC parameters found"
DEBUG: org.apache.http.wire - << "[\r][\n]"
DEBUG: org.apache.http.wire - << "0[\r][\n]"
DEBUG: org.apache.http.wire - << "[\r][\n]"
DEBUG: org.apache.http.impl.conn.BasicClientConnectionManager - Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@183ee75d
DEBUG: org.apache.http.impl.conn.BasicClientConnectionManager - Connection can be kept alive indefinitely
WARN : org.springframework.social.connect.web.ConnectSupport - HttpClientErrorException while completing connection: 404 Not Found
WARN : org.springframework.social.connect.web.ConnectSupport - Response body: No Access Token, Request Token, or valid ROPC parameters found
WARN : org.springframework.social.connect.web.ProviderSignInController - Exception while handling OAuth2 callback (404 Not Found). Redirecting to /signin
Is there something I am missing in my configuration?
Status updates are throwing exceptions:
org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized field "shares" (Class org.springframework.social.yammer.api
.YammerThread$ThreadStats), not marked as ignorable
at [Source: org.apache.http.conn.EofSensorInputStream@161f888; line: 1, column: 1193](through reference chain: org.springframework.social.yammer.api.ThreadStat
s["shares"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "shares" (Class org.springframework.social.yamme
r.api.YammerThread$ThreadStats), not marked as ignorable
at [Source: org.apache.http.conn.EofSensorInputStream@161f888; line: 1, column: 1193](through reference chain: org.springframework.social.yammer.api.ThreadStat
s["shares"])
at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:127)
at org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:153)
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:81)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:446)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:415)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:294)
at org.springframework.social.yammer.api.impl.MessageTemplate.postUpdate(MessageTemplate.java:97)
at org.springframework.social.yammer.api.impl.MessageTemplate.postUpdate(MessageTemplate.java:90)
We need to include
@JsonIgnoreProperties(ignoreUnknown=true)
above
abstract static class YammerThreadStatsMixin
please check-in a new class including ignore property.
Thank You
Satish Pandey
Hello,
I am using this package to connect yammer user accounts. It am able to connect the user account who created the application but for other users it's not working. Also if i remove the token from the connected account (same who created the application), i am not able to reconnect it.
I tried with POST/GET both but nothing works for me..
--------------------------------------------------------------------------- Sample Stack Trace ----------------------------------------------------
2012-Jun-20 16:41:24 WARN [http-8080-1] org.apache.http.impl.client.DefaultHttpClient:1095 - Authentication error: Unable to respond to any of these challenges: {}
2012-Jun-20 16:41:24 WARN [http-8080-1] org.springframework.web.client.RestTemplate:478 - GET request for "https://www.yammer.com/oauth2/access_token?client_id=zlFlQNVPwAL2EdBefl8Ow&client_secret=3aUo5FpsU8oDqYW24NQtEFxtBniMM14Gt6m7lT6Lcs&code=GA8HWbcqk461mWOk4uLcQ" resulted in 401 (Unauthorized); invoking error handler
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:63 - << "2e[\r][\n]"
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:77 - << "Code supplied does not match the Request Token"
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:63 - << "[\r][\n]"
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:63 - << "0[\r][\n]"
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:63 - << "[\r][\n]"
YammerMessage.LikedBy.Name now has a new field called user_id of type long which means the call to get messages fails when a message contains a likedBy.
Stacktrace :
Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "user_id" (Class org.springframework.social.yammer.api.YammerMessage$LikedBy$Name), not marked as ignorable
at [Source: org.apache.http.conn.EofSensorInputStream@681497b1; line: 1, column: 20048](through reference chain: org.springframework.social.yammer.api.Name["user_id"])
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.