java.lang.reflect.UndeclaredThrowableException

Jenkins JIRA | yurinadestin | 7 years ago
  1. 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
  2. 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
  3. 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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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)
  6. 0

    File not found and exception during commit of transaction

    Oracle Community | 1 decade ago | 666705
    java.lang.RuntimeException: Unable to serialize invocable

  1. kjhdofjosvs 2 times, last 1 week ago
  2. treefolk 1 times, last 1 week ago
  3. filpgame 4 times, last 1 week ago
  4. Handemelindo 15 times, last 2 weeks ago
  5. eti22 1 times, last 1 month ago
11 more registered users
50 unregistered visitors
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

    org.tmatesoft.svn.core.SVNURL

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
    2. java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    3. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    4. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    8 frames
  3. Hudson :: Remoting Layer
    RemoteInvocationHandler.invoke
    1. hudson.remoting.UserRequest._serialize(UserRequest.java:151)
    2. hudson.remoting.UserRequest.serialize(UserRequest.java:160)
    3. hudson.remoting.UserRequest.<init>(UserRequest.java:62)
    4. hudson.remoting.Channel.call(Channel.java:550)
    5. hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158)
    5 frames
  4. Hudson
    SubversionSCM$DescriptorImpl$SVNAuthenticationProviderImpl.requestClientAuthentication
    1. hudson.scm.$Proxy6.getCredential(Unknown Source)
    2. hudson.scm.SubversionSCM$DescriptorImpl$SVNAuthenticationProviderImpl.requestClientAuthentication(SubversionSCM.java:1589)
    2 frames
  5. SVNKit Library
    SVNUpdateClient.doCheckout
    1. org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:158)
    2. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:536)
    3. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273)
    4. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261)
    5. org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
    6. org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
    7. org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999)
    8. org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:178)
    9. org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:482)
    10. org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:851)
    11. org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:534)
    12. org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:893)
    12 frames
  6. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:742)
    2. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660)
    3. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2018)
    3 frames
  7. Hudson :: Remoting Layer
    Request$2.run
    1. hudson.remoting.UserRequest.perform(UserRequest.java:114)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:270)
    3 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    6. java.lang.Thread.run(Thread.java:619)
    6 frames