Getting Caused by: java.lang.ClassNotFoundException: io.netty.handler.codec.ByteToMessageDecoder

Rohan Kalambekar r.kalambekar at tvilight.com
Tue Nov 17 22:40:47 EST 2015


Hi,

I am new to RIAK, I am trying to search data in RIAK bucket using secondary
indexes.

I am getting this exception while executing the sample TasteOfRiak.java
class available on RIAK website.

Caused by: java.lang.ClassNotFoundException:
io.netty.handler.codec.ByteToMessageDecoder

The problem the logs point is for RIAKNode


 RiakNode node = new RiakNode.Builder().withRemoteAddress("10.0.0.250")
                .withRemotePort(8087).build();

Please find the attached error logs.

Regards,
Rohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20151118/10a0f2bd/attachment-0002.html>
-------------- next part --------------
Exception in thread "main" java.lang.NoClassDefFoundError: io/netty/handler/codec/ByteToMessageDecoder
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at com.basho.riak.client.core.RiakNode$Builder.<clinit>(RiakNode.java:1235)
	at prac.setUpCluster(prac.java:53)
	at prac.main(prac.java:23)
Caused by: java.lang.ClassNotFoundException: io.netty.handler.codec.ByteToMessageDecoder
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 27 more


More information about the riak-users mailing list