java.lang.NoClassDefFoundError: org/apache/avro/io/DatumReader

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

,
Expert tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

Solutions on the web

via GitHub by HosiYuki
, 1 year ago
org/apache/avro/io/DatumReader
via Coderanch by Siegfried Heintze, 1 year ago
via Stack Overflow by Unknown author, 2 years ago
via Google Groups by Rajith Muditha Attapattu, 1 year ago
org/apache/maven/plugin/MojoNotFoundException
via Stack Overflow by MPH
, 2 years ago
org/apache/tools/ant/BuildException
java.lang.NoClassDefFoundError: org/apache/avro/io/DatumReader
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.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2658)
at org.apache.reef.tang.util.ReflectionUtilities.getNamedParameterTargetOrNull(ReflectionUtilities.java:311)
at org.apache.reef.tang.implementation.java.ClassHierarchyImpl.buildPathToNode(ClassHierarchyImpl.java:207)
at org.apache.reef.tang.implementation.java.ClassHierarchyImpl.registerClass(ClassHierarchyImpl.java:387)
at org.apache.reef.tang.implementation.java.ClassHierarchyImpl.register(ClassHierarchyImpl.java:331)
at org.apache.reef.tang.implementation.java.ClassHierarchyImpl.getNode(ClassHierarchyImpl.java:257)
at org.apache.reef.tang.implementation.java.InjectorImpl.parseDefaultImplementation(InjectorImpl.java:375)
at org.apache.reef.tang.implementation.java.InjectorImpl.buildInjectionPlan(InjectorImpl.java:449)
at org.apache.reef.tang.implementation.java.InjectorImpl.filterCandidateConstructors(InjectorImpl.java:193)
at org.apache.reef.tang.implementation.java.InjectorImpl.buildClassNodeInjectionPlan(InjectorImpl.java:277)
at org.apache.reef.tang.implementation.java.InjectorImpl.buildInjectionPlan(InjectorImpl.java:452)
at org.apache.reef.tang.implementation.java.InjectorImpl.getInjectionPlan(InjectorImpl.java:472)
at org.apache.reef.tang.implementation.java.InjectorImpl.getInstance(InjectorImpl.java:514)
at org.apache.reef.tang.implementation.java.InjectorImpl.getInstance(InjectorImpl.java:533)
at org.apache.reef.runtime.common.REEFLauncher.getREEFLauncher(REEFLauncher.java:106)
at org.apache.reef.runtime.common.REEFLauncher.main(REEFLauncher.java:167)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
18 times, 8 months ago
Once, 8 months ago
6 times, 9 months ago
6 times, 10 months ago
1226 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.