java.lang.reflect.UndeclaredThrowableException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by yurinadestin,
  • 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.
    via by yurinadestin,
  • 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
    via by emanuelez,
  • 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
    via by emanuelez,
  • GSON not serializable in JSF managed bean
    via Stack Overflow by kinkajou
    ,
    • 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

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Hiren AmaliyarHiren Amaliyar
    11 times, last one,
    osvzsosvzs
    6 times, last one,
    Indri YunitaIndri Yunita
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    84 more bugmates