Ratpack and Dagger

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Ratpack and Dagger

needpoweredchg
Has anyone successfully used Ratpack with Dagger?
---
www.needpoweredchange.com
Reply | Threaded
Open this post in threaded view
|

Re: Ratpack and Dagger

pawel
This post was updated on .
No :(

it fails with

java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at com.fasterxml.jackson.datatype.jdk8.Jdk8Module.setupModule(Jdk8Module.java:26)
        at com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:550)
        at ratpack.config.internal.DefaultConfigDataBuilder.newDefaultObjectMapper(DefaultConfigDataBuilder.java:203)
        at ratpack.config.internal.DefaultConfigDataBuilder.<init>(DefaultConfigDataBuilder.java:54)
        at ratpack.server.internal.DefaultServerConfigBuilder.<init>(DefaultServerConfigBuilder.java:66)
        at ratpack.server.ServerConfig.builder(ServerConfig.java:115)
        at my.http.DownstreamHttp.lambda$start$1(DownstreamHttp.java:75)
        at ratpack.server.internal.RatpackServerDefinition.build(RatpackServerDefinition.java:43)
        at ratpack.server.internal.DefaultRatpackServer.lambda$buildUserDefinition$4(DefaultRatpackServer.java:201)
        at ratpack.impose.Impositions.impose(Impositions.java:117)
        at ratpack.server.internal.DefaultRatpackServer.buildUserDefinition(DefaultRatpackServer.java:199)
        at ratpack.server.internal.DefaultRatpackServer.start(DefaultRatpackServer.java:114)
        at ratpack.server.RatpackServer.start(RatpackServer.java:90)

there was no problem without dagger :/