Exception error Caused: java.io.NotSerializableException: org.gitlab.api.GitlabAPI

28 views
Skip to first unread message

knelyo

unread,
May 22, 2019, 4:27:36 PM5/22/19
to Jenkins Users
Group,

  This has been nagging issue for me for almost 2 weeks before i stumbled on this forum.

  Currently getting the error below in Jenkins when running a jenkins pipeline job that is used for template validation.

  Jenkins is able to check out the git repo from gitlab but that is all valuable information that reported on the GitLab Console.

  The Pipeline uses the version for Jenkins, Gitlab and GitLab plugins below.

  Jenkins 2.164.3
  GitLab  Community Edition 11.3.0
  GitLab Plugin 1.15.12..

   The pipeline was working before the jenkins master was updated, after which the jobs only checks out the git repo in gitlab then fails.

   Summary error from Blue Ocean plugins org.gitlab.api.GitlabAPIException: {"message":"403 Forbidden - Your account has been blocked."}

   The full error from Jenkins console below

using credential 4fbca7e7-0419-4c0v-8898-111111c46a6a
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url g...@gitlab.zzzzz.xxx::Sxxxxx/cff-pipes.git # timeout=10
Fetching upstream changes from g...@gitlab.zzzzz.xxx::SecDev/cff-pipes.git
> git --version # timeout=10 using GIT_SSH to set credentials git > git fetch --tags --progress g...@gitlab.zzzzz.xxx:Sxxxx/cff-pipes.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 2572a10bb1004ecde1bda9cba620c456de80d953 (refs/remotes/origin/master) > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 2572a10bb1004ecde1bda9cba620c456de80d953 Commit message: "Update NewProjecte"
[Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Create Project) [Pipeline] script [Pipeline] { [Pipeline] configFileProvider provisioning config files... copy managed file [cfSettings] to file:/home/workspace/Cxxxxxxx/Create%20Cxxxxxxx%20Pxxxxxx@tmp/config7454802779566034260tmp [Pipeline] { [Pipeline] readJSON [Pipeline] withCredentials Masking only exact matches of $token [Pipeline] { [Pipeline] } [Pipeline] } Deleting 1 temporary files [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline an exception which occurred: in field org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptScript.script in object org.jenkinsci.plugins.pipeline.modeldefinition.agent.impl.LabelScript@3f4586c in field groovy.lang.Closure.delegate in object org.jenkinsci.plugins.workflow.cps.CpsClosure2@432f2514 in field groovy.lang.Closure.delegate in object org.jenkinsci.plugins.workflow.cps.CpsClosure2@d228ce in field org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.closures in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@27ace6e3 in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@27ace6e3 Caused: java.io.NotSerializableException: org.gitlab.api.GitlabAPI at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:926) at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65) at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56) at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50) at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) at java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333) at java.util.HashMap.writeObject(HashMap.java:1363) at sun.reflect.GeneratedMethodAccessor1147.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156) at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920) at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65) at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56) at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50) at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) at com.cloudbees.groovy.cps.SerializableScript.writeObject(SerializableScript.java:26) at sun.reflect.GeneratedMethodAccessor1164.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156) at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920) at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65) at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56) at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50) at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) at java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333) at java.util.HashMap.writeObject(HashMap.java:1363) at sun.reflect.GeneratedMethodAccessor1147.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

   
Reply all
Reply to author
Forward
0 new messages