I'm seeing a numberformatexception thrown from OAuthClientUtils when it is
trying to parse the expiration time for an access token generated by Google. 
Apparently it adds a leading space to the expiration time which causes the
parse to fail.  Any workarounds or should I just log a JIRA?

Thanks,
Jaime

Exception in thread "main" java.lang.NumberFormatException: For input
string: " 3600"
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Long.parseLong(Long.java:578)
        at java.lang.Long.valueOf(Long.java:803)
        at
org.apache.cxf.rs.security.oauth2.client.OAuthClientUtils.fromMapToClientToken(OAuthClientUtils.java:308)
        at
org.apache.cxf.rs.security.oauth2.client.OAuthClientUtils.getAccessToken(OAuthClientUtils.java:270)
        at
org.apache.cxf.rs.security.oauth2.client.OAuthClientUtils.getAccessToken(OAuthClientUtils.java:208)



--
View this message in context: 
http://cxf.547215.n5.nabble.com/NumberFormatException-with-OAuthClientUtils-and-Google-APIs-tp5757776.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to