averyregier / socialauth Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/socialauth
Automatically exported from code.google.com/p/socialauth
Hi
I have used the struts example given.
I am able to login into google and got the first name and profile info.
But I am getting error while getting contactlist. At the following line:
contactsList = provider.getContactList()
I am getting Null Pointer Exception
java.lang.NullPointerException
at com.dyuproject.oauth.HttpAuthTransport.getAuthHeaderValue(HttpAuthTransport.java:116)
at org.brickred.socialauth.provider.GoogleImpl.getContactList(GoogleImpl.java:257)
at com.auth.actions.SocialAuthSuccessAction.execute(SocialAuthSuccessAction.java:87)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:662)
I have configured the public IP and registered the domain name
(hurraah.co.in/socialauthdemo) and got the consumer secret key and made those
changes in oauth_consumer.properties file.
Kindly advise.
Original issue reported on code.google.com by [email protected]
on 15 Nov 2010 at 10:20
In the AuthProviderFactory.getInstance method, the oauth_consumer.properties
file is hard-coded:
Properties props = new Properties();
InputStream in =
AuthProviderFactory.class.getClassLoader().getResourceAsStream("oauth_consumer.p
roperties");
props.load(in);
We need to be able to test in a staging environment, so we need a separate
oauth_consumer.properties file with appropriate keys for our staging domain
name. But currently, there is no way to tell socialauth to use a separate
.properties file.
Could you please provide another getInstance method with a String parameter for
the properties file?
Original issue reported on code.google.com by [email protected]
on 28 Nov 2010 at 3:37
What steps will reproduce the problem?
1. Trying to retrieve my Yahoo user Profile and contact list
2. I have successfully retrieved my user profile and i see it on my test jsp
3. Retrieving my yahoo contact list throws an exception
StackTrace:
org.brickred.socialauth.exception.ServerDataException: Failed to parse the
contacts from
response.http://social.yahooapis.com/v1/user/............../contacts;count=max
at org.brickred.socialauth.provider.YahooImpl.getContactList(YahooImpl.java:352)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Server returned HTTP response code: 401 for
URL: http://social.yahooapis.com/v1/user/................/contacts;count=max
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
at com.dyuproject.util.http.SimpleHttpConnector$HttpURLConnectionWrapper.getInputStream(SimpleHttpConnector.java:548)
at org.brickred.socialauth.provider.YahooImpl.getContactList(YahooImpl.java:339)
-- -------------------------------------------------
I am using the latest socialauth-1.0-beta1.jar file.
I am able to retrieve contact list for gmail, linkedin, facebook etc
Also, is the implementation for AOL API complete (AolImpl), the reason i ask is
because i see localhost:8080 hardcoded in getContactList()
public List<Contact> getContactList() {
..............
..............
URL connURL = new URL(u);
HttpURLConnection urlConn = (HttpURLConnection) connURL.openConnection();
urlConn.setRequestProperty("referer","http://localhost:8080/AuthApp/");
StringBuffer responseBuf = new StringBuffer();
return plist;
................
.............
}
Original issue reported on code.google.com by [email protected]
on 6 Jan 2011 at 9:01
What steps will reproduce the problem?
1. When an user clicked "no thanks" of Google and HotMail.
What is the expected output? What do you see instead?
I see a "SocialAuthException" exception.
What version of the product are you using? On what operating system?
Last version. Linux.
Please provide any additional information below.
How do I solve this issue? Should I use just try/catch block?
Thanks,
Chka
Original issue reported on code.google.com by [email protected]
on 31 Jan 2011 at 10:54
Hi
thanks for your great opensource work: socialauth
here is my problem:
i’m trying socialauth project to login via hotmail account, everything ok
before return back from hotmail
i can see the parameters hotmail has passed to my url
but when invoke this code (below)
Profile p = provider.verifyResponse(request);
i get an exception , the stack is:
java.lang.NullPointerException
at org.brickred.socialauth.provider.HotmailImpl.verifyResponse(HotmailImpl.java:96)
at org.apache.jsp.test.openid_jsp._jspService(openid_jsp.java:61)
why this exception happy, can you give me some suggestions ?
my website http://www.oschina.net is now using jopenid , but it only support
gmail and yahoo, if socialauth passed my test, it’s perfect !
BTW: i try your demo http://opensource.brickred.com/socialauthdemo/
login ok,but nothing display in the success page.
Winter Lau
[email protected]
Original issue reported on code.google.com by [email protected]
on 10 Nov 2010 at 8:44
What steps will reproduce the problem?
1. Select Gmail as provider
2. Login using gmail
3. Copy the URl in any editor and change the user details
parameter(Email,firstname etc.)
What is the expected output? What do you see instead?
The changed data is returned to user, which should not happen as the data is
tampered by someone
What version of the product are you using? On what operating system?
XP SP2 ,Alpha Release
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 22 Dec 2010 at 6:03
Trying to use the factory getInstance method where I supply the properties
filename...
AuthProvider provider = AuthProviderFactory.getInstance("yahoo",
"oath_zh.properties");
It works with google and hotmail... but yahoo is failing with the following
error:
"oauth_consumer.properties not found in the classpath."
com.dyuproject.oauth.Consumer.newInstance(Consumer.java:75)
com.dyuproject.oauth.Consumer.getInstance(Consumer.java:62)
org.brickred.socialauth.provider.YahooImpl.(YahooImpl.java:114)
org.brickred.socialauth.AuthProviderFactory.getProvider(AuthProviderFactory.java
:115)
org.brickred.socialauth.AuthProviderFactory.getInstance(AuthProviderFactory.java
:92)
...
Original issue reported on code.google.com by [email protected]
on 6 Jan 2011 at 4:11
Hi, on entering the SVN url in subclipse, am getting this error :
RA layer request failed
svn: PROPFIND request failed on '/svn/trunk'
svn: PROPFIND of '/svn/trunk': 400 Bad Request
(http://socialauth.googlecode.com)
What can be done?
Regards,
Yudhajit
Original issue reported on code.google.com by [email protected]
on 15 Nov 2010 at 6:49
Intermittently when logging in using Yahoo it would fail. I would receive the
following stacktrace in the logs when using YahooImpl.java v132
org.brickred.socialauth.exception.SocialAuthException: Failed to retrieve the
user profile from
http://social.yahooapis.com/v1/user/VLRBLTDPUM3DKFNMIXMAI2YNVU<!--
oauth02.member.re3.yahoo.com uncompressed/chunked Mon Jan 17 11:07:02 PST 2011
-->
/profile?format=json. Staus :404
at org.brickred.socialauth.provider.YahooImpl.getUserProfile(YahooImpl.java:224)
at org.brickred.socialauth.provider.YahooImpl.verifyResponse(YahooImpl.java:191)
The issue is caused because of the lines 204 and 205
String url = String.format(PROFILE_URL, token
.getAttribute("xoauth_yahoo_guid"));
For some reason token.getAttribute("xoauth_yahoo_guid") intermittently returns
a comment of "<!-- oauth02.member.re3.yahoo.com uncompressed/chunked Mon Jan 17
11:07:02 PST 2011 -->" along with the xoauth_yahoo_guid. Therefore lines 204
and 205 create a malformed url (see below) which results in a http status 404
(Not Found)
http://social.yahooapis.com/v1/user/VLRBLTDPUM3DKFNMIXMAI2YNVU<!--
oauth02.member.re3.yahoo.com uncompressed/chunked Mon Jan 17 11:07:02 PST 2011
-->
/profile?format=json
The following is a patch for YahooImpl.java v132 lines 204 and 205 that fixes
this issue.
String guid = (String) token.getAttribute("xoauth_yahoo_guid");
if (guid.indexOf("<") != -1)
{
guid = guid.substring(0, guid.indexOf("<")).trim();
}
String url = String.format(PROFILE_URL, guid);
Original issue reported on code.google.com by [email protected]
on 18 Jan 2011 at 11:13
It would be nice if socialauth could be used in spring applications.
For that, integration with spring-security is really helpful.
best,
milan
Original issue reported on code.google.com by [email protected]
on 31 Oct 2010 at 4:49
I'm interested in this project.
Extra functionality I would like would be integration with LinkedIN and posting
to Facebook, Twitter, and LinkedIN walls. Since I am building an application
that will be doing these things, I am likely to be able to contibute as we move
ahead.
Thanks,
Nick Saparoff
ByteSphere Technologies
[email protected]
Original issue reported on code.google.com by [email protected]
on 28 Oct 2010 at 10:33
Step by step documentation for building a seam application using socialauth to
be uploaded on the wiki
Original issue reported on code.google.com by [email protected]
on 8 Oct 2010 at 2:07
When calling getContactList() on the Hotmail provider I get a SAXParseException
when I sign in using my Hotmail account. But if I use my wife's Hotmail
account, everything works fine.
I have 2 contacts in my account while my wife has 52, not sure if that makes a
difference or not. I can export the contacts to CSV and email them to you if
you'd like.
Here is the exception I get when using my Hotmail account:
org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:253)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
at org.brickred.socialauth.util.XMLParseUtil.loadXmlResource(XMLParseUtil.java:143)
at org.brickred.socialauth.provider.HotmailImpl.getContactList(HotmailImpl.java:121)
at com.pongr.snippet.ImportContacts$.getContacts(Invite.scala:87)
at com.pongr.snippet.ImportContacts$.hotmail(Invite.scala:78)
at com.pongr.snippet.ImportContacts$$anonfun$hotmailMenu$1.apply(Invite.scala:79)
at com.pongr.snippet.ImportContacts$$anonfun$hotmailMenu$1.apply(Invite.scala:79)
at net.liftweb.sitemap.Loc$$anonfun$paramTemplate$1.apply(Loc.scala:196)
at net.liftweb.sitemap.Loc$$anonfun$paramTemplate$1.apply(Loc.scala:195)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:227)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:227)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:227)
at scala.collection.immutable.List.flatMap(List.scala:45)
at net.liftweb.sitemap.Loc$class.paramTemplate(Loc.scala:195)
at net.liftweb.sitemap.Loc$UnitLoc.paramTemplate(Loc.scala:343)
at net.liftweb.sitemap.Loc$class.template(Loc.scala:206)
at net.liftweb.sitemap.Loc$UnitLoc.template(Loc.scala:343)
at net.liftweb.http.LiftSession$$anonfun$locTemplate$1.apply(LiftSession.scala:538)
at net.liftweb.http.LiftSession$$anonfun$locTemplate$1.apply(LiftSession.scala:537)
at net.liftweb.common.Full.flatMap(Box.scala:400)
at net.liftweb.http.LiftSession.locTemplate(LiftSession.scala:537)
at net.liftweb.http.LiftSession$$anonfun$16$$anonfun$apply$35$$anonfun$apply$38.apply(LiftSession.scala:598)
at net.liftweb.http.LiftSession$$anonfun$16$$anonfun$apply$35$$anonfun$apply$38.apply(LiftSession.scala:598)
at net.liftweb.common.EmptyBox.or(Box.scala:467)
at net.liftweb.http.LiftSession$$anonfun$16$$anonfun$apply$35.apply(LiftSession.scala:597)
at net.liftweb.http.LiftSession$$anonfun$16$$anonfun$apply$35.apply(LiftSession.scala:597)
at net.liftweb.util.StackableMaker$class.doWith(Maker.scala:141)
at net.liftweb.http.Factory$FactoryMaker.doWith(Factory.scala:37)
at net.liftweb.util.StackableMaker$class.doWith(Maker.scala:135)
at net.liftweb.http.Factory$FactoryMaker.doWith(Factory.scala:37)
at net.liftweb.http.LiftSession$$anonfun$16.apply(LiftSession.scala:596)
at net.liftweb.http.LiftSession$$anonfun$16.apply(LiftSession.scala:591)
at net.liftweb.common.EmptyBox.or(Box.scala:467)
at net.liftweb.http.LiftSession.processRequest(LiftSession.scala:591)
at net.liftweb.http.LiftServlet.net$liftweb$http$LiftServlet$$dispatchStatefulRequest(LiftServlet.scala:285)
at net.liftweb.http.LiftServlet$$anonfun$3.apply(LiftServlet.scala:188)
at net.liftweb.http.LiftServlet$$anonfun$3.apply(LiftServlet.scala:188)
at net.liftweb.http.S$.net$liftweb$http$S$$wrapQuery(S.scala:1041)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1$$anonfun$apply$28.apply(S.scala:1181)
at net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:978)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$doAround$1.apply(S.scala:979)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13.recurseMe$1(DB.scala:197)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13$$anonfun$recurseMe$1$1.apply(DB.scala:204)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13$$anonfun$recurseMe$1$1.apply(DB.scala:204)
at net.liftweb.mapper.DB$$anonfun$use$1.apply(DB.scala:585)
at net.liftweb.util.DynoVar$class.run(ThreadGlobal.scala:95)
at net.liftweb.mapper.DB$currentConn$.run(DB.scala:572)
at net.liftweb.mapper.DB$.use(DB.scala:582)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13.recurseMe$1(DB.scala:204)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13.apply(DB.scala:206)
at net.liftweb.util.DynoVar$class.run(ThreadGlobal.scala:95)
at net.liftweb.mapper.DB$$anon$1$DepthCnt$.run(DB.scala:187)
at net.liftweb.mapper.DB$$anon$1.apply(DB.scala:190)
at net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:979)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$doAround$1.apply(S.scala:979)
at net.liftweb.mapper.MetaProtoExtendedSession$myWrapper$.apply(ProtoExtendedSession.scala:81)
at net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:979)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1.apply(S.scala:1179)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$.net$liftweb$http$S$$_nest2InnerInit(S.scala:1178)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$30$$anonfun$apply$31$$anonfun$apply$32$$anonfun$apply$33.apply(S.scala:1204)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$.withReq(S.scala:1213)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$30$$anonfun$apply$31$$anonfun$apply$32.apply(S.scala:1203)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$30$$anonfun$apply$31.apply(S.scala:1202)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$30.apply(S.scala:1201)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1.apply(S.scala:1200)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$.net$liftweb$http$S$$_innerInit(S.scala:1199)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40$$anonfun$apply$41$$anonfun$apply$42$$anonfun$apply$43$$anonfun$apply$44.apply(S.scala:1253)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40$$anonfun$apply$41$$anonfun$apply$42$$anonfun$apply$43.apply(S.scala:1251)
at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:329)
at net.liftweb.http.RequestVarHandler$.apply(Vars.scala:250)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40$$anonfun$apply$41$$anonfun$apply$42.apply(S.scala:1250)
at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:329)
at net.liftweb.http.TransientRequestVarHandler$.apply(Vars.scala:254)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40$$anonfun$apply$41.apply(S.scala:1249)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40.apply(S.scala:1248)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$_init$1.apply(S.scala:1247)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$._init(S.scala:1246)
at net.liftweb.http.S$.init(S.scala:886)
at net.liftweb.http.LiftServlet.doService(LiftServlet.scala:187)
at net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply$mcZ$sp(LiftServlet.scala:86)
at net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:86)
at net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:86)
at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:326)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:34)
at net.liftweb.util.TimeHelpers$class.logTime(TimeHelpers.scala:335)
at net.liftweb.util.Helpers$.logTime(Helpers.scala:34)
at net.liftweb.http.LiftServlet.doIt$1(LiftServlet.scala:85)
at net.liftweb.http.LiftServlet.service(LiftServlet.scala:93)
at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply$mcV$sp(HTTPProvider.scala:61)
at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply(HTTPProvider.scala:61)
at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply(HTTPProvider.scala:61)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.URLRewriter$.doWith(Req.scala:618)
at net.liftweb.http.provider.HTTPProvider$class.service(HTTPProvider.scala:60)
at net.liftweb.http.LiftFilter.service(LiftServlet.scala:586)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ServletFilterProvider.scala:67)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply(ServletFilterProvider.scala:62)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply(ServletFilterProvider.scala:62)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12$$anonfun$apply$13.apply(Vars.scala:335)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12.apply(Vars.scala:334)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11.apply(Vars.scala:333)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10.apply(Vars.scala:332)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:331)
at net.liftweb.http.RequestVarHandler$.apply(Vars.scala:250)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply$mcV$sp(ServletFilterProvider.scala:61)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply(ServletFilterProvider.scala:61)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply(ServletFilterProvider.scala:61)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12$$anonfun$apply$13.apply(Vars.scala:335)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12.apply(Vars.scala:334)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11.apply(Vars.scala:333)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10.apply(Vars.scala:332)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:331)
at net.liftweb.http.TransientRequestVarHandler$.apply(Vars.scala:254)
at net.liftweb.http.provider.servlet.ServletFilterProvider$class.doFilter(ServletFilterProvider.scala:60)
at net.liftweb.http.LiftFilter.doFilter(LiftServlet.scala:586)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)
Original issue reported on code.google.com by [email protected]
on 8 Nov 2010 at 2:19
Below is the url I am able to get for facebook.
https://graph.facebook.com/oauth/authenticate?client_id=109414925795385&display=
page&redirect_uri=https://imag.apere.com/socialAuthSuccessAction.do&scope=publis
h_stream,email,user_birthday,user_location
on urlsubmit :{
"error": {
"type": "OAuthException",
"message": "Unknown OAuth 2.0 method, authenticate."
}
}
It is giving the above error.
graph.facebook.com.consumer_key =109414925795385
graph.facebook.com.consumer_secret =4e924dfd58ea84122ca0af1b1a171822
graph.facebook.com.secure = true
graph.facebook.com.request_token_url = /oauth/access_token
graph.facebook.com.authorization_url = /oauth/authenticate
graph.facebook.com.access_token_url = /me
graph.facebook.com.signature_method = HMAC-SHA1
graph.facebook.com.transport_name = GET
These are the properties added in oauth_consumer.properties
in this flag
oauth.consumer.endpoint.domains=graph.facebook.com
May I know what are the mistakes doing.
Thanks in advance.
Original issue reported on code.google.com by [email protected]
on 26 Nov 2010 at 7:48
Thanks for your help the case of facebook is working fine for me.
And facing problem with yahoo.Giving the loginredirection url= null;
public String getLoginRedirectURL(final String returnTo) throws IOException {
try {
token = new Token(__yahoo.getConsumerKey());
UrlEncodedParameterMap params = new UrlEncodedParameterMap().add(
Constants.OAUTH_CALLBACK, returnTo);
Response r = __consumer.fetchToken(__yahoo, params,
TokenExchange.REQUEST_TOKEN, token);
if (r.getStatus() == 200 && token.getState() == Token.UNAUTHORIZED) {
// unauthorized request token
StringBuilder urlBuffer = Transport.buildAuthUrl(__yahoo
.getAuthorizationUrl(), token, returnTo);
return urlBuffer.toString();
}
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
In the above method I am getting r.getStatus()= 401
in the properties file I have given the data as follows
api.login.yahoo.com.consumer_key=API Key (OAuth consumer key)
api.login.yahoo.com.consumer_secret=Shared Secret
Are they correct or not.
Original issue reported on code.google.com by [email protected]
on 29 Nov 2010 at 12:00
I am trying socialauth with facebook and it is not working.
Following could be the reasons:
On the link given for facebook, I have added my domain url everything.
It added an application in app.facebook.com and I have got three things:
Application ID
API Key
Application Secret
Now in the oauth_consumer.properties,
graph.facebook.com.consumer_key should be (Application ID or API Key)?
I tried with both and it ain't working.
Facebook is showing me the application home page where
directory status:Not Submitted, Do I need to submit it first.
While submitting it says application should have more than 5 users.
Does t need to be completed first.
While adding my domain, facebook asked for terms and conditions page and
policies page which I have not created yet. Could that be the issue?
In my server logs, I can't see any logs.
I am sorry I am bugging you guys with own development issues. But I am not
getting help from anywhere else.
Please suggest.
Original issue reported on code.google.com by [email protected]
on 18 Nov 2010 at 7:36
I am using the latest socialauth-1.0-beta1.jar file.
Is the implementation for AOL API complete (AolImpl), the reason i ask is
because i see localhost:8080 hardcoded in the source code for getContactList()
public List<Contact> getContactList() {
..............
..............
URL connURL = new URL(u);
HttpURLConnection urlConn = (HttpURLConnection) connURL.openConnection();
urlConn.setRequestProperty("referer","http://localhost:8080/AuthApp/");
StringBuffer responseBuf = new StringBuffer();
return plist;
................
.............
}
Thanks
deepak
Original issue reported on code.google.com by [email protected]
on 6 Jan 2011 at 9:52
What steps will reproduce the problem?
1. Redirect to Gmail provider.getLoginRedirectURL(returnUrl)
2. In returnUrl handler: call provider.verifyResponse(request)
3. Then call provider.getContactList()
4. NullPointerException is thrown
What is the expected output? What do you see instead?
Expected output is a List<Profile> but instead I get a NullPointerException:
java.lang.NullPointerException
at com.dyuproject.oauth.HttpAuthTransport.getAuthHeaderValue(HttpAuthTransport.java:116)
at org.brickred.socialauth.provider.GoogleImpl.getContactList(GoogleImpl.java:257)
at com.pongr.snippet.ImportContacts$.getContacts(Invite.scala:87)
at com.pongr.snippet.ImportContacts$.gmail(Invite.scala:61)
at com.pongr.snippet.ImportContacts$$anonfun$gmailMenu$1.apply(Invite.scala:59)
at com.pongr.snippet.ImportContacts$$anonfun$gmailMenu$1.apply(Invite.scala:59)
at net.liftweb.sitemap.Loc$$anonfun$paramTemplate$1.apply(Loc.scala:196)
at net.liftweb.sitemap.Loc$$anonfun$paramTemplate$1.apply(Loc.scala:195)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:227)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:227)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:227)
at scala.collection.immutable.List.flatMap(List.scala:45)
at net.liftweb.sitemap.Loc$class.paramTemplate(Loc.scala:195)
at net.liftweb.sitemap.Loc$UnitLoc.paramTemplate(Loc.scala:343)
at net.liftweb.sitemap.Loc$class.template(Loc.scala:206)
at net.liftweb.sitemap.Loc$UnitLoc.template(Loc.scala:343)
at net.liftweb.http.LiftSession$$anonfun$locTemplate$1.apply(LiftSession.scala:538)
at net.liftweb.http.LiftSession$$anonfun$locTemplate$1.apply(LiftSession.scala:537)
at net.liftweb.common.Full.flatMap(Box.scala:400)
at net.liftweb.http.LiftSession.locTemplate(LiftSession.scala:537)
at net.liftweb.http.LiftSession$$anonfun$16$$anonfun$apply$35$$anonfun$apply$38.apply(LiftSession.scala:598)
at net.liftweb.http.LiftSession$$anonfun$16$$anonfun$apply$35$$anonfun$apply$38.apply(LiftSession.scala:598)
at net.liftweb.common.EmptyBox.or(Box.scala:467)
at net.liftweb.http.LiftSession$$anonfun$16$$anonfun$apply$35.apply(LiftSession.scala:597)
at net.liftweb.http.LiftSession$$anonfun$16$$anonfun$apply$35.apply(LiftSession.scala:597)
at net.liftweb.util.StackableMaker$class.doWith(Maker.scala:141)
at net.liftweb.http.Factory$FactoryMaker.doWith(Factory.scala:37)
at net.liftweb.util.StackableMaker$class.doWith(Maker.scala:135)
at net.liftweb.http.Factory$FactoryMaker.doWith(Factory.scala:37)
at net.liftweb.http.LiftSession$$anonfun$16.apply(LiftSession.scala:596)
at net.liftweb.http.LiftSession$$anonfun$16.apply(LiftSession.scala:591)
at net.liftweb.common.EmptyBox.or(Box.scala:467)
at net.liftweb.http.LiftSession.processRequest(LiftSession.scala:591)
at net.liftweb.http.LiftServlet.net$liftweb$http$LiftServlet$$dispatchStatefulRequest(LiftServlet.scala:285)
at net.liftweb.http.LiftServlet$$anonfun$3.apply(LiftServlet.scala:188)
at net.liftweb.http.LiftServlet$$anonfun$3.apply(LiftServlet.scala:188)
at net.liftweb.http.S$.net$liftweb$http$S$$wrapQuery(S.scala:1041)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1$$anonfun$apply$28.apply(S.scala:1181)
at net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:978)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$doAround$1.apply(S.scala:979)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13.recurseMe$1(DB.scala:197)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13$$anonfun$recurseMe$1$1.apply(DB.scala:204)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13$$anonfun$recurseMe$1$1.apply(DB.scala:204)
at net.liftweb.mapper.DB$$anonfun$use$1.apply(DB.scala:585)
at net.liftweb.util.DynoVar$class.run(ThreadGlobal.scala:95)
at net.liftweb.mapper.DB$currentConn$.run(DB.scala:572)
at net.liftweb.mapper.DB$.use(DB.scala:582)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13.recurseMe$1(DB.scala:204)
at net.liftweb.mapper.DB$$anon$1$$anonfun$apply$13.apply(DB.scala:206)
at net.liftweb.util.DynoVar$class.run(ThreadGlobal.scala:95)
at net.liftweb.mapper.DB$$anon$1$DepthCnt$.run(DB.scala:187)
at net.liftweb.mapper.DB$$anon$1.apply(DB.scala:190)
at net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:979)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$doAround$1.apply(S.scala:979)
at net.liftweb.mapper.MetaProtoExtendedSession$myWrapper$.apply(ProtoExtendedSession.scala:81)
at net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:979)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1.apply(S.scala:1179)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$.net$liftweb$http$S$$_nest2InnerInit(S.scala:1178)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$30$$anonfun$apply$31$$anonfun$apply$32$$anonfun$apply$33.apply(S.scala:1204)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$.withReq(S.scala:1213)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$30$$anonfun$apply$31$$anonfun$apply$32.apply(S.scala:1203)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$30$$anonfun$apply$31.apply(S.scala:1202)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$30.apply(S.scala:1201)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1.apply(S.scala:1200)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$.net$liftweb$http$S$$_innerInit(S.scala:1199)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40$$anonfun$apply$41$$anonfun$apply$42$$anonfun$apply$43$$anonfun$apply$44.apply(S.scala:1253)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40$$anonfun$apply$41$$anonfun$apply$42$$anonfun$apply$43.apply(S.scala:1251)
at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:329)
at net.liftweb.http.RequestVarHandler$.apply(Vars.scala:250)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40$$anonfun$apply$41$$anonfun$apply$42.apply(S.scala:1250)
at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:329)
at net.liftweb.http.TransientRequestVarHandler$.apply(Vars.scala:254)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40$$anonfun$apply$41.apply(S.scala:1249)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$40.apply(S.scala:1248)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$$anonfun$_init$1.apply(S.scala:1247)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.S$._init(S.scala:1246)
at net.liftweb.http.S$.init(S.scala:886)
at net.liftweb.http.LiftServlet.doService(LiftServlet.scala:187)
at net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply$mcZ$sp(LiftServlet.scala:86)
at net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:86)
at net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:86)
at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:326)
at net.liftweb.util.Helpers$.calcTime(Helpers.scala:34)
at net.liftweb.util.TimeHelpers$class.logTime(TimeHelpers.scala:335)
at net.liftweb.util.Helpers$.logTime(Helpers.scala:34)
at net.liftweb.http.LiftServlet.doIt$1(LiftServlet.scala:85)
at net.liftweb.http.LiftServlet.service(LiftServlet.scala:93)
at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply$mcV$sp(HTTPProvider.scala:61)
at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply(HTTPProvider.scala:61)
at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply(HTTPProvider.scala:61)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.URLRewriter$.doWith(Req.scala:618)
at net.liftweb.http.provider.HTTPProvider$class.service(HTTPProvider.scala:60)
at net.liftweb.http.LiftFilter.service(LiftServlet.scala:586)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ServletFilterProvider.scala:67)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply(ServletFilterProvider.scala:62)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply(ServletFilterProvider.scala:62)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12$$anonfun$apply$13.apply(Vars.scala:335)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12.apply(Vars.scala:334)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11.apply(Vars.scala:333)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10.apply(Vars.scala:332)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:331)
at net.liftweb.http.RequestVarHandler$.apply(Vars.scala:250)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply$mcV$sp(ServletFilterProvider.scala:61)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply(ServletFilterProvider.scala:61)
at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply(ServletFilterProvider.scala:61)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12$$anonfun$apply$13.apply(Vars.scala:335)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12.apply(Vars.scala:334)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10$$anonfun$apply$11.apply(Vars.scala:333)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$10.apply(Vars.scala:332)
at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:331)
at net.liftweb.http.TransientRequestVarHandler$.apply(Vars.scala:254)
at net.liftweb.http.provider.servlet.ServletFilterProvider$class.doFilter(ServletFilterProvider.scala:60)
at net.liftweb.http.LiftFilter.doFilter(LiftServlet.scala:586)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)
What version of the product are you using? On what operating system?
Whichever version of socialauth is available for download. Using socialauth in
a Lift 2.1 web app, with Scala 2.8.0. Ubuntu 10.04, java -version produces:
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.2) (6b18-1.8.2-4ubuntu2)
OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 8 Nov 2010 at 2:01
one more doubt how to manage facebook like yahoo and google in case of
openid.
I am able to redirect to yahoo and google using openid.
I guess i need to add an entry for the facebook
in openid-providers.properties file.
if yes what are those.
Original issue reported on code.google.com by [email protected]
on 12 Nov 2010 at 10:04
What steps will reproduce the problem?
1. Using your sample code:
String returnToUrl =
"http://opensource.brickred.com/socialauthdemo/socialAuthSuccessAction.do";
String url = provider.getLoginRedirectURL(returnToUrl);
2. The geneated URL changes the return url "http://opensource.brickred.com/" by
"http%3A%2F%2Fopensource.brickred.com%2F"
3. Hotmail doesn't recognize the URL like a valid URL and throws the error:
2010 =ReturnURLNotValidEvent
What is the expected output? What do you see instead?
The expected output is a not encoded URL.
What version of the product are you using? On what operating system?
Version Oct 04 2010. Windows XP
Please provide any additional information below.
For solve this I need to use a URLDecoder.decode and other tricks.
Original issue reported on code.google.com by [email protected]
on 25 Oct 2010 at 11:07
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Nov 2010 at 11:24
Hi, Im getting the following error on trying Twitter (Facebook successful).
Have entered correct keys on properties files and have authorized localhost on
twitter.
10:04:11,390 INFO [STDOUT] TwitterException{statusCode=401, retryAfter=0,
rateLimitStatus=null}
10:04:11,390 INFO [STDOUT] at
twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:301)
10:04:11,390 INFO [STDOUT] at
twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:68)
10:04:11,390 INFO [STDOUT] at
twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:99)
10:04:11,390 INFO [STDOUT] at
twitter4j.http.OAuthAuthorization.getOAuthRequestToken(OAuthAuthorization.java:1
21)
10:04:11,390 INFO [STDOUT] at
twitter4j.Twitter.getOAuthRequestToken(Twitter.java:1605)
10:04:11,421 INFO [STDOUT] at
org.brickred.socialauth.provider.TwitterImpl.getLoginRedirectURL(TwitterImpl.jav
a:78)
10:04:11,421 INFO [STDOUT] at
com.auth.actions.SocialAuthenticationAction.execute(SocialAuthenticationAction.j
ava:85)
10:04:11,421 INFO [STDOUT] at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.
java:419)
10:04:11,421 INFO [STDOUT] at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
10:04:11,421 INFO [STDOUT] at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
10:04:11,421 INFO [STDOUT] at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
10:04:11,421 INFO [STDOUT] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
10:04:11,421 INFO [STDOUT] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:252)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:173)
10:04:11,421 INFO [STDOUT] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:8
1)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:202)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:173)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
13)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
78)
10:04:11,421 INFO [STDOUT] at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.j
ava:39)
10:04:11,421 INFO [STDOUT] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociatio
nValve.java:153)
10:04:11,421 INFO [STDOUT] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107
)
10:04:11,421 INFO [STDOUT] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
10:04:11,421 INFO [STDOUT] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
10:04:11,421 INFO [STDOUT] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:744)
10:04:11,421 INFO [STDOUT] at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:52
7)
10:04:11,421 INFO [STDOUT] at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.j
ava:112)
10:04:11,421 INFO [STDOUT] at java.lang.Thread.run(Thread.java:619)
10:04:11,421 INFO [SocialAuthenticationAction] Redirecting to: null
Regards,
Yudhajit
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 4:37
graph.facebook.com.consumer_key =d64f15439a656fc340cf2723e753e672
graph.facebook.com.consumer_secret = a7d519bf1b96ed6a05afa5c807111ad8
are they correct keys.
Thanks in advance
Original issue reported on code.google.com by [email protected]
on 25 Nov 2010 at 11:32
Hi,
Have implemented facebook locally so far. Need example on how to logout and end facebook session. The demo doesnt have logout action?
Thanks and Regards,
Yudhajit
Original issue reported on code.google.com by [email protected]
on 16 Nov 2010 at 1:46
What steps will reproduce the problem?
1. register application with yahoo
2. take authentication information (key/secret) and place in properties file
3. verify the application URL is the same as the URL the application will run
4. Using the demo, click on the yahoo icon to launch the authentication screen
What is the expected output? What do you see instead?
The expected output would be the username/password screen for yahoo. Instead I
receive the following error
org.brickred.socialauth.exception.SocialAuthConfigurationException: Application
keys are not correct. The server running the application should be same that
was registered to get the keys.
What version of the product are you using? On what operating system?
beta1/windows
Please provide any additional information below.
I do have two domains set up in yahoo - domain 1 is (as an example) --
www.testing.com
and domain 2 is
fun.testing.com
domain 1 does work but domain 2 does not... I do need to get both functional
thank you
Original issue reported on code.google.com by [email protected]
on 15 Feb 2011 at 4:44
Please create a provider for FourSquare
Original issue reported on code.google.com by [email protected]
on 17 Jan 2011 at 11:57
Need to add a function in all providers that will allow applications to import
birthdays of your friends.
Original issue reported on code.google.com by [email protected]
on 8 Oct 2010 at 2:08
1. Please have a look at the attached servlet and JSP.
When I deploy it on server. Following is the what i get:
Inside ----- doGet() :google
Inside ------------------- Google yahoo if ----- :google
Exception occured ----
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at org.brickred.socialauth.AuthProviderFactory.getInstance(AuthProviderFactory.java:72)
at jopenid.sample.SocialAuthOpenIdServlet.doGet(SocialAuthOpenIdServlet.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.jav
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:1
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.jav
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
What version of the product are you using? On what operating system?
I am trying to run it on JBOSS server in windows system.
Kindly let me know if other info is required from my side.
Original issue reported on code.google.com by [email protected]
on 2 Nov 2010 at 7:48
Attachments:
Not everyone uses Seam and they should know that seam is used to do some
stuff...If this is important etcit should be mentioned just so readers can find
out early on before they are stuck.
Original issue reported on code.google.com by [email protected]
on 30 Oct 2010 at 8:36
Upon successful login using YahooImpl.java v132 the Profile ValidatedId is not
populated. Attached is a fixed version that populates Profile ValidatedId from
the json response by adding the following lines to YahooImpl.java v132
if (pObj.has("guid")) {
profile.setValidatedId(pObj.getString("guid"));
}
Original issue reported on code.google.com by [email protected]
on 18 Jan 2011 at 11:17
Attachments:
What steps will reproduce the problem?
1. AuthProvider provider = AuthProviderFactory.getInstance("yahoo");
2. String url = provider.getLoginRedirectURL(returnUrl);
What is the expected output? What do you see instead?
Should have returned a URL for redirect to yahoo... but instead is calling for
aol properties. When I provide aol settings (copied from yahoo's), it returns
null for the url.
Original issue reported on code.google.com by [email protected]
on 5 Jan 2011 at 2:42
What steps will reproduce the problem?
1. Import Contacts from Gooogle
2.
3.
What is the expected output? What do you see instead?
Contacts with First Name and Last Name populated.
What version of the product are you using? On what operating system?
Please provide any additional information below.
First Name and Last Name are missing for the Contacts that were imported from
Google.
I see that the code is not setting the values for fName, lName in
GoogleProviderImpl.
Original issue reported on code.google.com by [email protected]
on 11 Feb 2011 at 7:05
What steps will reproduce the problem?
1. go to http://www.lsnet.in/contactswar/
2. click on Import From Yahoo!
3. after validating e-mail id and pwd. u'll see the exception on server.
STACK TRACE:
17:19:05,943 ERROR [STDERR] java.lang.NullPointerException
17:19:05,943 ERROR [STDERR] at
org.jboss.logging.util.LoggerStream.println(LoggerStream.java:100)
17:19:05,943 ERROR [STDERR] at ImportContact.doPost(ImportContact.java:47)
17:19:05,943 ERROR [STDERR] at ImportContact.doGet(ImportContact.java:79)
17:19:05,943 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
17:19:05,943 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
17:19:05,943 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
17:19:05,943 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
17:19:05,943 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:9
6)
17:19:05,943 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
17:19:05,943 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
17:19:05,943 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
30)
17:19:05,943 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
17:19:05,943 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociatio
nValve.java:179)
17:19:05,943 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
17:19:05,944 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
17:19:05,944 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
17:19:05,944 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionVa
lve.java:157)
17:19:05,944 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
17:19:05,944 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
17:19:05,944 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
17:19:05,944 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:580)
17:19:05,944 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
17:19:05,944 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
I'm using latest socialauth jar available on linux operating system with jboss
server.
Moreover same code is working with gmail.
Please tell me where i'm going wrong.
Original issue reported on code.google.com by [email protected]
on 24 Jan 2011 at 12:08
Attachments:
I have followed the way you asked me to do.
I got the provider object from the session.Even though no result.
For your verification I am attaching the files what I used.
I have copied the content from the below link and started my trials.
http://code.google.com/p/socialauth/wiki/StrutsSample
Just I changed the properties file entries for the
Facebook like
graph.facebook.com.consumer_key =109414925795385
graph.facebook.com.consumer_secret =4e924dfd58ea84122ca0af1b1a171822
*****************************************************
package com.apere.imag.struts.action;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.brickred.socialauth.AuthProvider;
import org.brickred.socialauth.AuthProviderFactory;
import org.brickred.socialauth.Profile;
//import org.expressme.openid.Association;
//import org.expressme.openid.Authentication;
//import org.expressme.openid.Endpoint;
//import org.expressme.openid.OpenIdException;
//import org.expressme.openid.OpenIdManager;
public class OpenIdAuthenticationServlet extends HttpServlet {
static final long ONE_HOUR = 3600000L;
static final long TWO_HOUR = ONE_HOUR * 2L;
static final String ATTR_MAC = "openid_mac";
static final String ATTR_ALIAS = "openid_alias";
//private OpenIdManager manager;
/* @Override
public void init() throws ServletException {
super.init();
manager = new OpenIdManager();
manager.setRealm("http://localhost:8181");
manager.setReturnTo("http://localhost:8181/OpenIdSample/openid");
}*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
String provider = request.getParameter("provider");
System.out.println("Provider: " + provider);
if(provider != null)
{
login(request, response);
}
else
{
postLogin(request, response);
}
}
private void login(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
String providerName = request.getParameter("provider");
try
{
request.getSession().setAttribute("providerName",providerName);
// providerName can have values "facebook", "twitter", "yahoo" etc. or the
OpenID URL
AuthProvider provider = AuthProviderFactory.getInstance(providerName);
// URL of YOUR application which will be called after authentication
String returnToUrl = "http://192.168.100.174:8181/SocialAuth/SocialAuthSuccessServlet";
// Provider URL to which you should redirect for authentication
String url = provider.getLoginRedirectURL(returnToUrl);
//response.sendRedirect(url);
// verify the authentication
}catch (Exception e)
{
}
/*
if(provider != null && provider.length() > 0)
{
// redirect to provider sign on page:
Endpoint endpoint = manager.lookupEndpoint(provider);
Association association = manager.lookupAssociation(endpoint);
request.getSession().setAttribute(ATTR_MAC, association.getRawMacKey());
request.getSession().setAttribute(ATTR_ALIAS, endpoint.getAlias());
String url = manager.getAuthenticationUrl(endpoint, association);
response.sendRedirect(url);
}
else
{
throw new ServletException("Invalid Provider: " + provider);
}*/
}
private void postLogin(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
String responseNonse = request.getParameter("openid.response_nonce");
/*if(responseNonse != null && responseNonse.length() > 0)
{
checkNonce(responseNonse);
// get authentication:
byte[] mac_key = (byte[]) request.getSession().getAttribute(ATTR_MAC);
String alias = (String) request.getSession().getAttribute(ATTR_ALIAS);
Authentication authentication = manager.getAuthentication(request, mac_key, alias);
response.setContentType("text/html; charset=UTF-8");
showAuthentication(response.getWriter(), authentication);
}
else
{
throw new ServletException("Invalid post login request, Response nonce: " + responseNonse);
}*/
}
/* void showAuthentication(PrintWriter pw, Authentication auth) {
pw.print("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>Test JOpenID</title></head><body><h1>You have successfully signed on!</h1>");
pw.print("<p>Identity: " + auth.getIdentity() + "</p>");
pw.print("<p>Email: " + auth.getEmail() + "</p>");
pw.print("<p>Full name: " + auth.getFullname() + "</p>");
pw.print("<p>First name: " + auth.getFirstname() + "</p>");
pw.print("<p>Last name: " + auth.getLastname() + "</p>");
pw.print("<p>Gender: " + auth.getGender() + "</p>");
pw.print("<p>Language: " + auth.getLanguage() + "</p>");
pw.print("</body></html>");
pw.flush();
}
void checkNonce(String nonce) {
// check response_nonce to prevent replay-attack:
if (nonce==null || nonce.length()<20)
throw new OpenIdException("Verify failed.");
// make sure the time of server is correct:
long nonceTime = getNonceTime(nonce);
long diff = Math.abs(System.currentTimeMillis() - nonceTime);
if (diff > ONE_HOUR)
throw new OpenIdException("Bad nonce time.");
if (isNonceExist(nonce))
throw new OpenIdException("Verify nonce failed.");
storeNonce(nonce, nonceTime + TWO_HOUR);
}
// simulate a database that store all nonce:
private Set<String> nonceDb = new HashSet<String>();
// check if nonce is exist in database:
boolean isNonceExist(String nonce) {
return nonceDb.contains(nonce);
}
// store nonce in database:
void storeNonce(String nonce, long expires) {
nonceDb.add(nonce);
}
long getNonceTime(String nonce) {
try {
return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
.parse(nonce.substring(0, 19) + "+0000")
.getTime();
}
catch(ParseException e) {
throw new OpenIdException("Bad nonce time.");
}
}*/
}
***************************************
package com.apere.imag.struts.action;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.brickred.socialauth.AuthProvider;
import org.brickred.socialauth.AuthProviderFactory;
import org.brickred.socialauth.Profile;
/**
* Servlet implementation class for Servlet: SocialAuthSuccessServlet
*
*/
public class SocialAuthSuccessServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
public SocialAuthSuccessServlet() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
doPost(request,response);
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
String providerName = (String)request.getSession().getAttribute("providerName");
try
{
AuthProvider authProvider = AuthProviderFactory.getInstance(providerName);
Profile p = authProvider.verifyResponse(request);
// you can obtain profile information
System.out.println(p.getFirstName());
// OR also obtain list of contacts
List<Profile> contactsList = authProvider.getContactList();
}catch (Exception e) {
// TODO: handle exception
}
}
}
*****************************************
Original issue reported on code.google.com by [email protected]
on 29 Nov 2010 at 9:43
Attachments:
What steps will reproduce the problem?
1. Try to get contacts from certain Hotmail accounts
What is the expected output? What do you see instead?
Expected: Hotmail contacts
Actual: NullPointerException
java.lang.NullPointerException
at org.brickred.socialauth.provider.HotmailImpl.verifyResponse(HotmailImpl.java:97)
Note that I'm using the socialauth.jar that was patched to fix a previous
Hotmail bug, *not* the socialauth.jar that is downloadable from Google code.
Original issue reported on code.google.com by [email protected]
on 1 Dec 2010 at 5:05
Subj
Original issue reported on code.google.com by max%[email protected]
on 18 Nov 2010 at 1:54
https://apps.facebook.com/oauth/authenticate?client_id=109414925795385&display=p
age&redirect_uri=https://imag.apere.com/socialAuthSuccessAction.do&scope=publish
_stream,email,user_birthday,user_location
This is the url I am able to generate for facebook application.
apps.facebook.com.consumer_key =109414925795385
apps.facebook.com.consumer_secret =4e924dfd58ea84122ca0af1b1a171822
whats wrong with this
any suggestion is highly appreciated..
Original issue reported on code.google.com by [email protected]
on 25 Nov 2010 at 1:05
It would be super awesome if socialauth was available in a Maven repository.
Original issue reported on code.google.com by [email protected]
on 3 Nov 2010 at 9:19
Add a feature to get the URL of the profile photo
Original issue reported on code.google.com by [email protected]
on 1 Nov 2010 at 6:13
Hello brickred team,
I assume that you have support for following oauth providers.
Aol, Facebook, Google, Hotmail, OpenId, Twitter, WindowsLive, Yahoo.
I would suggest you create a thread where people can request for support for
other oauth providers. You can even create a list where you provide details
like..
oauth providers - supported / not supported - will be supported in release.
It would be beneficial to people thinking of using the tool.
I would suggest support for following OAuth providers in future releases.
Linkedin
(following are some resources i could find)
http://developer.linkedin.com/message/4568
http://developer.linkedin.com/message/6482#6482
http://developer.linkedin.com/docs/DOC-1008
MySpace
Thank you,
Srinivas Upadhya
Original issue reported on code.google.com by [email protected]
on 21 Dec 2010 at 8:40
Step by step documentation for building struts app using socialauth needs to be
uploaded on the wiki
Original issue reported on code.google.com by [email protected]
on 8 Oct 2010 at 2:05
Hi ya,
I have been using socialAuth beta 2, and successfully managed to retreive gmail
and yahoo contacts no problemo. BTW, thank for your excellent work that make
life much easier this way. Congrats !
Now, same code, same everything is failing right at the beginning of the
process, trying to access hotmail contacts.
It crashes when calling :
AuthProviderFactory.getInstance(action.getProvider(), "xxxxx.properties");
I need a custom file name, 'coz my app is deployed on several serveres, and
some authentications require key server specific, and "xxxxx" is build upon
server name to make sure I can use different configs. See file attached for its
content.
Here below, stack on server side (GAE):
[ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract net.customware.gwt.dispatch.shared.Result
net.customware.gwt.dispatch.client.standard.StandardDispatchService.execute(net.
customware.gwt.dispatch.shared.Action) throws
net.customware.gwt.dispatch.shared.ActionException,net.customware.gwt.dispatch.s
hared.ServiceException' threw an unexpected exception:
java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:216)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:141)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:63)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/HttpMethod
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at org.brickred.socialauth.AuthProviderFactory.getProvider(AuthProviderFactory.java:153)
at org.brickred.socialauth.AuthProviderFactory.getInstance(AuthProviderFactory.java:110)
at com.yeswecast.site.server.handler.OAuthGenericProvidersHandler.execute(OAuthGenericProvidersHandler.java:59)
at com.yeswecast.site.server.handler.OAuthGenericProvidersHandler.execute(OAuthGenericProvidersHandler.java:1)
at net.customware.gwt.dispatch.server.AbstractDispatch.doExecute(AbstractDispatch.java:69)
at net.customware.gwt.dispatch.server.AbstractDispatch.execute(AbstractDispatch.java:59)
at net.customware.gwt.dispatch.server.standard.AbstractStandardDispatchServlet.execute(AbstractStandardDispatchServlet.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
--- Any idea what am I doing wrong ? Thx a lot !
xtof
Original issue reported on code.google.com by [email protected]
on 7 Feb 2011 at 4:18
Attachments:
What steps will reproduce the problem?
1. Add multiple email address to a single contact in Gmail
2. Use socialauth to import your gmail contacts
3. Observe that only the first email address is imported, the other email
addresses are not imported
What is the expected output? What do you see instead?
I would expect all email addresses to be available in the List<Profile>, not
just the first one.
Original issue reported on code.google.com by [email protected]
on 30 Nov 2010 at 3:47
What steps will reproduce the problem?
1. Access the Struts Sample ->
http://opensource.brickred.com/socialauthdemo/index.jsp
2. Click at yahoo icon to login
3. The authentication occurs without problems.
4. Back to main page http://opensource.brickred.com/socialauthdemo/index.jsp
5. Try to login again by clicking at yahoo icon
6. It appears a blank page with this url:
https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=emtdqby&oauth_call
back=http%3A%2F%2Fopensource.brickred.com%2Fsocialauthdemo%2FsocialAuthSuccessAc
tion.do&crumb=okeVR4aiuP/
In my project the same thing happens with yahoo provider
Original issue reported on code.google.com by [email protected]
on 10 Feb 2011 at 2:15
Hi,
We are not using struts in our existing project.
It will be great if a similar step by step tutorial could be posted for simple
J2EE without struts or anything. ie. only jsp, java and the jar/dependencies.
Regards,
Yudhajit Nag
Original issue reported on code.google.com by [email protected]
on 11 Nov 2010 at 6:45
Can WebID be supported by socialauth ?
See:
http://esw.w3.org/WebID
http://getwebid.org/spec/
Example:
https://payswarm.com/webid-demo/
Original issue reported on code.google.com by [email protected]
on 30 Nov 2010 at 10:48
1. Can we provide the which version of Struts like 1.2.x or 2.x we are using
for this demo.
2. Please provide the link in the demo link in the introduction.
3. It will be good if we provide the version of the Eclipse.
4. STEP 1: In the eclipse directory structure, I think we need to open the
“WEB-INF/lib” folder and close the “src/com” folder.
5. STEP 1: We need to also write the other library that we are using in this
step by step example like apache logging and common.
6. STEP 2: We need to provide the actual name of file for the index page for
this demo it is called index.jsp.
7. STEP 2: Can we provide the images(icon) of different social networking site
which uses in the index.jsp
8. Step 3: It will be good both “id” and “provider” has private scope
in the “com.auth.form.AuthForm” and can be provide a small java doc of this
class.
9. Step 4 & 5: If we provide the comment in the method that in each step what
we are doing.
10. Step 6: Here also we need to provide the jsp name
11. Conclusion: Can we give the link of the source code page.
12. Can we give some other formatting in the class, variable etc describe in
the description.
Original issue reported on code.google.com by [email protected]
on 12 Nov 2010 at 3:04
Hi, I have a Struts2 project using socialauth and I have experienced the
following error.
=====================================================================
javax.servlet.ServletException: Unresolved compilation problems:
The import org.brickred cannot be resolved
contactList cannot be resolved
contactList cannot be resolved
Profile cannot be resolved to a type
Profile cannot be resolved to a type
contactList cannot be resolved or is not a field
Profile cannot be resolved to a type
contactList cannot be resolved
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:324)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:243)
=====================================================================
Appreciate your advice if there is anything I may have missed.
Original issue reported on code.google.com by [email protected]
on 22 Nov 2010 at 4:15
storing Provider into session in cluster environment will raise exception
because it's not java.io.Serializable.
Original issue reported on code.google.com by [email protected]
on 14 Dec 2010 at 4:50
Nearly all providers: GoogleImpl, etc
Original issue reported on code.google.com by [email protected]
on 30 Oct 2010 at 8:28
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.