Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # dev >> Runtime problem in 8 beta1?


Copy link to this message
-
Re: Runtime problem in 8 beta1?
You need scala 2.8.
On Aug 26, 2013 9:16 PM, "David Williams" <[EMAIL PROTECTED]> wrote:

>
> Hi Jay,
>
> To which jars are you referring?  Does scala have a Maven coodinate?  As
> it stands I am compiling with.
>
>
> <dependency>
>     <groupId>org.scala-lang</groupId>
>     <artifactId>scala-library</artifactId>
>     <version>2.10.2</version>
>         </dependency>
>         <dependency>
>     <groupId>org.scala-lang</groupId>
>     <artifactId>scala-reflect</artifactId>
>     <version>2.10.2</version>
> </dependency>
>
>
>
>
> --
>
>
>
>
>
>
> On 8/26/13 8:35 PM, "Jay Kreps" <[EMAIL PROTECTED]> wrote:
>
> >Nothing complex here, you just don't have the the scala library on your
> >classpath. It works just like any jar--if there is a dependency on classes
> >in the jar it needs to be on the classpath.
> >
> >
> >On Mon, Aug 26, 2013 at 7:10 PM, David Williams
> ><[EMAIL PROTECTED]>wrote:
> >
> >> Hi all,
> >>
> >> First let me say I have detailed the description of the issue I have in
> >>an
> >> Stack Overflow Ticket here:
> >>
> >>
> >>
> >>
> http://stackoverflow.com/questions/18455480/kafka-quickstart-java-lang-no
> >>classdeffounderror-scala-scalaobject
> >>
> >> I am trying to build a small prototype for a project in which I want to
> >> use Kafka.  I am following this example:
> >>
> >>
> https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Group+Example
> >>
> >>
> >> However, when I compile and run the code I get this runtime exception.
> >>  What should I do to get a working prototype / example???
> >>
> >>
> >> Exception in thread "main" java.lang.reflect.InvocationTargetException
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >>
> >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> >>:57)
> >> at
> >>
> >>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> >>mpl.java:43)
> >> at java.lang.reflect.Method.invoke(Method.java:606)
> >> at com.simontuffs.onejar.Boot.run(Boot.java:340)
> >> at com.simontuffs.onejar.Boot.main(Boot.java:166)
> >> Caused by: java.lang.NoClassDefFoundError: scala/ScalaObject
> >> at java.lang.ClassLoader.defineClass1(Native Method)
> >> at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
> >> at
> >>
> >>com.simontuffs.onejar.JarClassLoader.defineClass(JarClassLoader.java:803)
> >> at
> >>com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:710)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >> at
> >>com.simontuffs.onejar.JarClassLoader.loadClass(JarClassLoader.java:630)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >> at java.lang.ClassLoader.defineClass1(Native Method)
> >> at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
> >> at
> >>
> >>com.simontuffs.onejar.JarClassLoader.defineClass(JarClassLoader.java:803)
> >> at
> >>com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:710)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >> at
> >>com.simontuffs.onejar.JarClassLoader.loadClass(JarClassLoader.java:630)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >> at java.lang.Class.getDeclaredMethods0(Native Method)
> >> at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
> >> at java.lang.Class.getDeclaredMethods(Class.java:1845)
> >> at
> >>
> >>org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMeth
> >>ods(StandardAnnotationMetadata.java:180)
> >> at
> >>
> >>org.springframework.context.annotation.ConfigurationClassParser.doProcess
> >>ConfigurationClass(ConfigurationClassParser.java:222)
> >> at
> >>
> >>org.springframework.context.annotation.ConfigurationClassParser.processCo
> >>nfigurationClass(ConfigurationClassParser.java:165)
> >> at
> >>
> >>org.springframework.context.annotation.ConfigurationClassParser.parse(Con
> >>figurationClassParser.java:140)
> >> at
> >>
> >>
> org.springframework.context.annotation.ConfigurationClassPostProcessor.pr
> >>ocessConfigBeanDefinitions(ConfigurationClassPostProcessor.java:282)