ombalakumar / socialauth

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

null pointer excelption for success controller #200

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
i Tarun,

I am getting nullpointer exception  manager.getCurrentAuthProvider(); in 
successcontroller , I am socialauth using spring mvc

I am using socialauth-2.3.jar and socialauth-spring-2.0-beta2.jar

SEVERE: Servlet.service() for servlet appServlet threw exception
java.lang.NullPointerException
        at com.nii.web.app.controller.SuccessController.setUpForm(SuccessController.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)

Original issue reported on code.google.com by rose12...@gmail.com on 16 Jul 2012 at 7:23

GoogleCodeExporter commented 8 years ago
Hi Rose

Please make sure your manager object has a session scope in your configuration.

<bean id="socialAuthManager" class="org.brickred.socialauth.SocialAuthManager" 
scope="session">
    <property name="socialAuthConfig"><ref bean="socialAuthConfig"/></property>
    <aop:scoped-proxy/>
</bean>

Regards
Tarun

Original comment by tar...@brickred.com on 16 Jul 2012 at 3:28