abay2204 / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

Getting error while executing the code. #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 lovelyvi...@gmail.com on 2 Nov 2010 at 7:48

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Vikas,

I think you are missing the third preequisite:
Create a properties like the sample oauth_consumer.properties using the 
consumer key and secrets obtained above. This file should be included in your 
classpath, for example WEB-INF/classes directory 

Also wanted to know if you have a public domain where you are trying this?

Warm regards,
BrickRed Team

Original comment by tsg.bric...@gmail.com on 2 Nov 2010 at 7:55

GoogleCodeExporter commented 8 years ago
Hi 
Thanks for the response!!
Actually we have public domain. But right now I am testing it on my local 
system. Then 
only I can go ahead and integrate with running application.
Can't I test it on my local system. There is a line in the (Project home) page  
saying that "OpenID does not require this step."

Earlier I tried with Jopenid project. But that gives only google and yahoo and 
i needed facebook, twitter and contactlist etc also. That is why I am trying 
out socialauth now.
But Using JopenId, I was able run it on my localhost.

I have a bit confusion regarding this. Please clarify. 

Original comment by lovelyvi...@gmail.com on 2 Nov 2010 at 2:51

GoogleCodeExporter commented 8 years ago
Hi Vikas,

Actually the issue is that facebook, twitter etc. use oAuth and not OpenID, 
while yahoo and gmail use oAuth as well as OpenID. Hence you will not be able 
to authenticate using facebook and twitter by using localhost.

Can you please also attach your properties file? We are also going to post the 
step by step guide for building a struts application using this library in a 
day or two - so maybe that will be of help.

Warm regards,
BrickRed Team

Original comment by tsg.bric...@gmail.com on 2 Nov 2010 at 4:24

GoogleCodeExporter commented 8 years ago
Hi vikas,

We have added the step by step guide on the wiki now. Hopefully that will help 
you to get a working app. Closing this issue for now.

Original comment by tsg.bric...@gmail.com on 10 Nov 2010 at 8:56

GoogleCodeExporter commented 8 years ago

Original comment by l...@brickred.com on 11 May 2012 at 3:37