Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Knowledge Partner Knowledge Partner
Knowledge Partner
394 views

Re: Password expiration servlet giving null pointer

nikhilchawla wrote:

>
> Hi,
> I have added this url in Password expiration servlet :
> https://myserver.com/change_password.jsp?LoginUserID=<USERID>&store=<S
> TOREID>&returl=<RETURN_URL>
>
> after authentication, it is not redirecting to this url. Instead it is
> giving me this exception :
>
> java.lang.NullPointerException
>
> com.novell.nidp.authentication.ContractExecutionState.handledExpiredPw
> d(y:1308)
> com.novell.nidp.common.profile.LoginProfile.spLogin(y:1131)
> com.novell.nidp.liberty.idff.profile.LibertySSOProfile.doAuthenticatio
> n(y:800)
> com.novell.nidp.liberty.idff.profile.LibertySSOProfile.handleAuthnRequ
> est(y:1659)
> com.novell.nidp.liberty.idff.profile.LibertySSOProfile.processAuthnReq
> uest(y:623)
> com.novell.nidp.liberty.idff.profile.LibertySSOProfile.processSSOEndpo
> int(y:2958) com.novell.nidp.liberty.IDFFHandler.E(y:670)
> com.novell.nidp.liberty.IDFFHandler.handleRequest(y:3101)
> com.novell.nidp.liberty.LibertyMeDescriptor.handleRequest(y:1277)
> com.novell.nidp.servlets.NIDPServlet.myDoGet(y:2459)
> com.novell.nidp.servlets.NIDPBaseServlet.doGet(y:2679)
> com.novell.nidp.servlets.NIDPBaseServlet.doPost(y:2043)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
> what i'm missing here ?


can you enable debug logging for the application (IDP Cluster | config
edit| General | Config | logging and set application to debug. Restart
the IDP (rcnovell-tomcat5 restart) and check if the contract loads
properly (I guess it'll do). Try again after that and feel free to post
the catalina.out here.

Maybe clear catalina.out before you do all this.

--
Cheers,
Edward
0 Likes
3 Replies
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: Password expiration servlet giving null pointer

nikhilchawla wrote:

>
> And one more thing, In catalina.out, i couldn't found my contract name
> in loaded section. Only default contracts are getting loaded.


The contract you created, is that based on a default method or did you
create a custom method from a default class?

Could you post the entire catalina.out?

--
Cheers,
Edward
0 Likes
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: Password expiration servlet giving null pointer

nikhilchawla wrote:

>
> I created my own custom class and deployed it on tomcat. With this
> class, i created my own custom method and then with this method, i
> created custom contract.
> And due to some organization restriction policies, i'm nt able to post
> large contents (Catalina.out) on forums.


Well, without any real logs it'll be very hard to point you in the
right direction to solve this unfortunately. All I can suggest is to
use one of the built in classes and check if PWM at least works with
one of those. That way you can rule out PWM being the problem or your
custom auth class (I think its your auth class looking at the error)

--
Cheers,
Edward
0 Likes
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: Password expiration servlet giving null pointer

nikhilchawla wrote:

>
> ya, its working fine with default class.


In that case there's something wrong with your code I guess..

--
Cheers,
Edward
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.