JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-534  -  When no jvm.options is in the config file, a NullPointerException is thrown
Posted May 17, 2018 - updated May 18, 2018
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
     boris.klug
  • Owned by
    Not owned by anyone
  • Category
    Node
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Reproducability
    Always
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png JPPF 5.2.10
Issue description
When in the config file of the node "jppf-node.properties" the option "jppf.jvm.options" is not set, short after the start of the node crashes with a NullPointerException:
java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Unknown Source)
        at java.util.regex.Matcher.reset(Unknown Source)
        at java.util.regex.Matcher.<init>(Unknown Source)
        at java.util.regex.Pattern.matcher(Unknown Source)
        at org.jppf.process.AbstractProcessLauncher.parseJvmOptions(AbstractProcessLauncher.java:84)
        at org.jppf.process.ProcessLauncher.buildProcess(ProcessLauncher.java:156)
        at org.jppf.process.ProcessLauncher.startProcess(ProcessLauncher.java:142)
        at org.jppf.process.ProcessLauncher.run(ProcessLauncher.java:119)
        at org.jppf.node.NodeLauncher.main(NodeLauncher.java:38)
The same happends with the option "jppf.node.provisioning.slave.jvm.options" when provisioning a slave.

Workaround: Set the option to an empty string like this: jppf.jvm.options =
Steps to reproduce this issue
- Remove the option "jppf.jvm.options" from the config file - Start the node

#3
Comment posted by
 lolo4j
May 18, 06:08
Fixed in trunk/master and 5.2 branches