[
https://issues.apache.org/jira/browse/IGNITE-4358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15746656#comment-15746656
]
Rohit Mohta commented on IGNITE-4358:
-------------------------------------
[~ascherbakov] Changed the message per your comment. NPE check was present in
my earlier patch too.
```
Objects.requireNonNull(r, "Trying to execute a null closure. Make sure the
closure is not assignable from classes listed in MarshallerExclusions");
```
> Better error reporting in case of unmarshallable classes.
> ---------------------------------------------------------
>
> Key: IGNITE-4358
> URL: https://issues.apache.org/jira/browse/IGNITE-4358
> Project: Ignite
> Issue Type: Improvement
> Components: compute, messaging, newbie
> Affects Versions: 1.6
> Reporter: Alexei Scherbakov
> Assignee: Rohit Mohta
> Priority: Trivial
> Labels: newbie
> Fix For: 2,0
>
> Attachments: IGNITE-4358-Exceptionlog-05Dec2016.txt,
> IGNITE-4358-GridClosureProcessor-05Dec2016.patch, PureIgniteRunTest.java
>
>
> When trying to execute Thread's derived class implementing IgniteRunnable
> using compute API, it silently serializes to null because Thread
> serialization is prohibited in MarshallerExclusions and throws NPE on
> executing node.
> We need to throw more informative exception for such case.
> Reproducer in the attachment.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)