Sample application broken

108 views
Skip to first unread message

Andy Selvig

unread,
Sep 19, 2013, 3:43:04 PM9/19/13
to karafr...@googlegroups.com
Hey all-

I recently pulled up the latest Kara source and tried to run the sample application. It fails on launch, claiming that it can't find kara.app.Application. It looks like the classpath might be incorrect. There has been some substantial refactoring since the last time I worked on this component. Can someone involved (Max?) take a look and see if there's a quick fix?


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(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at kara.setup.SetupPackage$src$CLMain$e4b8becc.main(CLMain.kt:13)
at kara.setup.SetupPackage.main(CLMain.kt:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.NoClassDefFoundError: kara/app/Application
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
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:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at kara.app.AppLoader$loadApp$1.invoke(AppLoader.kt:69)
at kara.app.AppLoader$loadApp$1.invoke(AppLoader.kt)
at jet.runtime.Intrinsics.stupidSync(Intrinsics.java:87)
at kara.app.AppLoader.loadApp(AppLoader.kt:64)
at kara.server.JettyRunner.init(JettyRunner.kt:71)
at kara.cli.CliPackage$src$Main$a74f6115.server(Main.kt:17)
at kara.cli.CliPackage$src$Main$a74f6115.main2(Main.kt:150)
at kara.cli.CliPackage.main2(Main.kt:1)
... 11 more
Caused by: java.lang.ClassNotFoundException: kara.app.Application
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:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 30 more

Andy Selvig

unread,
Sep 20, 2013, 11:51:22 AM9/20/13
to Maxim Shafirov, karafr...@googlegroups.com
Perfect, thanks!


On Fri, Sep 20, 2013 at 1:42 AM, Maxim Shafirov <maxim.s...@gmail.com> wrote:
Fixed. KaraDemo module didn't followed convention of placing classfiles in 'bin' folder under the app directory.

--
You received this message because you are subscribed to the Google Groups "Kara Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karaframewor...@googlegroups.com.
To post to this group, send email to karafr...@googlegroups.com.
Visit this group at http://groups.google.com/group/karaframework.
For more options, visit https://groups.google.com/groups/opt_out.


Maxim Shafirov

unread,
Sep 20, 2013, 2:42:50 AM9/20/13
to Andy Selvig, karafr...@googlegroups.com
Fixed. KaraDemo module didn't followed convention of placing classfiles in 'bin' folder under the app directory.

On Sep 19, 2013, at 11:43 PM, Andy Selvig <ajse...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages