Jayesh created EAGLE-879: ---------------------------- Summary: Using Slack Notification throws ClassNotFoundException Key: EAGLE-879 URL: https://issues.apache.org/jira/browse/EAGLE-879 Project: Eagle Issue Type: Bug Reporter: Jayesh
looks like http-core jar from the httpcomponent jar pacakge is missing which includes the class used in ullink slackclient {code} 2017-01-19 19:29:15.879 c.u.s.s.i.SlackWebSocketSessionImpl [INFO] connecting to slack 2017-01-19 19:29:15.879 o.a.c.f.l.ListenerContainer [ERROR] Listener (org.apache.eagle.alert.config.ConfigBusConsumer$$Lambda$12/1246291106@3566e264) threw an exception java.lang.NoClassDefFoundError: org/apache/http/config/Lookup at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.getHttpClient(SlackWebSocketSessionImpl.java:707) ~[stormjar.jar:?] at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.connectImpl(SlackWebSocketSessionImpl.java:254) ~[stormjar.jar:?] at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.connect(SlackWebSocketSessionImpl.java:232) ~[stormjar.jar:?] at org.apache.eagle.alert.engine.publisher.impl.AlertSlackPublisher.init(AlertSlackPublisher.java:62) ~[stormjar.jar:?] at org.apache.eagle.alert.engine.publisher.impl.AlertPublishPluginsFactory.createNotificationPlugin(AlertPublishPluginsFactory.java:42) ~[stormjar.jar:?] at org.apache.eagle.alert.engine.publisher.impl.AlertPublisherImpl.onPublishChange(AlertPublisherImpl.java:129) ~[stormjar.jar:?] at org.apache.eagle.alert.engine.runner.AlertPublisherBolt.onAlertPublishSpecChange(AlertPublisherBolt.java:134) ~[stormjar.jar:?] at org.apache.eagle.alert.engine.coordinator.impl.AbstractMetadataChangeNotifyService.lambda$notifyAlertPublishBolt$3(AbstractMetadataChangeNotifyService.java:103) ~[stormjar.jar:?] at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_102] at org.apache.eagle.alert.engine.coordinator.impl.AbstractMetadataChangeNotifyService.notifyAlertPublishBolt(AbstractMetadataChangeNotifyService.java:103) ~[stormjar.jar:?] at org.apache.eagle.alert.engine.coordinator.impl.ZKMetadataChangeNotifyService.onNewConfig(ZKMetadataChangeNotifyService.java:137) ~[stormjar.jar:?] at org.apache.eagle.alert.config.ConfigBusConsumer.lambda$new$0(ConfigBusConsumer.java:44) ~[stormjar.jar:?] at org.apache.curator.framework.recipes.cache.NodeCache$4.apply(NodeCache.java:293) ~[stormjar.jar:?] at org.apache.curator.framework.recipes.cache.NodeCache$4.apply(NodeCache.java:287) ~[stormjar.jar:?] at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:92) [stormjar.jar:?] at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297) [stormjar.jar:?] at org.apache.curator.framework.listen.ListenerContainer.forEach(ListenerContainer.java:83) [stormjar.jar:?] at org.apache.curator.framework.recipes.cache.NodeCache.setNewData(NodeCache.java:284) [stormjar.jar:?] at org.apache.curator.framework.recipes.cache.NodeCache.processBackgroundResult(NodeCache.java:252) [stormjar.jar:?] at org.apache.curator.framework.recipes.cache.NodeCache.access$300(NodeCache.java:53) [stormjar.jar:?] at org.apache.curator.framework.recipes.cache.NodeCache$3.processResult(NodeCache.java:111) [stormjar.jar:?] at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:730) [stormjar.jar:?] at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:516) [stormjar.jar:?] at org.apache.curator.framework.imps.GetDataBuilderImpl$3.processResult(GetDataBuilderImpl.java:254) [stormjar.jar:?] at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:561) [stormjar.jar:?] at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498) [stormjar.jar:?] Caused by: java.lang.ClassNotFoundException: org.apache.http.config.Lookup at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_102] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_102] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_102] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_102] ... 26 more 2017-01-19 19:29:15.882 b.s.util [ERROR] Async loop died! {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)