Topic
  • No replies
Harikrishna_R
Harikrishna_R
1 Post

Pinned topic Single Sign On not working using Kerberos SPNEGO mechanism IBM Implementation .Getting NullPointer Exception

‏2014-01-20T07:27:04Z |

Hi,

I have used single sign on(SSO) via Kerberos SPNEGO mechanism IBM Implementation in our project. SSO Via Kerberos Authentication is working fine with Tomcat server(using sun JVM). When I am using Websphere 7.0.0.29(using IBM JVM), SSO Via Kerberos Authentication is not working. Getting java.lang.NullPointerException. I searched for solution in IBM forum, couldn't find any solution for this problem.

below null pointer exception is getting.  

java.lang.NullPointerException
at com.ibm.security.jgss.mech.spnego.SPNEGOContext.b(SPNEGOContext.java:118)
at com.ibm.security.jgss.mech.spnego.SPNEGOContext.acceptSecContext(SPNEGOContext.java:691)
at com.ibm.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:349)
at com.ibm.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:270)

If anybody have Idea on how to resolve this problem or faced same problem , please help me in resolving this problem.It is urgent for me.

Below code I am added for IBM JDK specific. Is it required to change any thing in this code to resolve this problem or it is Okay.

Oid oid = new Oid("1.3.6.1.5.5.2"); // SPNEGO
serverCreds = manager.createCredential(null, 10000, oid, GSSCredential.ACCEPT_ONLY);
 

Thanks in advance.

Thanks,

Harikrishna