JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-99  -  Execution policy raises NPE when node management is disabled
Posted Nov 26, 2012 - 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
    Not assigned to anyone
  • 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.1.x
Issue description
When, for some reason (e.g no configuration), the management of a node is disabled, using an execution policy will cause an NPE when the policy is matched againnst this node, with the following stack trace:
java.lang.NullPointerException
  at org.jppf.node.policy.ExecutionPolicy.getProperty(ExecutionPolicy.java:115)
  at org.jppf.node.policy.Contains.accepts(Contains.java:70)
  at org.jppf.server.nio.nodeserver.TaskQueueChecker.findIdleChannelIndex(TaskQueueChecker.java:309)
  at org.jppf.server.nio.nodeserver.TaskQueueChecker.retrieveChannel(TaskQueueChecker.java:230)
  at org.jppf.server.nio.nodeserver.TaskQueueChecker.dispatch(TaskQueueChecker.java:191)
  at org.jppf.server.nio.nodeserver.TaskQueueChecker.run(TaskQueueChecker.java:164)
  at java.lang.Thread.run(Thread.java:722)


Steps to reproduce this issue
Run the attached code (client runner + task) with 1 driver and 1 node ==> you will see the NPE in the driver's log.

#2
Comment posted by
 lolo4j
Nov 26, 07:45
A file was uploaded. reproducing code sampleicon_open_new.png
#3
Comment posted by
 lolo4j
Dec 15, 09:08
Fixed in branch b3.1 revision 2568.

Added driver config property "jppf.default.policy.outcome = true|false" with default value "true" to specify the default result of evaluating an execution policy when an exception is raised during the evaluation.

The issue was updated with the following change(s):
  • 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.