[ https://issues.apache.org/jira/browse/FLINK-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15227940#comment-15227940 ]
ASF GitHub Bot commented on FLINK-3523: --------------------------------------- Github user mjsax commented on a diff in the pull request: https://github.com/apache/flink/pull/1844#discussion_r58668244 --- Diff: flink-contrib/flink-storm-examples/src/main/java/org/apache/flink/storm/split/SpoutSplitExample.java --- @@ -84,16 +86,27 @@ public static void main(final String[] args) throws Exception { /** * Same as {@link VerifyAndEnrichBolt}. */ - private final static class Enrich implements MapFunction<Integer, Tuple2<String, Integer>> { + public final static class Enrich implements MapFunction<Integer, Tuple2<String, Integer>> { private static final long serialVersionUID = 5213888269197438892L; private final Tuple2<String, Integer> out; + private final boolean evenOrOdd; // true: even -- false: odd --- End diff -- Sure. Can change it. > Storm SpoutSplitExample fails with a ClassCastException > ------------------------------------------------------- > > Key: FLINK-3523 > URL: https://issues.apache.org/jira/browse/FLINK-3523 > Project: Flink > Issue Type: Bug > Components: Storm Compatibility > Reporter: Stephan Ewen > Assignee: Matthias J. Sax > > {code} > Caused by: java.lang.ClassCastException: > org.apache.flink.storm.util.SplitStreamType cannot be cast to > java.lang.Integer > at > org.apache.flink.storm.wrappers.StormTuple.getInteger(StormTuple.java:152) > at > org.apache.flink.storm.split.operators.VerifyAndEnrichBolt.execute(VerifyAndEnrichBolt.java:52) > at > org.apache.flink.storm.wrappers.BoltWrapper.processElement(BoltWrapper.java:313) > at > org.apache.flink.streaming.runtime.io.StreamInputProcessor.processInput(StreamInputProcessor.java:168) > at > org.apache.flink.streaming.runtime.tasks.OneInputStreamTask.run(OneInputStreamTask.java:65) > at > org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:224) > at org.apache.flink.runtime.taskmanager.Task.run(Task.java:559) > at java.lang.Thread.run(Thread.java:745) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)