Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72262

Scanning fails with "java.lang.IllegalArgumentException: No enum constant org.gitlab4j.api.models.Visibility.private"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • gitlab-api-plugin
    • None
    • Jenkins 2.414.3, Debian 12

      After creating a GitLab Branch Source project, the GL group scan fails with the following error:

      FATAL: Failed to recompute children of SomeGroup
      java.lang.IllegalArgumentException: No enum constant org.gitlab4j.api.models.Visibility.private
      	at java.base/java.lang.Enum.valueOf(Enum.java:273)
      	at org.eclipse.yasson.internal.serializer.EnumTypeDeserializer.deserialize(EnumTypeDeserializer.java:37)
      	at org.eclipse.yasson.internal.serializer.EnumTypeDeserializer.deserialize(EnumTypeDeserializer.java:23)
      	at org.eclipse.yasson.internal.serializer.AbstractValueTypeDeserializer.deserialize(AbstractValueTypeDeserializer.java:64)
      	at org.eclipse.yasson.internal.serializer.ObjectDeserializer.deserializeNext(ObjectDeserializer.java:183)
      	at org.eclipse.yasson.internal.serializer.AbstractContainerDeserializer.deserializeInternal(AbstractContainerDeserializer.java:94)
      	at org.eclipse.yasson.internal.serializer.AbstractContainerDeserializer.deserialize(AbstractContainerDeserializer.java:64)
      	at org.eclipse.yasson.internal.Unmarshaller.deserializeItem(Unmarshaller.java:62)
      Caused: javax.json.bind.JsonbException: Internal error: No enum constant org.gitlab4j.api.models.Visibility.private
      	at org.eclipse.yasson.internal.Unmarshaller.deserializeItem(Unmarshaller.java:68)
      	at org.eclipse.yasson.internal.Unmarshaller.deserialize(Unmarshaller.java:51)
      	at org.eclipse.yasson.internal.JsonBinding.deserialize(JsonBinding.java:59)
      	at org.eclipse.yasson.internal.JsonBinding.fromJson(JsonBinding.java:99)
      	at org.glassfish.jersey.jsonb.internal.JsonBindingProvider.readFrom(JsonBindingProvider.java:87)
      Caused: javax.ws.rs.ProcessingException: Error deserializing object from entity stream.
      	at org.glassfish.jersey.jsonb.internal.JsonBindingProvider.readFrom(JsonBindingProvider.java:89)
      	at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:233)
      	at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:212)
      	at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:132)
      	at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1072)
      	at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:919)
      	at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:853)
      	at org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:298)
      	at org.glassfish.jersey.client.InboundJaxrsResponse$1.call(InboundJaxrsResponse.java:93)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
      	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:365)
      	at org.glassfish.jersey.client.InboundJaxrsResponse.runInScopeIfPossible(InboundJaxrsResponse.java:244)
      	at org.glassfish.jersey.client.InboundJaxrsResponse.readEntity(InboundJaxrsResponse.java:90)
      	at org.gitlab4j.api.GroupApi.getGroup(GroupApi.java:508)
      	at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabOwner.fetchOwner(GitLabOwner.java:26)
      	at io.jenkins.plugins.gitlabbranchsource.GitLabSCMNavigator.getGitlabOwner(GitLabSCMNavigator.java:206)
      	at io.jenkins.plugins.gitlabbranchsource.GitLabSCMNavigator.getGitlabOwner(GitLabSCMNavigator.java:199)
      	at io.jenkins.plugins.gitlabbranchsource.GitLabSCMNavigator.retrieveActions(GitLabSCMNavigator.java:405)
      	at jenkins.scm.api.SCMNavigator.fetchActions(SCMNavigator.java:326)
      	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:486)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:269)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:167)
      	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:920)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:442)
      Finished: FAILURE

      Connection to GL otherwise works fine. All plugins are at their latest versions.

            Unassigned Unassigned
            dhs Dirk Heinrichs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: