You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Péter Szabó (JIRA)" <ji...@apache.org> on 2015/03/20 13:45:38 UTC

[jira] [Created] (FLINK-1757) java.lang.ClassCastException is thrown while summing Short values on window

Péter Szabó created FLINK-1757:
----------------------------------

             Summary: java.lang.ClassCastException is thrown while summing Short values on window
                 Key: FLINK-1757
                 URL: https://issues.apache.org/jira/browse/FLINK-1757
             Project: Flink
          Issue Type: Bug
          Components: Streaming
            Reporter: Péter Szabó
            Assignee: Péter Szabó


java.lang.ClassCastException is thrown while summing Short values on window

Stack Trace:
Caused by: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Short
	at org.apache.flink.streaming.api.streamvertex.OutputHandler.invokeUserFunction(OutputHandler.java:232)
	at org.apache.flink.streaming.api.streamvertex.StreamVertex.invoke(StreamVertex.java:121)
	at org.apache.flink.runtime.execution.RuntimeEnvironment.run(RuntimeEnvironment.java:205)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Short
	at org.apache.flink.api.common.typeutils.base.ShortSerializer.copy(ShortSerializer.java:27)
	at org.apache.flink.api.java.typeutils.runtime.TupleSerializer.copy(TupleSerializer.java:95)
	at org.apache.flink.api.java.typeutils.runtime.TupleSerializer.copy(TupleSerializer.java:30)
	at org.apache.flink.streaming.api.invokable.StreamInvokable.copy(StreamInvokable.java:166)
	at org.apache.flink.streaming.api.invokable.SinkInvokable.collect(SinkInvokable.java:46)
	at org.apache.flink.streaming.api.collector.DirectedCollectorWrapper.collect(DirectedCollectorWrapper.java:95)
	at org.apache.flink.streaming.api.invokable.operator.GroupedReduceInvokable.reduce(GroupedReduceInvokable.java:47)
	at org.apache.flink.streaming.api.invokable.operator.StreamReduceInvokable.invoke(StreamReduceInvokable.java:39)
	at org.apache.flink.streaming.api.streamvertex.StreamVertex.invokeUserFunction(StreamVertex.java:85)
	at org.apache.flink.streaming.api.streamvertex.OutputHandler.invokeUserFunction(OutputHandler.java:229)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Created] (FLINK-1757) java.lang.ClassCastException is thrown while summing Short values on window

Posted by Szabó Péter <ne...@gmail.com>.
This issue is basically solved.
Will be committed soon.

Peter

2015-03-20 13:45 GMT+01:00 Péter Szabó (JIRA) <ji...@apache.org>:

> Péter Szabó created FLINK-1757:
> ----------------------------------
>
>              Summary: java.lang.ClassCastException is thrown while summing
> Short values on window
>                  Key: FLINK-1757
>                  URL: https://issues.apache.org/jira/browse/FLINK-1757
>              Project: Flink
>           Issue Type: Bug
>           Components: Streaming
>             Reporter: Péter Szabó
>             Assignee: Péter Szabó
>
>
> java.lang.ClassCastException is thrown while summing Short values on window
>
> Stack Trace:
> Caused by: java.lang.RuntimeException: java.lang.ClassCastException:
> java.lang.Integer cannot be cast to java.lang.Short
>         at
> org.apache.flink.streaming.api.streamvertex.OutputHandler.invokeUserFunction(OutputHandler.java:232)
>         at
> org.apache.flink.streaming.api.streamvertex.StreamVertex.invoke(StreamVertex.java:121)
>         at
> org.apache.flink.runtime.execution.RuntimeEnvironment.run(RuntimeEnvironment.java:205)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast
> to java.lang.Short
>         at
> org.apache.flink.api.common.typeutils.base.ShortSerializer.copy(ShortSerializer.java:27)
>         at
> org.apache.flink.api.java.typeutils.runtime.TupleSerializer.copy(TupleSerializer.java:95)
>         at
> org.apache.flink.api.java.typeutils.runtime.TupleSerializer.copy(TupleSerializer.java:30)
>         at
> org.apache.flink.streaming.api.invokable.StreamInvokable.copy(StreamInvokable.java:166)
>         at
> org.apache.flink.streaming.api.invokable.SinkInvokable.collect(SinkInvokable.java:46)
>         at
> org.apache.flink.streaming.api.collector.DirectedCollectorWrapper.collect(DirectedCollectorWrapper.java:95)
>         at
> org.apache.flink.streaming.api.invokable.operator.GroupedReduceInvokable.reduce(GroupedReduceInvokable.java:47)
>         at
> org.apache.flink.streaming.api.invokable.operator.StreamReduceInvokable.invoke(StreamReduceInvokable.java:39)
>         at
> org.apache.flink.streaming.api.streamvertex.StreamVertex.invokeUserFunction(StreamVertex.java:85)
>         at
> org.apache.flink.streaming.api.streamvertex.OutputHandler.invokeUserFunction(OutputHandler.java:229)
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>