You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Stanilovsky Evgeny (JIRA)" <ji...@apache.org> on 2017/02/02 12:57:51 UTC

[jira] [Created] (IGNITE-4647) ComputeTask with custom classLoader fail

Stanilovsky Evgeny created IGNITE-4647:
------------------------------------------

             Summary: ComputeTask with custom classLoader fail
                 Key: IGNITE-4647
                 URL: https://issues.apache.org/jira/browse/IGNITE-4647
             Project: Ignite
          Issue Type: Bug
          Components: compute
    Affects Versions: 2.0
            Reporter: Stanilovsky Evgeny
            Priority: Minor
         Attachments: repro-2813.tar.gz

In case, when we want to run ComputeTask with custom classLoader and custom inherited IgniteCallable class initialized with instance from custom loader, catch error *java.lang.ClassNotFoundException*. 

-- deploy node code --
        IgniteConfiguration icfg = new IgniteConfiguration();
        icfg.setGridName("grid");
        icfg.setPeerClassLoadingEnabled(true);
        icfg.setClassLoader(igniteLoader);

--client code --
        IgniteConfiguration icfg = new IgniteConfiguration();
        icfg.setGridName("grid");
        icfg.setPeerClassLoadingEnabled(true);

all detailed info, how to reproduce in attach.

debug shows that function {code} processResourceRequest(UUID nodeId, GridDeploymentRequest req) {code} return classLoader {code} ClassLoader ldr = dep.classLoader(); {code} not that expected (that was setting throught icfg.setClassLoader(igniteLoader);) but classLoader from {code} ignite.compute().affinityCall("cache", i, igniteCallable); {code}    {code} igniteCallable {code} object.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)