Various SCP plugin errors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Various SCP plugin errors

Alex Barna

I am using the SCP plugin but occasionally encounter different errors. The exceptions were thrown in different line of the source code and the call stacks were different. I am not sure that they are all caused by the same problem. The file I am uploading is about 6MB.

It seems that issue it's related to issue 2151 - http://issues.hudson-ci.org/browse/HUDSON-2151

Husdon 1.363. SCP plugin 1.6.

Call stack 1
ERROR: Failed to upload files
4: java.lang.NullPointerException
	at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:599)
	at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:461)
	at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:431)
	at be.certipost.hudson.plugin.SCPSite.upload(SCPSite.java:201)
	at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:130)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
	at hudson.model.Build$RunnerImpl.post2(Build.java:158)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
	at hudson.model.Run.run(Run.java:1276)
	at hudson.matrix.MatrixRun.run(MatrixRun.java:130)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:127)
Caused by: java.lang.NullPointerException
	at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:558)
	... 14 more

Call stack 2
ERROR: Failed to upload files
4: 
	at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1686)
	at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:1651)
	at be.certipost.hudson.plugin.SCPSite.upload(SCPSite.java:178)
	at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:130)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
	at hudson.model.Build$RunnerImpl.post2(Build.java:158)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
	at hudson.model.Run.run(Run.java:1276)
	at hudson.matrix.MatrixRun.run(MatrixRun.java:130)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:127)
Caused by: java.io.IOException: inputstream is closed
	at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2155)
	at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2179)
	at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1667)
	... 13 more

Call stack 3
ERROR: Failed to upload files
4: java.net.SocketException: Broken pipe
	at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:599)
	at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:461)
	at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:431)
	at be.certipost.hudson.plugin.SCPSite.upload(SCPSite.java:201)
	at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:130)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
	at hudson.model.Build$RunnerImpl.post2(Build.java:158)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
	at hudson.model.Run.run(Run.java:1276)
	at hudson.matrix.MatrixRun.run(MatrixRun.java:130)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:127)
Caused by: java.net.SocketException: Broken pipe
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
	at com.jcraft.jsch.IO.put(IO.java:60)
	at com.jcraft.jsch.Session._write(Session.java:1137)
	at com.jcraft.jsch.Session.write(Session.java:1114)
	at com.jcraft.jsch.ChannelSftp.sendWRITE(ChannelSftp.java:1944)
	at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:557)
	... 14 more

Call stack 4
ERROR: Publisher be.certipost.hudson.plugin.SCPRepositoryPublisher aborted due to exception
java.lang.NullPointerException
	at com.jcraft.jsch.Session.disconnect(Session.java:1467)
	at be.certipost.hudson.plugin.SCPSite.closeSession(SCPSite.java:164)
	at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:145)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
	at hudson.model.Build$RunnerImpl.post2(Build.java:158)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
	at hudson.model.Run.run(Run.java:1276)
	at hudson.matrix.MatrixRun.run(MatrixRun.java:130)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:127)
Finished: FAILURE