JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-123  -  NPE at driver startup when jppf.ssl.server.port = -1
Posted Feb 06, 2013 - updated Dec 27, 2014
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    Server
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Reproducability
    Always
  • Severity
    Normal
  • Targetted for
    icon_milestones.png JPPF 3.3
Issue description
When the driver's configuration specifies "jppf.ssl.server.port = -1" and the config property "jppf.ssl.configuration.source" is unspecifed or points to a file that doesn't exist, the following stack os displayed in the driver's console output:
java.lang.NullPointerException
  at java.security.Provider$ServiceKey.<init>(Provider.java:517)
  at java.security.Provider$ServiceKey.<init>(Provider.java:510)
  at java.security.Provider.getService(Provider.java:684)
  at sun.security.jca.ProviderList.getService(ProviderList.java:331)
  at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
  at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
  at org.jppf.ssl.SSLHelper.getSSLContext(SSLHelper.java:78)
  at org.jppf.server.nio.acceptor.AcceptorNioServer.createSSLContext(AcceptorNioServer.java:67)
  at org.jppf.server.nio.NioServer.init(NioServer.java:150)
  at org.jppf.server.nio.NioServer.<init>(NioServer.java:132)
  at org.jppf.server.nio.acceptor.AcceptorNioServer.<init>(AcceptorNioServer.java:60)
  at org.jppf.server.JPPFDriver.run(JPPFDriver.java:188)
  at org.jppf.server.JPPFDriver.main(JPPFDriver.java:419)
The driver's log also show the following stack trace:
org.jppf.ssl.SSLConfigurationException: could not find secure store config/ssl2/ssl-server2.properties
  at org.jppf.ssl.FileStoreSource.call(FileStoreSource.java:55)
  at org.jppf.ssl.FileStoreSource.call(FileStoreSource.java:30)
  at org.jppf.ssl.SSLHelper.callSource(SSLHelper.java:245)
  at org.jppf.ssl.SSLHelper.loadSSLProperties(SSLHelper.java:260)
  at org.jppf.ssl.SSLHelper.getSSLContext(SSLHelper.java:69)
  at org.jppf.ssl.SSLHelper.configureJMXProperties(SSLHelper.java:138)
  at org.jppf.management.JMXMPServer.start(JMXMPServer.java:86)
  at org.jppf.server.DriverInitializer.createJMXServer(DriverInitializer.java:318)
  at org.jppf.server.DriverInitializer.initJmxServer(DriverInitializer.java:298)
  at org.jppf.server.JPPFDriver.run(JPPFDriver.java:177)
  at org.jppf.server.JPPFDriver.main(JPPFDriver.java:419)
This is due to a mismanagement of the configuration in JPPFDriver.
Steps to reproduce this issue
  • in the driver's configuration, set "jppf.ssl.server.port = -1" and "jppf.ssl.configuration.source = file_that_does_not_exist"
  • start the driver ==> you get the NPE

#2
Comment posted by
 lolo4j
Feb 06, 15:04
Fixed. Changes committed to SVN:

The issue was updated with the following change(s):
  • The assignee has been changed to lolo4j.
  • This issue has been closed
  • The status has been updated, from New to Closed.
  • This issue's progression has been updated to 100 percent completed.
  • The resolution has been updated, from Not determined to RESOLVED.