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

Deprecated calls to Run.getLogFile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: email-ext-plugin
    • Labels:
      None
    • Environment:
      workflow-job 2.29
      email-ext 2.63
    • Similar Issues:

      Description

      See JENKINS-54128 (and others like JENKINS-54840)

      2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile]   Avoid calling getLogFile on Recovery/ACME #129
      java.lang.UnsupportedOperationException
              at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
              at hudson.plugins.emailext.AttachmentUtils.attachSingleLog(AttachmentUtils.java:200)
              at hudson.plugins.emailext.AttachmentUtils.attachBuildLog(AttachmentUtils.java:238)
              at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:766)
              at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
              at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
              at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
              at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
              at hudson.security.ACL.impersonate(ACL.java:290)
              at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
              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)
              at java.lang.Thread.run(Thread.java:748)
      
      2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile]   Avoid calling getLogFile on Recovery/ACME #129
      java.lang.UnsupportedOperationException
              at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
              at hudson.plugins.emailext.AttachmentUtils$LogFileDataSource.getContentType(AttachmentUtils.java:113)
              at javax.activation.DataHandler.getContentType(DataHandler.java:205)
              at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1318)
              at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)
              at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)
              at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1345)
              at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2106)
              at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2074)
              at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1769)
              at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
              at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:484)
              at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
              at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
              at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
              at hudson.security.ACL.impersonate(ACL.java:290)
              at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
              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)
              at java.lang.Thread.run(Thread.java:748)
      
      2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile]   Avoid calling getLogFile on Recovery/ACME #129
      java.lang.UnsupportedOperationException
              at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
              at hudson.plugins.emailext.AttachmentUtils$LogFileDataSource.getContentType(AttachmentUtils.java:113)
              at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:196)
              at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:256)
              at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1366)
              at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)
              at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)
              at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1345)
              at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2106)
              at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2074)
              at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1769)
              at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
              at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:484)
              at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
              at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
              at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
              at hudson.security.ACL.impersonate(ACL.java:290)
              at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
              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)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

            reinholdfuereder Reinhold Füreder created issue -
            reinholdfuereder Reinhold Füreder made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-54128 [ JENKINS-54128 ]
            reinholdfuereder Reinhold Füreder made changes -
            Description Like in JENKINS-54128 (and others)

            {noformat}
            2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129
            java.lang.UnsupportedOperationException
                    at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
                    at hudson.plugins.emailext.AttachmentUtils.attachSingleLog(AttachmentUtils.java:200)
                    at hudson.plugins.emailext.AttachmentUtils.attachBuildLog(AttachmentUtils.java:238)
                    at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:766)
                    at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
                    at hudson.security.ACL.impersonate(ACL.java:290)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
                    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)
                    at java.lang.Thread.run(Thread.java:748)

            2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129
            java.lang.UnsupportedOperationException
                    at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
                    at hudson.plugins.emailext.AttachmentUtils$LogFileDataSource.getContentType(AttachmentUtils.java:113)
                    at javax.activation.DataHandler.getContentType(DataHandler.java:205)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1318)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)
                    at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1345)
                    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2106)
                    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2074)
                    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1769)
                    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
                    at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:484)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
                    at hudson.security.ACL.impersonate(ACL.java:290)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
                    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)
                    at java.lang.Thread.run(Thread.java:748)

            2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129
            java.lang.UnsupportedOperationException
                    at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
                    at hudson.plugins.emailext.AttachmentUtils$LogFileDataSource.getContentType(AttachmentUtils.java:113)
                    at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:196)
                    at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:256)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1366)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)
                    at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1345)
                    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2106)
                    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2074)
                    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1769)
                    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
                    at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:484)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
                    at hudson.security.ACL.impersonate(ACL.java:290)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
                    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)
                    at java.lang.Thread.run(Thread.java:748)
            {noformat}
            See JENKINS-54128 (and others like JENKINS-54840)
            {noformat}
            2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129
            java.lang.UnsupportedOperationException
                    at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
                    at hudson.plugins.emailext.AttachmentUtils.attachSingleLog(AttachmentUtils.java:200)
                    at hudson.plugins.emailext.AttachmentUtils.attachBuildLog(AttachmentUtils.java:238)
                    at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:766)
                    at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
                    at hudson.security.ACL.impersonate(ACL.java:290)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
                    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)
                    at java.lang.Thread.run(Thread.java:748)

            2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129
            java.lang.UnsupportedOperationException
                    at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
                    at hudson.plugins.emailext.AttachmentUtils$LogFileDataSource.getContentType(AttachmentUtils.java:113)
                    at javax.activation.DataHandler.getContentType(DataHandler.java:205)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1318)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)
                    at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1345)
                    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2106)
                    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2074)
                    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1769)
                    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
                    at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:484)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
                    at hudson.security.ACL.impersonate(ACL.java:290)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
                    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)
                    at java.lang.Thread.run(Thread.java:748)

            2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129
            java.lang.UnsupportedOperationException
                    at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
                    at hudson.plugins.emailext.AttachmentUtils$LogFileDataSource.getContentType(AttachmentUtils.java:113)
                    at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:196)
                    at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:256)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1366)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)
                    at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)
                    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1345)
                    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2106)
                    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2074)
                    at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1769)
                    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
                    at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:484)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)
                    at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
                    at hudson.security.ACL.impersonate(ACL.java:290)
                    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
                    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)
                    at java.lang.Thread.run(Thread.java:748)
            {noformat}
            slide_o_mix Alex Earl made changes -
            Assignee David van Laatum [ davidvanlaatum ] Alex Earl [ slide_o_mix ]
            slide_o_mix Alex Earl made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            slide_o_mix Alex Earl made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]

              People

              Assignee:
              slide_o_mix Alex Earl
              Reporter:
              reinholdfuereder Reinhold Füreder
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: