JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
May 30, 2023, 06:19:02 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Disabling SSL on driver  (Read 2964 times)

codemonkey

  • JPPF Council Member
  • *****
  • Posts: 138
Disabling SSL on driver
« on: February 06, 2013, 03:31:26 AM »

Hey everyone, just trying to upgrade to version 3.2.2 from 3.0.1.

In my driver's config, i have the setting jppf.ssl.server.port = -1 to disable ssl and recieve the following errors

JPPF:Driver:StdErr:   java.lang.NullPointerException
JPPF:Driver:StdErr:      at java.io.File.<init>(File.java:222)
JPPF:Driver:StdErr:      at org.jppf.utils.FileUtils.getFileInputStream(FileUtils.java:185)
JPPF:Driver:StdErr:      at org.jppf.ssl.SSLHelper.loadSSLProperties(SSLHelper.java:264)
JPPF:Driver:StdErr:      at org.jppf.ssl.SSLHelper.getSSLContext(SSLHelper.java:69)
JPPF:Driver:StdErr:      at org.jppf.server.nio.acceptor.AcceptorNioServer.createSSLContext(AcceptorNioServer.java:67)
JPPF:Driver:StdErr:      at org.jppf.server.nio.NioServer.init(NioServer.java:150)
JPPF:Driver:StdErr:      at org.jppf.server.nio.NioServer.<init>(NioServer.java:132)
JPPF:Driver:StdErr:      at org.jppf.server.nio.acceptor.AcceptorNioServer.<init>(AcceptorNioServer.java:60)
JPPF:Driver:StdErr:      at org.jppf.server.JPPFDriver.run(JPPFDriver.java:187)
JPPF:Driver:StdErr:      at org.jppf.server.JPPFDriver.main(JPPFDriver.java:418)

It's trying to load the ssl config files regardless of the jppf.ssl.server.port setting which according to the docs say to set to -1 to disable.

Anyone else experience the same and know of a workaround? Something missed?

Thanks!

CM



Logged

codemonkey

  • JPPF Council Member
  • *****
  • Posts: 138
Re: Disabling SSL on driver
« Reply #1 on: February 06, 2013, 04:26:46 AM »

ahh got it...

seems the setting  jppf.ssl.server.port = -1  doesn't infact disable ssl. Having it disabled comment/not present does

Possible documentation issue?

Code: [Select]
# Port number to which the server listens for secure connections, defaults to 11443
# A negative value indicates that no secure connection is accepted
jppf.ssl.server.port = 11443

Cheers

CM
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Disabling SSL on driver
« Reply #2 on: February 06, 2013, 06:29:22 AM »

Hi CM,

In fact we do mention something to this effect in the documentation, in the SSL configuration chapter:

Quote
For instance, if you wish to only accept secure connections, you will have to disable the non-secure connections by specifying a negative port number

Please let me know if you think this should be made clearer and eventually also stated elsewhere in the doc.

Sincerely,
-Laurent
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Disabling SSL on driver
« Reply #3 on: February 06, 2013, 01:53:37 PM »

Hello again,

I reproduceed the same behavior you described and registered a bug report: JPPF-123 NPE at driver startup when jppf.ssl.server.port = -1 .
I will deliver a patch shortly and I will keep you updated in this thread.

Sincerely,
-Laurent
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Disabling SSL on driver
« Reply #4 on: February 06, 2013, 02:20:49 PM »

Hello,

I have released the patch 01 for JPPF 3.2.2, which includes a fix for JPPF-123.
Please let us know if this reoslves the problem.

-Laurent
Logged

codemonkey

  • JPPF Council Member
  • *****
  • Posts: 138
Re: Disabling SSL on driver
« Reply #5 on: February 09, 2013, 02:43:46 PM »

Hi laurent thanks very much, I will test it ASAP.

Again we're able to get around this by not having the property available or if it is commented.

All the best,

CM
Logged

codemonkey

  • JPPF Council Member
  • *****
  • Posts: 138
Re: Disabling SSL on driver
« Reply #6 on: February 10, 2013, 10:41:31 PM »

Hi Laurent, the patch resolves the issue.

Thank you again very much

CM
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads