United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7174244 NPE in Krb5ProxyImpl.getServerKeys()
JDK-7174244 : NPE in Krb5ProxyImpl.getServerKeys()

Details
Type:
Bug
Submit Date:
2012-06-05
Status:
Closed
Updated Date:
2012-10-18
Project Name:
JDK
Resolved Date:
2012-06-12
Component:
security-libs
OS:
generic
Sub-Component:
javax.net.ssl
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

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.
                                     
2012-06-05
Test is passing:
http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=112174.CORELIBS-JDK8-NIGHTLY-JTREG-14
                                     
2012-10-18



Hardware and Software, Engineered to Work Together