[ 
https://issues.apache.org/jira/browse/EAGLE-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15570504#comment-15570504
 ] 

ASF GitHub Bot commented on EAGLE-614:
--------------------------------------

GitHub user mizeng opened a pull request:

    https://github.com/apache/incubator-eagle/pull/498

    EAGLE-614: NPE in DynamicPolicyLoader

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mizeng/incubator-eagle EAGLE-614

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-eagle/pull/498.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #498
    
----
commit abe54782c2dbd840864f02bc57ea1659ec6672bc
Author: mizeng <miz...@ebaysf.com>
Date:   2016-10-13T01:41:15Z

    EAGLE-614: NPE in DynamicPolicyLoader

----


> 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)

Reply via email to