[
https://issues.apache.org/jira/browse/FLINK-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14681990#comment-14681990
]
ASF GitHub Bot commented on FLINK-2509:
---------------------------------------
Github user mxm commented on the pull request:
https://github.com/apache/flink/pull/1008#issuecomment-129947817
This is great and will be very helpful while debugging! Only the output is
very hard to read. How about this? Just some new lines and indention:
```
Cannot load user class: com.foo.bar.SomeClass
ClassLoader info:
URL ClassLoader:
url: 'http://localhost:26712/some/file/path'
file: '/tmp/flink-url-test2825910185710886145.tmp' (valid JAR)
file: '/tmp/flink-url-test4914469684250387785.tmp' (invalid JAR:
error in opening zip file)
file: '/tmp/flink-url-test5462325335282720117.tmp' (missing)
```
I think users are less prone to read Exception messages when they have to
scroll horizontally. We usually don't include newlines in our Exceptions.
> Improve error messages when user code classes are not found
> -----------------------------------------------------------
>
> Key: FLINK-2509
> URL: https://issues.apache.org/jira/browse/FLINK-2509
> Project: Flink
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.10
> Reporter: Stephan Ewen
> Assignee: Stephan Ewen
> Fix For: 0.10
>
>
> When a job fails because the user code classes are not found, we should add
> some information about the class loader and class path into the exception
> message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)