Hi everyone,
I'm implmenting an application using guice version 3 on
Vertx http://vertx.io/
Often I get a java.lang.LinkageError exception as my application starts.
More detailed exception is as follows:
com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting constructor, java.lang.LinkageError: loader constraint
violation: when resolving method
"my.module.impl.BaseVerticle.<init>(Lcom/google/inject/Injector;)V" the
class loader (instance of org/vertx/java/platform/impl/ModuleClassLoader)
of the current class, my/module/module/impl/RESTVerticle, and the class
loader (instance of org/vertx/java/platform/impl/ModuleClassLoader) for
resolved class, my/module/impl/BaseVerticle, have different Class objects
for the type cle.<init>(Lcom/google/inject/Injector;)V used in the signature
at my.rest.module.impl.RESTVerticle.<init>(Unknown Source)
while locating my/rest.module.impl.RESTVerticle
1 error
at
com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
at
com.englishtown.vertx.guice.GuiceVerticleLoader.createRealVerticle(GuiceVerticleLoader.java:140)
at
com.englishtown.vertx.guice.GuiceVerticleLoader.createRealVerticle(GuiceVerticleLoader.java:103)
at
com.englishtown.vertx.guice.GuiceVerticleLoader.start(GuiceVerticleLoader.java:66)
at
org.vertx.java.platform.impl.DefaultPlatformManager$21.run(DefaultPlatformManager.java:1743)
at
org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:175)
at
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:370)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353)
at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at java.lang.Thread.run(Thread.java:745)
The exception is thrown not regularly and it is difficult to find a
pattern. Any ideas to solve this problem?
Thanks in advance!
Regards,
Timur
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-guice/3922193a-6e3d-4317-9ae2-dffbd2050880%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.