I have been working with this code for few days and I getting the Null Pointer Exception all the time. I am using struts2.3.x and Hibernate v5.x along with Full-hibernate-plugin. it's a simple login module, As the User login the following package with action is invoked,
<package name="<your_package_name>" namespace="/" extends="struts-default">
<action name="Login" class="<class url>.LoginAction" method="fn_Redirect_OAuth">
<result name="success" type="redirectAction">
<param name="actionName">user/Authenticate</param>
<param name="_strUsername">${_objLoginModal.get_strUsername()}</param>
<param name="_strPassword">${_objLoginModal.get_strPassword()}</param>
</result>
</action>
</package>
After the successful return form the action I am redirecting the action to another package with another action as you can see above. And that package is a hibernate-default extended package,which is as follow
<package name="<your_package_name>" namespace="/user" extends="hibernate-default">
<action name="Authenticate" class="<class_url>.LoginAction" method="fn_Login_User">
<interceptor-ref name="basicStackHibernate"></interceptor-ref>
<result name="success" type="redirect">../mail/de/inbox</result>
<result name="input">login.jsp</result>
<result name="error">error.jsp</result>
</action>
</package>
And when I am trying to access the parameters(Which i passed from the previous action) I am getting the Null Pointer Exception.
Does anyone have any idea about it? as I am new to Hibernate and Full-hibernate-plugin please do help. Thanks in Advance.