Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A790C18217 for ; Thu, 20 Aug 2015 10:39:51 +0000 (UTC) Received: (qmail 34355 invoked by uid 500); 20 Aug 2015 10:39:51 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 34277 invoked by uid 500); 20 Aug 2015 10:39:51 -0000 Mailing-List: contact issues-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list issues@ignite.incubator.apache.org Received: (qmail 34239 invoked by uid 99); 20 Aug 2015 10:39:51 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2015 10:39:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C1CBB1AA877 for ; Thu, 20 Aug 2015 10:39:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.774 X-Spam-Level: X-Spam-Status: No, score=0.774 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.006] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4kbPdjdhSWjt for ; Thu, 20 Aug 2015 10:39:46 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 3AEC442BB8 for ; Thu, 20 Aug 2015 10:39:46 +0000 (UTC) Received: (qmail 30665 invoked by uid 99); 20 Aug 2015 10:39:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2015 10:39:45 +0000 Date: Thu, 20 Aug 2015 10:39:45 +0000 (UTC) From: "Denis Magda (JIRA)" To: issues@ignite.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-1272) PortableMarshaller: issues when different class loaders are used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-1272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704661#comment-14704661 ] Denis Magda commented on IGNITE-1272: ------------------------------------- Stack dump for {{GridP2PRemoteClassLoadersSelfTest}}: {noformat} java.lang.Exception: <17:20:39,739> JOB CREATED at org.apache.ignite.internal.util.IgniteUtils.dumpStack(IgniteUtils.java:830) at org.apache.ignite.p2p.GridP2PRemoteClassLoadersSelfTest$GridP2PRemoteTestJob.(GridP2PRemoteClassLoadersSelfTest.java:235) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.gridgain.grid.internal.util.portable.GridPortableClassDescriptor.newInstance(GridPortableClassDescriptor.java:662) at org.gridgain.grid.internal.util.portable.GridPortableClassDescriptor.read(GridPortableClassDescriptor.java:578) at org.gridgain.grid.internal.util.portable.GridPortableReaderImpl.deserialize(GridPortableReaderImpl.java:1982) at org.gridgain.grid.internal.util.portable.GridPortableMarshaller.deserialize(GridPortableMarshaller.java:267) at org.gridgain.grid.marshaller.portable.PortableMarshaller.unmarshal(PortableMarshaller.java:302) at org.apache.ignite.internal.processors.job.GridJobWorker.initialize(GridJobWorker.java:382) at org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048) at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1730) at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:690) at org.apache.ignite.internal.managers.communication.GridIoManager.access$1500(GridIoManager.java:58) at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:653) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat} > 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 > Assignee: 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)