-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Milestone
Description
I am using https://github.com/fabric8-launcher/launcher-backend/ to test. This is the patch that needs to be applied to make it compile: https://gist.github.com/gastaldi/c62bf0c1cef7d250dae5c35a00564caf
Building
mvn clean install -Dmaven.test.skip=true -DfailIfNoTests=false -DskipTests
Running
source launcher-env-template.sh
java -jar web/target/launcher-backend-runner.jar
To reproduce the problem, once the app is running, run the following command:
export JWT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
curl http://localhost:8080/api/services/git/user --header Authorization:Bearer\ $JWT_TOKEN -v
Full stacktrace:
Caused by: java.lang.ClassFormatError: Duplicate method name "accept" with signature "(Lio.fabric8.launcher.base.identity.IdentityVisitor;)V" in class file io/fabric8/launcher/web/producers/AuthorizationTokenProducer_ProducerMethod_getIdentityProvider_a1a2b3eab2d8b154782b5ab216cab4307fac19d6_ClientProxy
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:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at io.fabric8.launcher.web.producers.AuthorizationTokenProducer_ProducerMethod_getIdentityProvider_a1a2b3eab2d8b154782b5ab216cab4307fac19d6_Bean$$function$$59.get(Unknown Source)
at org.jboss.protean.arc.LazyValue.get(LazyValue.java:42)
at io.fabric8.launcher.web.producers.AuthorizationTokenProducer_ProducerMethod_getIdentityProvider_a1a2b3eab2d8b154782b5ab216cab4307fac19d6_Bean.get(Unknown Source)
at io.fabric8.launcher.web.producers.AuthorizationTokenProducer_ProducerMethod_getIdentityProvider_a1a2b3eab2d8b154782b5ab216cab4307fac19d6_Bean.get(Unknown Source)
at io.fabric8.launcher.web.producers.GitServiceProducer_ProducerMethod_getGitService_62ab16e218ff64d3257a0d97ca89cda27a2c66de_Bean.create(Unknown Source)
at io.fabric8.launcher.web.producers.GitServiceProducer_ProducerMethod_getGitService_62ab16e218ff64d3257a0d97ca89cda27a2c66de_Bean.create(Unknown Source)
at org.jboss.protean.arc.RequestContext.get(RequestContext.java:56)
at io.fabric8.launcher.web.producers.GitServiceProducer_ProducerMethod_getGitService_62ab16e218ff64d3257a0d97ca89cda27a2c66de_ClientProxy.delegate(Unknown Source)
at io.fabric8.launcher.web.producers.GitServiceProducer_ProducerMethod_getGitService_62ab16e218ff64d3257a0d97ca89cda27a2c66de_ClientProxy.getLoggedUser(Unknown Source)
at io.fabric8.launcher.web.endpoints.GitEndpoint.getUser(GitEndpoint.java:55)
at io.fabric8.launcher.web.endpoints.GitEndpoint_ClientProxy.getUser(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:152)
at org.jboss.resteasy.core.MethodInjectorImpl.lambda$invoke$3(MethodInjectorImpl.java:123)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
at java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:614)
at java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:1983)
at java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:110)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:123)
at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:543)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:418)
at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:372)
at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:362)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:374)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:343)
at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invoke$1(ResourceMethodInvoker.java:317)
at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:981)
at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2124)
at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:110)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:317)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:476)
... 48 more
Metadata
Metadata
Assignees
Labels
No labels