java.io.IOException: Unable to serialize RPCRequest(30,withRepository)

Jenkins JIRA | emanuelez | 3 years ago
  1. 0

    The stacktrace (polluted with timestamps, sorry) says: 13:30:47 java.io.IOException: Unable to serialize RPCRequest(30,withRepository) 13:30:47 at hudson.remoting.UserRequest.serialize(UserRequest.java:166) 13:30:47 at hudson.remoting.UserRequest.<init>(UserRequest.java:62) 13:30:47 at hudson.remoting.Channel.call(Channel.java:712) 13:30:47 at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:167) 13:30:47 at com.sun.proxy.$Proxy46.withRepository(Unknown Source) 13:30:47 at org.jenkinsci.plugins.gitclient.RemoteGitImpl.withRepository(RemoteGitImpl.java:217) 13:30:47 at hudson.plugins.git.extensions.impl.JGitCredential.decorate(JGitCredential.java:67) 13:30:47 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:560) 13:30:47 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:550) 13:30:47 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:825) 13:30:47 at hudson.model.AbstractProject.checkout(AbstractProject.java:1394) 13:30:47 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) 13:30:47 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 13:30:47 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) 13:30:47 at hudson.model.Run.execute(Run.java:1593) 13:30:47 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 13:30:47 at hudson.model.ResourceController.execute(ResourceController.java:88) 13:30:47 at hudson.model.Executor.run(Executor.java:247) 13:30:47 Caused by: java.io.NotSerializableException: hudson.plugins.git.extensions.impl.JGitCredential 13:30:47 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180) 13:30:47 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) 13:30:47 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) 13:30:47 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) 13:30:47 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) 13:30:47 at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1362) 13:30:47 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1170) 13:30:47 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) 13:30:47 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) 13:30:47 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) 13:30:47 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) 13:30:47 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) 13:30:47 at hudson.remoting.UserRequest._serialize(UserRequest.java:155) 13:30:47 at hudson.remoting.UserRequest.serialize(UserRequest.java:164) 13:30:47 ... 17 more 13:30:47 Finished: FAILURE

    Jenkins JIRA | 3 years ago | emanuelez
    java.io.IOException: Unable to serialize RPCRequest(30,withRepository)
  2. 0

    The stacktrace (polluted with timestamps, sorry) says: 13:30:47 java.io.IOException: Unable to serialize RPCRequest(30,withRepository) 13:30:47 at hudson.remoting.UserRequest.serialize(UserRequest.java:166) 13:30:47 at hudson.remoting.UserRequest.<init>(UserRequest.java:62) 13:30:47 at hudson.remoting.Channel.call(Channel.java:712) 13:30:47 at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:167) 13:30:47 at com.sun.proxy.$Proxy46.withRepository(Unknown Source) 13:30:47 at org.jenkinsci.plugins.gitclient.RemoteGitImpl.withRepository(RemoteGitImpl.java:217) 13:30:47 at hudson.plugins.git.extensions.impl.JGitCredential.decorate(JGitCredential.java:67) 13:30:47 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:560) 13:30:47 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:550) 13:30:47 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:825) 13:30:47 at hudson.model.AbstractProject.checkout(AbstractProject.java:1394) 13:30:47 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) 13:30:47 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 13:30:47 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) 13:30:47 at hudson.model.Run.execute(Run.java:1593) 13:30:47 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 13:30:47 at hudson.model.ResourceController.execute(ResourceController.java:88) 13:30:47 at hudson.model.Executor.run(Executor.java:247) 13:30:47 Caused by: java.io.NotSerializableException: hudson.plugins.git.extensions.impl.JGitCredential 13:30:47 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180) 13:30:47 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) 13:30:47 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) 13:30:47 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) 13:30:47 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) 13:30:47 at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1362) 13:30:47 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1170) 13:30:47 at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) 13:30:47 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) 13:30:47 at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) 13:30:47 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) 13:30:47 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) 13:30:47 at hudson.remoting.UserRequest._serialize(UserRequest.java:155) 13:30:47 at hudson.remoting.UserRequest.serialize(UserRequest.java:164) 13:30:47 ... 17 more 13:30:47 Finished: FAILURE

    Jenkins JIRA | 3 years ago | emanuelez
    java.io.IOException: Unable to serialize RPCRequest(30,withRepository)
  3. 0

    When Subversion requires password for check-outs and Job is started on a slave node, operation fails due to Serialization exception. Here is typical Console Output: Gestartet durch Benutzer nadestin Baue auf Slave ts Checking out a fresh workspace because C:\hudson\workspace\TmLoader\Build doesn't exist Checking out http://scm.ringler.ch/repos/jtax/Trunk/Build FATAL: null java.lang.reflect.UndeclaredThrowableException at hudson.scm.$Proxy6.getCredential(Unknown Source) at hudson.scm.SubversionSCM$DescriptorImpl$SVNAuthenticationProviderImpl.requestClientAuthentication(SubversionSCM.java:1589) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:158) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:536) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:178) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:482) at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:851) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:534) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:893) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:742) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2018) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Unable to serialize RPCRequest(7,getCredential) at hudson.remoting.UserRequest.serialize(UserRequest.java:162) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:550) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) ... 26 more Caused by: java.io.NotSerializableException: org.tmatesoft.svn.core.SVNURL at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at hudson.remoting.UserRequest._serialize(UserRequest.java:151) at hudson.remoting.UserRequest.serialize(UserRequest.java:160) ... 29 more The obvious reason is org.tmatesoft.svn.core.SVNURL class from the Svnkit library. This class does not implement Serializable interface. This problem renders Hudson slaves useless when access to SVN is not anonymous.

    Jenkins JIRA | 7 years ago | yurinadestin
    java.lang.reflect.UndeclaredThrowableException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When Subversion requires password for check-outs and Job is started on a slave node, operation fails due to Serialization exception. Here is typical Console Output: Gestartet durch Benutzer nadestin Baue auf Slave ts Checking out a fresh workspace because C:\hudson\workspace\TmLoader\Build doesn't exist Checking out http://scm.ringler.ch/repos/jtax/Trunk/Build FATAL: null java.lang.reflect.UndeclaredThrowableException at hudson.scm.$Proxy6.getCredential(Unknown Source) at hudson.scm.SubversionSCM$DescriptorImpl$SVNAuthenticationProviderImpl.requestClientAuthentication(SubversionSCM.java:1589) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:158) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:536) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:178) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:482) at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:851) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:534) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:893) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:742) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2018) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Unable to serialize RPCRequest(7,getCredential) at hudson.remoting.UserRequest.serialize(UserRequest.java:162) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:550) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) ... 26 more Caused by: java.io.NotSerializableException: org.tmatesoft.svn.core.SVNURL at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at hudson.remoting.UserRequest._serialize(UserRequest.java:151) at hudson.remoting.UserRequest.serialize(UserRequest.java:160) ... 29 more The obvious reason is org.tmatesoft.svn.core.SVNURL class from the Svnkit library. This class does not implement Serializable interface. This problem renders Hudson slaves useless when access to SVN is not anonymous.

    Jenkins JIRA | 7 years ago | yurinadestin
    java.lang.reflect.UndeclaredThrowableException
  6. 0

    How do I use locales and resource bundles to internationalize my application?

    Google Groups | 5 years ago | Torleif
    java.lang.RuntimeException: java.io.NotSerializableException: javax.servlet.jsp.jstl.fmt.LocalizationContext
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.NotSerializableException

    hudson.plugins.git.extensions.impl.JGitCredential

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
    2. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
    3. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
    4. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
    5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
    6. java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1362)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1170)
    8. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
    9. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
    10. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
    11. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
    12. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
    12 frames
  3. Hudson :: Remoting Layer
    RemoteInvocationHandler.invoke
    1. hudson.remoting.UserRequest._serialize(UserRequest.java:155)
    2. hudson.remoting.UserRequest.serialize(UserRequest.java:164)
    3. hudson.remoting.UserRequest.<init>(UserRequest.java:62)
    4. hudson.remoting.Channel.call(Channel.java:712)
    5. hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:167)
    5 frames
  4. com.sun.proxy
    $Proxy46.withRepository
    1. com.sun.proxy.$Proxy46.withRepository(Unknown Source)
    1 frame
  5. org.jenkinsci.plugins
    RemoteGitImpl.withRepository
    1. org.jenkinsci.plugins.gitclient.RemoteGitImpl.withRepository(RemoteGitImpl.java:217)
    1 frame
  6. hudson.plugins.git
    JGitCredential.decorate
    1. hudson.plugins.git.extensions.impl.JGitCredential.decorate(JGitCredential.java:67)
    1 frame
  7. Hudson GIT plugin
    GitSCM.checkout
    1. hudson.plugins.git.GitSCM.createClient(GitSCM.java:560)
    2. hudson.plugins.git.GitSCM.createClient(GitSCM.java:550)
    3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:825)
    3 frames
  8. Hudson
    AbstractBuild$AbstractBuildExecution.defaultCheckout
    1. hudson.model.AbstractProject.checkout(AbstractProject.java:1394)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
    2 frames
  9. jenkins.scm
    SCMCheckoutStrategy.checkout
    1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
    1 frame
  10. Hudson
    Executor.run
    1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
    2. hudson.model.Run.execute(Run.java:1593)
    3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    4. hudson.model.ResourceController.execute(ResourceController.java:88)
    5. hudson.model.Executor.run(Executor.java:247)
    5 frames