[jira] [Created] (IGNITE-1272) PortableMarshaller: issues when different class loaders are used

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-1272) PortableMarshaller: issues when different class loaders are used

Anton Vinogradov (Jira)
Denis Magda created IGNITE-1272:
-----------------------------------

             Summary: PortableMarshaller: issues when different class loaders are used
                 Key: IGNITE-1272
                 URL: https://issues.apache.org/jira/browse/IGNITE-1272
             Project: Ignite
          Issue Type: Bug
            Reporter: Denis Magda


The reason is that a loader is not passed to required places when needed.
Reproduced with the following tests:
- {{IgniteCacheAbstractExecutionContextTest.testUserClassLoader()}} fails with PortableMarshaller enabled.
- {{GridDeploymentMessageCountSelfTest.testCacheValueDeploymentOnPut()}}

Another issue is when {{PortableContext}} returns {{PortableClassDescriptor}} by type id. Returned descriptor has a constructor which already has been loaded with another class loader. Fix is not trivial and issue is reproduced with {{GridP2PRemoteClassLoadersSelfTest}}

Look for corresponding TODOs in the code.
Unmute tests when fixed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)