[ https://issues.apache.org/jira/browse/EAGLE-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15571179#comment-15571179 ]
ASF GitHub Bot commented on EAGLE-614: -------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/incubator-eagle/pull/498 > NPE in DynamicPolicyLoader > -------------------------- > > Key: EAGLE-614 > URL: https://issues.apache.org/jira/browse/EAGLE-614 > Project: Eagle > Issue Type: Bug > Reporter: Zeng, Bryant > Assignee: Zeng, Bryant > > Find exception as below: > INFO [2016-10-13 01:15:02,965] > org.apache.eagle.alert.coordinator.trigger.DynamicPolicyLoader: policies > loader start. > INFO [2016-10-13 01:15:02,966] > org.apache.eagle.alert.service.MetadataServiceClientImpl: query URL > http://localhost:8080/rest/metadata/policies > ERROR [2016-10-13 01:15:02,972] > org.apache.eagle.alert.coordinator.trigger.DynamicPolicyLoader: error loading > policy, but continue to run > ! java.lang.NullPointerException: null > ! at > org.apache.eagle.alert.engine.coordinator.PolicyDefinition.equals(PolicyDefinition.java:150) > ~[alert-service-0.5.0-incubating-SNAPSHOT-shaded.jar > :0.5.0-incubating-SNAPSHOT] > ! at > org.apache.eagle.alert.coordinator.trigger.DynamicPolicyLoader.run(DynamicPolicyLoader.java:69) > ~[alert-service-0.5.0-incubating-SNAPSHOT-shaded. > jar:0.5.0-incubating-SNAPSHOT] > ! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > [na:1.8.0_102] > ! at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) > [na:1.8.0_102] > ! at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) > [na:1.8.0_102] > ! at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) > [na:1.8.0_102] > ! at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > [na:1.8.0_102] > ! at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [na:1.8.0_102] > ! at java.lang.Thread.run(Thread.java:745) [na:1.8.0_102] > we have compare null with other object which should be avoided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)