You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Matthias Kricke (JIRA)" <ji...@apache.org> on 2017/08/07 07:36:03 UTC

[jira] [Commented] (FLINK-7374) Type Erasure in GraphUtils$MapTo

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

Matthias Kricke commented on FLINK-7374:
----------------------------------------

Not sure what helped in the end. I enhanced version to 1.3.2 and updated some dependencies who might used older 1.1.x flink code. 
The problem is gone now. 

Sorry for any inconvenience. 

> Type Erasure in GraphUtils$MapTo
> --------------------------------
>
>                 Key: FLINK-7374
>                 URL: https://issues.apache.org/jira/browse/FLINK-7374
>             Project: Flink
>          Issue Type: Bug
>          Components: Gelly
>    Affects Versions: 1.3.1
>         Environment: Ubuntu 17.04
> java-8-oracle
>            Reporter: Matthias Kricke
>            Priority: Minor
>
> I got the following exception when executing ConnectedComponents or GSAConnectedComponents algorithm:
> {code:java}
> org.apache.flink.api.common.functions.InvalidTypesException: Type of TypeVariable 'O' in 'class org.apache.flink.graph.utils.GraphUtils$MapTo' could not be determined. This is most likely a type erasure problem. The type extraction currently supports types with generic variables only in cases where all variables in the return type can be deduced from the input type(s).
> 	at org.apache.flink.api.java.typeutils.TypeExtractor.createTypeInfoWithTypeHierarchy(TypeExtractor.java:915)
> 	at org.apache.flink.api.java.typeutils.TypeExtractor.privateCreateTypeInfo(TypeExtractor.java:836)
> 	at org.apache.flink.api.java.typeutils.TypeExtractor.createTypeInfo(TypeExtractor.java:802)
> 	at org.apache.flink.graph.Graph.mapEdges(Graph.java:544)
> 	at org.apache.flink.graph.library.ConnectedComponents.run(ConnectedComponents.java:76)
> 	at org.apache.flink.graph.library.ConnectedComponents.run(ConnectedComponents.java:51)
> 	at org.apache.flink.graph.Graph.run(Graph.java:1792)
> {code}
> I copied code that is used to test the ConnectedComponents algorithm from flink/flink-libraries/flink-gelly/src/test/java/org/apache/flink/graph/library/ConnectedComponentsWithRandomisedEdgesITCase.java to try it on another path, because my own code which converts a Gradoop Graph into a Gelly graph and executes the algorithm leads to the afformentioned exception.
> However, even the testcode gave me the exception.
> Any ideas?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)