You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/08/11 16:12:45 UTC
[jira] [Commented] (FLINK-2509) Improve error messages when user
code classes are not found
[ https://issues.apache.org/jira/browse/FLINK-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14681842#comment-14681842 ]
ASF GitHub Bot commented on FLINK-2509:
---------------------------------------
GitHub user StephanEwen opened a pull request:
https://github.com/apache/flink/pull/1008
[FLINK-2509] Add class loader info to exception message when user code classes are not found
This pull request adds the following type of info to the exception message:
```
Cannot load user class: com.foo.bar.SomeClass
ClassLoader info: URL ClassLoader: -- 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)
```
This should help diagnosing why sometimes classes cannot be resolved, even though the JAR files seem valid.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/StephanEwen/incubator-flink class_loader_info
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1008.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1008
----
commit 00e123709f304bd7f602989f28b111b8d282ebb1
Author: Stephan Ewen <se...@apache.org>
Date: 2015-08-11T14:07:22Z
[FLINK-2509] [runtime] Add class loader info into the exception message when user code classes are not found.
----
> 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)