[
https://issues.apache.org/jira/browse/EAGLE-814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704904#comment-15704904
]
ASF GitHub Bot commented on EAGLE-814:
--------------------------------------
Github user garrettlish commented on the issue:
https://github.com/apache/incubator-eagle/pull/698
+ 1
The issue is introduced by
https://github.com/apache/incubator-eagle/commit/38ec7fc23d06c77b6e083ad2dfb9c61e729901e0#diff-2bb6be6fb3afdc59db75e1919ad89beaL97
which changed the alertId from AlertPublishEvent initialisation with random
UUID to use AlertStreamEvent.alertId. However, AlertStreamEvent.alertId is not
always initialised. The fix looks good.
> fix alertId is null in AlertStreamEvent bug
> -------------------------------------------
>
> Key: EAGLE-814
> URL: https://issues.apache.org/jira/browse/EAGLE-814
> Project: Eagle
> Issue Type: Bug
> Affects Versions: v0.5.0
> Reporter: wujinhu
> Assignee: wujinhu
> Fix For: v0.5.0
>
>
> alertId is null when call notifyAlert()
> 2016-11-29 02:42:34 Thread-18-alertPublishBolt
> org.apache.eagle.alert.engine.publisher.impl.AlertPublisherImpl [ERROR] Fail
> invoking publisher's onAlert, continue
> java.lang.IllegalArgumentException: data may not be null
> at
> org.apache.commons.httpclient.util.EncodingUtil.getBytes(EncodingUtil.java:203)
> ~[stormjar.jar:na]
> at
> org.apache.commons.httpclient.util.URIUtil.encode(URIUtil.java:502)
> ~[stormjar.jar:na]
> at
> org.apache.commons.httpclient.util.URIUtil.encodeQuery(URIUtil.java:468)
> ~[stormjar.jar:na]
> at
> org.apache.eagle.alert.engine.publisher.email.AlertEmailGenerator.buildAlertContext(AlertEmailGenerator.java:130)
> ~[stormjar.jar:na]
> at
> org.apache.eagle.alert.engine.publisher.email.AlertEmailGenerator.sendAlertEmail(AlertEmailGenerator.java:64)
> ~[stormjar.jar:na]
> at
> org.apache.eagle.alert.engine.publisher.email.AlertEmailGenerator.sendAlertEmail(AlertEmailGenerator.java:55)
> ~[stormjar.jar:na]
> at
> org.apache.eagle.alert.engine.publisher.impl.AlertEmailPublisher.onAlert(AlertEmailPublisher.java:84)
> ~[stormjar.jar:na]
> at
> org.apache.eagle.alert.engine.publisher.impl.AlertPublisherImpl.notifyAlert(AlertPublisherImpl.java:87)
> [stormjar.jar:na]
> at
> org.apache.eagle.alert.engine.publisher.impl.AlertPublisherImpl.nextEvent(AlertPublisherImpl.java:70)
> [stormjar.jar:na]
> at
> org.apache.eagle.alert.engine.runner.AlertPublisherBolt.execute(AlertPublisherBolt.java:84)
> [stormjar.jar:na]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)