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 287FC185B4 for ; Fri, 25 Mar 2016 13:26:27 +0000 (UTC) Received: (qmail 6183 invoked by uid 500); 25 Mar 2016 13:26:27 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 6077 invoked by uid 500); 25 Mar 2016 13:26:27 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 6044 invoked by uid 99); 25 Mar 2016 13:26:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2016 13:26:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9E2382C1F5A for ; Fri, 25 Mar 2016 13:26:25 +0000 (UTC) Date: Fri, 25 Mar 2016 13:26:25 +0000 (UTC) From: "Vasilisa Sidorova (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-2880) Starting ignite.sh from command line gets ClassNotFoundException after messaging examples running 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-2880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vasilisa Sidorova updated IGNITE-2880: --------------------------------------- Description: --------------------------------------------- DESCRIPTION --------------------------------------------- If you run any messaging example (java or scala) in the cluster and then try to run new node from command line the node will be started but gets ClassNotFoundException --------------------------------------------- STEPS FOR REPRODUCE --------------------------------------------- # Build examples in IDE # Run ExampleNodeStartup or ./bin/ignite.sh ./examples/config/example-ignite.xml (it doesn't matter) # Run any messaging example and wait while it will be finished # Run one more node from command line: {noformat} ./bin/ignite.sh ./examples/config/example-ignite.xml {noformat} --------------------------------------------- ACTUAL RESULT --------------------------------------------- Node is started but gets ClassNotFoundException: {noformat} [18:34:59,563][SEVERE][tcp-disco-msg-worker-#2%null%][TcpDiscoverySpi] Failed to unmarshal discovery data for component: 0 class org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading): sun.misc.Launcher$AppClassLoader@1447034b at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:108) at org.apache.ignite.marshaller.AbstractMarshaller.unmarshal(AbstractMarshaller.java:78) at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.onExchange(TcpDiscoverySpi.java:1717) at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processNodeAddedMessage(ServerImpl.java:3685) at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2252) at org.apache.ignite.spi.discovery.tcp.ServerImpl$MessageWorkerAdapter.body(ServerImpl.java:5789) at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2161) at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62) Caused by: java.lang.ClassNotFoundException: org.apache.ignite.scalar.examples.ScalarPingPongExample$$anon$1 at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:278) at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8213) at org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at org.apache.ignite.internal.GridMessageListenHandler.readExternal(GridMessageListenHandler.java:254) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at org.apache.ignite.internal.processors.continuous.GridContinuousProcessor$DiscoveryDataItem.readExternal(GridContinuousProcessor.java:1618) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at org.apache.ignite.internal.util.IgniteUtils.readList(IgniteUtils.java:5176) at org.apache.ignite.internal.util.IgniteUtils.readCollection(IgniteUtils.java:1637) at org.apache.ignite.internal.processors.continuous.GridContinuousProcessor$DiscoveryData.readExternal(GridContinuousProcessor.java:1533) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102) ... 7 more {noformat} --------------------------------------------- EXPECTED RESULT --------------------------------------------- Node should be started without any exception --------------------------------------------- ADDITIONAL INFO --------------------------------------------- # Couldn't reproduce for another examples but after this exception another examples are failed with the same exception while cache wouldn't be restarted # Isn't reproducible if in the last step ExampleNodeStartup is started instead command line node was: --------------------------------------------- DESCRIPTION --------------------------------------------- If you run any messaging example (java or scala) in the cluster and then try to run new node from command line the node will be started but gets ClassNotFoundException --------------------------------------------- STEPS FOR REPRODUCE --------------------------------------------- # Build examples in IDE # Run ExampleNodeStartup or ./bin/ignite.sh ./examples/config/example-ignite.xml (it doesn't matter) # Run any messaging example and wait while it will be finished # Run one more node from command line: {noformat} ./bin/ignite.sh ./examples/config/example-ignite.xml {noformat} --------------------------------------------- ACTUAL RESULT --------------------------------------------- Node is started but gets ClassNotFoundException: {noformat} [18:34:59,563][SEVERE][tcp-disco-msg-worker-#2%null%][TcpDiscoverySpi] Failed to unmarshal discovery data for component: 0 class org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading): sun.misc.Launcher$AppClassLoader@1447034b at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:108) at org.apache.ignite.marshaller.AbstractMarshaller.unmarshal(AbstractMarshaller.java:78) at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.onExchange(TcpDiscoverySpi.java:1717) at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processNodeAddedMessage(ServerImpl.java:3685) at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2252) at org.apache.ignite.spi.discovery.tcp.ServerImpl$MessageWorkerAdapter.body(ServerImpl.java:5789) at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2161) at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62) Caused by: java.lang.ClassNotFoundException: org.apache.ignite.scalar.examples.ScalarPingPongExample$$anon$1 at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:278) at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8213) at org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at org.apache.ignite.internal.GridMessageListenHandler.readExternal(GridMessageListenHandler.java:254) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at org.apache.ignite.internal.processors.continuous.GridContinuousProcessor$DiscoveryDataItem.readExternal(GridContinuousProcessor.java:1618) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at org.apache.ignite.internal.util.IgniteUtils.readList(IgniteUtils.java:5176) at org.apache.ignite.internal.util.IgniteUtils.readCollection(IgniteUtils.java:1637) at org.apache.ignite.internal.processors.continuous.GridContinuousProcessor$DiscoveryData.readExternal(GridContinuousProcessor.java:1533) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102) ... 7 more {noformat} --------------------------------------------- EXPECTED RESULT --------------------------------------------- Node should be started without any exception --------------------------------------------- ADDITIONAL INFO --------------------------------------------- # Couldn't reproduce for another examples # Isn't reproducible if in the last step ExampleNodeStartup is started instead command line node > Starting ignite.sh from command line gets ClassNotFoundException after messaging examples running > ------------------------------------------------------------------------------------------------- > > Key: IGNITE-2880 > URL: https://issues.apache.org/jira/browse/IGNITE-2880 > Project: Ignite > Issue Type: Bug > Components: general > Affects Versions: 1.6 > Environment: Ubuntu 14.04, Ignite 1.6.0 > Reporter: Vasilisa Sidorova > > --------------------------------------------- > DESCRIPTION > --------------------------------------------- > If you run any messaging example (java or scala) in the cluster and then try to run new node from command line the node will be started but gets ClassNotFoundException > --------------------------------------------- > STEPS FOR REPRODUCE > --------------------------------------------- > # Build examples in IDE > # Run ExampleNodeStartup or ./bin/ignite.sh ./examples/config/example-ignite.xml (it doesn't matter) > # Run any messaging example and wait while it will be finished > # Run one more node from command line: > {noformat} > ./bin/ignite.sh ./examples/config/example-ignite.xml > {noformat} > --------------------------------------------- > ACTUAL RESULT > --------------------------------------------- > Node is started but gets ClassNotFoundException: > {noformat} > [18:34:59,563][SEVERE][tcp-disco-msg-worker-#2%null%][TcpDiscoverySpi] Failed to unmarshal discovery data for component: 0 > class org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading): sun.misc.Launcher$AppClassLoader@1447034b > at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:108) > at org.apache.ignite.marshaller.AbstractMarshaller.unmarshal(AbstractMarshaller.java:78) > at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.onExchange(TcpDiscoverySpi.java:1717) > at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processNodeAddedMessage(ServerImpl.java:3685) > at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2252) > at org.apache.ignite.spi.discovery.tcp.ServerImpl$MessageWorkerAdapter.body(ServerImpl.java:5789) > at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2161) > at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62) > Caused by: java.lang.ClassNotFoundException: org.apache.ignite.scalar.examples.ScalarPingPongExample$$anon$1 > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:278) > at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8213) > at org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54) > at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612) > at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) > at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) > at org.apache.ignite.internal.GridMessageListenHandler.readExternal(GridMessageListenHandler.java:254) > at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) > at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) > at org.apache.ignite.internal.processors.continuous.GridContinuousProcessor$DiscoveryDataItem.readExternal(GridContinuousProcessor.java:1618) > at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) > at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) > at org.apache.ignite.internal.util.IgniteUtils.readList(IgniteUtils.java:5176) > at org.apache.ignite.internal.util.IgniteUtils.readCollection(IgniteUtils.java:1637) > at org.apache.ignite.internal.processors.continuous.GridContinuousProcessor$DiscoveryData.readExternal(GridContinuousProcessor.java:1533) > at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837) > at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) > at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102) > ... 7 more > {noformat} > --------------------------------------------- > EXPECTED RESULT > --------------------------------------------- > Node should be started without any exception > --------------------------------------------- > ADDITIONAL INFO > --------------------------------------------- > # Couldn't reproduce for another examples but after this exception another examples are failed with the same exception while cache wouldn't be restarted > # Isn't reproducible if in the last step ExampleNodeStartup is started instead command line node -- This message was sent by Atlassian JIRA (v6.3.4#6332)