takezoe / gitbucket-ci-plugin

GitBucket plug-in that adds simple CI ability to GitBucket.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CircleCI API failure `NoSuchMethodError: org/json4s/CustomSerializer.<init>`

ThePrez opened this issue · comments

Impacted version: 1.11.0

Deployment mode: Deployed as a standalone app (java -jar gitbucket.war)

Problem description:

Trying to authenticate to the API with basic authentication results in the following error:

2023-04-03 15:41:17.317:INFO:oejs.AbstractConnector:main: Started ServerConnector@d786f4d1{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2023-04-03 15:41:17.320:INFO:oejs.Server:main: Started @19147ms
15:41:41.317 [qtp997881183-29] ERROR i.g.g.ci.controller.CIApiController - Catch unhandled error in request: Request(GET //idevphp.idevcloud.com:8080/api/circleci/v1.1/me)@e85fccbb
java.lang.NoSuchMethodError: org/json4s/CustomSerializer.<init>(Lscala/Function1;Lscala/reflect/Manifest;)V (loaded from file:/home/JGORZINS/.gitbucket/tmp/webapp/WEB-INF/lib/json4s-core_2.13-4.0.5.jar by WebAppClassLoader{82765439}@4eee67f) called from class io.github.gitbucket.ci.api.JsonFormat$ (loaded from file:/home/JGORZINS/.gitbucket/plugins/.installed/gitbucket-ci-plugin-1.11.0.jar by java.net.URLClassLoader@8decf281).
        at io.github.gitbucket.ci.api.JsonFormat$.<clinit>(JsonFormat.scala:17)
        at io.github.gitbucket.ci.controller.CIApiController.$anonfun$new$4(CIApiController.scala:32)
        at io.github.gitbucket.ci.controller.CIApiController$$Lambda$1285/0x38ac5a88.apply(Unknown Source)
        at gitbucket.core.util.UsersAuthenticator.authenticate(Authenticator.scala:61)
        at gitbucket.core.util.UsersAuthenticator.usersOnly(Authenticator.scala:56)
        at gitbucket.core.util.UsersAuthenticator.usersOnly$(Authenticator.scala:56)

example curl invocation:

curl -vvv --header "X-GitHub-Api-Version: 2022-11-28" --user "theprez:password" http://mysystem.mycompany.com:8080/api/circleci/v1.1/me