ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasilisa Sidorova (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-2880) Starting ignite.sh from command line gets ClassNotFoundException after messaging examples running
Date Fri, 25 Mar 2016 13:26:25 GMT

     [ 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)

Mime
View raw message