Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68405

Getting NullPointerException when uploading large files to Dropbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins: 2.332.2
      Publish Over Dropbox: 1.3.2

      I'm consistently getting a NullPointerException when trying to upload 100MB+ files to Dropbox:

      {{An exception was caught when invoking perform java.lang.NullPointerException at java.io.Reader.<init>(Reader.java:78) at java.io.InputStreamReader.<init>(InputStreamReader.java:113) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1021) at org.apache.commons.io.IOUtils.toString(IOUtils.java:2839) at org.apache.commons.io.IOUtils.toString(IOUtils.java:2819) at org.jenkinsci.plugins.publishoverdropbox.domain.JsonObjectRequest.execute(JsonObjectRequest.java:173) at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.chunkedStore(DropboxV2.java:370) at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.storeFile(DropboxV2.java:322) at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxClient.transferFile(DropboxClient.java:106) at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxClient.transferFile(DropboxClient.java:41) at jenkins.plugins.publish_over.BPTransfer.transferFile(BPTransfer.java:171) at jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:155) at jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:142) at jenkins.plugins.publish_over.BapPublisher$Performer.transfer(BapPublisher.java:276) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:232) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:65) Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to custom-production-2fkpncal-assessment-10-kk0qv-lcftk-57400 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) at hudson.remoting.Channel.call(Channel.java:1000) at hudson.FilePath.act(FilePath.java:1194) at hudson.FilePath.act(FilePath.java:1183) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:141) at org.jenkinsci.plugins.publishoverdropbox.impl.step.DropboxPublishStepExecution$1.run(DropboxPublishStepExecution.java:87) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) Caused: jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [null] at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:69) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:38) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3487) at hudson.remoting.UserRequest.perform(UserRequest.java:211) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:376) at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122) at java.lang.Thread.run(Thread.java:748) }}

       

      As far as I can tell, this seems to consistently happen when uploading large files (100MB+); smaller files seem fine.

      The line in question appears to be:

      errorResponse = IOUtils.toString(errorStream);

      My guess is that "errorString" is null.  In any case, it looks like this only happens with non-200-level responses, so there's already an issue by the time that this happens.

            rcgroot René de Groot
            tekkamanendless Douglas Manley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: