You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "mingleizhang (JIRA)" <ji...@apache.org> on 2017/07/19 13:54:00 UTC

[jira] [Commented] (FLINK-7225) Cutoff exception message in StateDescriptor

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

mingleizhang commented on FLINK-7225:
-------------------------------------

What I correct is like following. What do you think ?

{code:java}
		try {
			this.typeInfo = TypeExtractor.createTypeInfo(type);
		} catch (Exception e) {
			throw new RuntimeException("Cannot create full type information based on the given class. " +
				"If the type has generics, please make the type to be parameterized by using generics.", e);
		}
{code}



> Cutoff exception message in StateDescriptor
> -------------------------------------------
>
>                 Key: FLINK-7225
>                 URL: https://issues.apache.org/jira/browse/FLINK-7225
>             Project: Flink
>          Issue Type: Bug
>          Components: State Backends, Checkpointing
>    Affects Versions: 1.4.0
>            Reporter: Chesnay Schepler
>
> When the type extraction fails in the StateDescriptor constructor an exception is thrown, but the message is cutoff and doesn't contain any advice to remedy the situation.
> {code}
> try {
> 			this.typeInfo = TypeExtractor.createTypeInfo(type);
> 		} catch (Exception e) {
> 			throw new RuntimeException("Cannot create full type information based on the given class. If the type has generics, please", e);
> 		}
> {code}



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