JDK-7174244 : NPE in Krb5ProxyImpl.getServerKeys()
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-06-05
  • Updated: 2013-09-12
  • Resolved: 2012-06-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u6Fixed 8 b43Fixed
Related Reports
Relates :  
Description
javax.net.ssl.SSLException: java.lang.NullPointerException
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1902)
	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1860)
	at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1843)
	at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1769)
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:113)
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:69)
	at RemovedPrivateKey$1.run(RemovedPrivateKey.java:203)
Caused by: java.lang.NullPointerException
	at sun.security.ssl.krb5.Krb5ProxyImpl.getServerKeys(Krb5ProxyImpl.java:65)
	at sun.security.ssl.Krb5Helper.getServerKeys(Krb5Helper.java:99)
	at sun.security.ssl.ServerHandshaker$2.run(ServerHandshaker.java:1285)
	at sun.security.ssl.ServerHandshaker$2.run(ServerHandshaker.java:1282)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.security.ssl.ServerHandshaker.setupKerberosKeys(ServerHandshaker.java:1280)
	at sun.security.ssl.ServerHandshaker.trySetCipherSuite(ServerHandshaker.java:1117)
	at sun.security.ssl.ServerHandshaker.chooseCipherSuite(ServerHandshaker.java:887)
	at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:620)
	at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:167)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1032)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328)
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:882)
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
	... 2 more
javax.net.ssl.SSLException: Received fatal alert: internal_error
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
	at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1977)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1093)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328)
	at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
	at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
	at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:136)
	at RemovedPrivateKey.doClient(RemovedPrivateKey.java:185)
	at RemovedPrivateKey.main(RemovedPrivateKey.java:148)
	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:601)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:722)

Comments
EVALUATION sun.security.jgss.krb5.Krb5Util.getServiceCreds() may return null.
05-06-2012