ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-546) CacheQueryExample got exception if run with node started from shell
Date Sun, 22 Mar 2015 07:47:10 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14374830#comment-14374830
] 

Valentin Kulichenko commented on IGNITE-546:
--------------------------------------------

In current version these examples should be started with {{ExampleNodeStartup}} only (updated
JavaDoc).

> CacheQueryExample got exception if run with node started from shell
> -------------------------------------------------------------------
>
>                 Key: IGNITE-546
>                 URL: https://issues.apache.org/jira/browse/IGNITE-546
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: sprint-2
>            Reporter: Sergey Kozlov
>            Assignee: Valentin Kulichenko
>             Fix For: sprint-2
>
>
> 1. Start node bin\ignite.bat examples\config\example-ignite.xml
> 2. Run CacheQueryExample.
> 3. Both example and shell nodes got execeptions:
> Shell node output:
> {noformat}
> [22:12:32] Topology snapshot [ver=2, nodes=2, CPUs=4, heap=2.8GB]
> [22:12:33,160][SEVERE][tcp-disco-sock-reader-#12%null][TcpDiscoverySpi] Failed to read
message [sock=Socket[addr=/127.0.
> 0.1,port=60808,localport=47500], locNodeId=b7173034-d007-4093-8fd4-200fd568af11, rmtNodeId=435e2420-54c9-4ed6-922f-54df6
> 96aafe4]
> class org.apache.ignite.IgniteCheckedException: Failed to find class with given class
loader for unmarshalling (make sur
> e same versions of all classes are available on all nodes or enable peer-class-loading):
sun.misc.Launcher$AppClassLoade
> r@c387f44
>         at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:104)
>         at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$SocketReader.body(TcpDiscoverySpi.java:4798)
>         at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> Caused by: java.lang.ClassNotFoundException: org.apache.ignite.examples.java7.datagrid.CacheQueryExample$Organization
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:344)
>         at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:7801)
>         at org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.j
> ava:52)
>         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)
>         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
>         at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1484)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1334)
>         at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1707)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1345)
>         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
>         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
>         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
>         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
>         at java.util.ArrayList.readObject(ArrayList.java:791)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:483)
>         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
>         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
>         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
>         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
>         at org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryCustomEventMessage.readExternal(TcpDiscoveryCustomEv
> entMessage.java:68)
>         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1840)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1799)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
>         at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:98)
>         ... 2 more
> [22:12:38] Topology snapshot [ver=3, nodes=1, CPUs=4, heap=1.0GB]
> {noformat}
> Example node output:
> {noformat}
> [22:12:33] Topology snapshot [ver=2, nodes=2, CPUs=4, heap=2.8GB]
> >>> Cache query example started.
> [22:12:33,320][ERROR][tcp-disco-msg-worker-#5%null][TcpDiscoverySpi] Failed to send message
to next node [msg=TcpDiscoveryAbstractMessage [senderNodeId=null, id=a7f20cd3c41-435e2420-54c9-4ed6-922f-54df696aafe4,
verifierNodeId=null, topVer=0, destClientNodeId=null, pendingIdx=0, isClient=false], next=TcpDiscoveryNode
[id=b7173034-d007-4093-8fd4-200fd568af11, addrs=[127.0.0.1, 192.168.100.9, 0:0:0:0:0:0:0:1],
sockAddrs=[/127.0.0.1:47500, ksm-homepc/169.254.90.143:47500, /192.168.100.9:47500, /0:0:0:0:0:0:0:1:47500],
discPort=47500, order=1, intOrder=1, loc=false, ver=1.0.0#20150321-sha1:13b2736f, isClient=false]]
> class org.apache.ignite.IgniteCheckedException: Failed to send message to next node [msg=TcpDiscoveryAbstractMessage
[senderNodeId=null, id=a7f20cd3c41-435e2420-54c9-4ed6-922f-54df696aafe4, verifierNodeId=null,
topVer=0, destClientNodeId=null, pendingIdx=0, isClient=false], next=GridNode [id=b7173034-d007-4093-8fd4-200fd568af11,
order=1, addr=[127.0.0.1, 192.168.100.9, 0:0:0:0:0:0:0:1], daemon=false]]
> 	at org.apache.ignite.internal.util.IgniteUtils.exceptionWithSuppressed(IgniteUtils.java:8368)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.sendMessageAcrossRing(TcpDiscoverySpi.java:2938)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processCustomMessage(TcpDiscoverySpi.java:4508)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processMessage(TcpDiscoverySpi.java:2599)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter$MessageWorkerAdapter.body(TcpDiscoverySpiAdapter.java:954)
> 	at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> 	Suppressed: java.io.EOFException
> 		at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter.readReceipt(TcpDiscoverySpiAdapter.java:588)
> 		at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.sendMessageAcrossRing(TcpDiscoverySpi.java:2875)
> 		... 4 more
> [22:12:33] Topology snapshot [ver=3, nodes=1, CPUs=4, heap=1.8GB]
> >>> People with salaries between 0 and 1000: 
> >>>     Entry [key=CacheAffinityKey [key=68c8d13e-695b-4b25-ac13-e4cb6319b596,
affKey=d00e36d6-a818-40b3-b685-d4403096b13f], val=Person [firstName=Jane, lastName=Doe, id=68c8d13e-695b-4b25-ac13-e4cb6319b596,
orgId=d00e36d6-a818-40b3-b685-d4403096b13f, resume=Jane Doe has Bachelor Degree., salary=1000.0]]
> >>>     Entry [key=CacheAffinityKey [key=fd628d8e-5c52-409b-9be2-249dc3c5a292,
affKey=fc915f6e-b807-44dc-8e10-882e34c4d735], val=Person [firstName=John, lastName=Smith,
id=fd628d8e-5c52-409b-9be2-249dc3c5a292, orgId=fc915f6e-b807-44dc-8e10-882e34c4d735, resume=John
Smith has Bachelor Degree., salary=1000.0]]
> >>> People with salaries between 1000 and 2000: 
> >>>     Entry [key=CacheAffinityKey [key=4f35eaa5-cec6-41bc-9dc7-1e7ca6f4c047,
affKey=fc915f6e-b807-44dc-8e10-882e34c4d735], val=Person [firstName=Jane, lastName=Smith,
id=4f35eaa5-cec6-41bc-9dc7-1e7ca6f4c047, orgId=fc915f6e-b807-44dc-8e10-882e34c4d735, resume=Jane
Smith has Master Degree., salary=2000.0]]
> >>>     Entry [key=CacheAffinityKey [key=a997194e-2e9e-46cb-add8-9012a5d22bad,
affKey=d00e36d6-a818-40b3-b685-d4403096b13f], val=Person [firstName=John, lastName=Doe, id=a997194e-2e9e-46cb-add8-9012a5d22bad,
orgId=d00e36d6-a818-40b3-b685-d4403096b13f, resume=John Doe has Master Degree., salary=2000.0]]
> >>> People with salaries greater than 2000: 
> >>> Following people are 'GridGain' employees: 
> >>>     Entry [key=CacheAffinityKey [key=68c8d13e-695b-4b25-ac13-e4cb6319b596,
affKey=d00e36d6-a818-40b3-b685-d4403096b13f], val=Person [firstName=Jane, lastName=Doe, id=68c8d13e-695b-4b25-ac13-e4cb6319b596,
orgId=d00e36d6-a818-40b3-b685-d4403096b13f, resume=Jane Doe has Bachelor Degree., salary=1000.0]]
> >>>     Entry [key=CacheAffinityKey [key=a997194e-2e9e-46cb-add8-9012a5d22bad,
affKey=d00e36d6-a818-40b3-b685-d4403096b13f], val=Person [firstName=John, lastName=Doe, id=a997194e-2e9e-46cb-add8-9012a5d22bad,
orgId=d00e36d6-a818-40b3-b685-d4403096b13f, resume=John Doe has Master Degree., salary=2000.0]]
> >>> Following people are 'Other' employees: 
> >>>     Entry [key=CacheAffinityKey [key=4f35eaa5-cec6-41bc-9dc7-1e7ca6f4c047,
affKey=fc915f6e-b807-44dc-8e10-882e34c4d735], val=Person [firstName=Jane, lastName=Smith,
id=4f35eaa5-cec6-41bc-9dc7-1e7ca6f4c047, orgId=fc915f6e-b807-44dc-8e10-882e34c4d735, resume=Jane
Smith has Master Degree., salary=2000.0]]
> >>>     Entry [key=CacheAffinityKey [key=fd628d8e-5c52-409b-9be2-249dc3c5a292,
affKey=fc915f6e-b807-44dc-8e10-882e34c4d735], val=Person [firstName=John, lastName=Smith,
id=fd628d8e-5c52-409b-9be2-249dc3c5a292, orgId=fc915f6e-b807-44dc-8e10-882e34c4d735, resume=John
Smith has Bachelor Degree., salary=1000.0]]
> >>> Following people have 'Master Degree' in their resumes: 
> >>>     Entry [key=CacheAffinityKey [key=a997194e-2e9e-46cb-add8-9012a5d22bad,
affKey=d00e36d6-a818-40b3-b685-d4403096b13f], val=Person [firstName=John, lastName=Doe, id=a997194e-2e9e-46cb-add8-9012a5d22bad,
orgId=d00e36d6-a818-40b3-b685-d4403096b13f, resume=John Doe has Master Degree., salary=2000.0]]
> >>>     Entry [key=CacheAffinityKey [key=4f35eaa5-cec6-41bc-9dc7-1e7ca6f4c047,
affKey=fc915f6e-b807-44dc-8e10-882e34c4d735], val=Person [firstName=Jane, lastName=Smith,
id=4f35eaa5-cec6-41bc-9dc7-1e7ca6f4c047, orgId=fc915f6e-b807-44dc-8e10-882e34c4d735, resume=Jane
Smith has Master Degree., salary=2000.0]]
> >>> Following people have 'Bachelor Degree' in their resumes: 
> >>>     Entry [key=CacheAffinityKey [key=68c8d13e-695b-4b25-ac13-e4cb6319b596,
affKey=d00e36d6-a818-40b3-b685-d4403096b13f], val=Person [firstName=Jane, lastName=Doe, id=68c8d13e-695b-4b25-ac13-e4cb6319b596,
orgId=d00e36d6-a818-40b3-b685-d4403096b13f, resume=Jane Doe has Bachelor Degree., salary=1000.0]]
> >>>     Entry [key=CacheAffinityKey [key=fd628d8e-5c52-409b-9be2-249dc3c5a292,
affKey=fc915f6e-b807-44dc-8e10-882e34c4d735], val=Person [firstName=John, lastName=Smith,
id=fd628d8e-5c52-409b-9be2-249dc3c5a292, orgId=fc915f6e-b807-44dc-8e10-882e34c4d735, resume=John
Smith has Bachelor Degree., salary=1000.0]]
> >>> Average salary for 'GridGain' employees: [[1500.0]]
> >>> Names of all employees:
> >>>     Jane Smith
> >>>     Jane Doe
> >>>     John Smith
> >>>     John Doe
> >>> Names of all employees:
> >>>     Jane Smith
> >>>     Jane Doe
> >>>     John Smith
> >>>     John Doe
> >>> Names of all employees and organizations they belong to:
> >>>     Jane Doe
> >>>     GridGain
> >>>     John Doe
> >>>     GridGain
> >>>     Jane Smith
> >>>     Other
> >>>     John Smith
> >>>     Other
> >>> Cache query example finished.
> [22:12:34] Ignite node stopped OK [uptime=00:00:01:389]
> Process finished with exit code 0
> {noformat}



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

Mime
View raw message