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 <[email protected]>
Date:   2015-08-11T14:07:22Z

    [FLINK-2509] [runtime] Add class loader info into the exception message 
when user code classes are not found.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to