Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-11186

NPE when using Job Get Mails entry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 4.4.0 GA (4.8.0 GA Suite Release)
    • Fix Version/s: 5.1.0 GA
    • Component/s: Job Entry
    • Labels:
    • Environment:
      Win7 + filebased repository
    • Story Points:
      3
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Sprint Team:
      Pervach

      Description

      Create job
      Create get email job entry
      Specify connection info
      Choose 'Settings' - 'Move messages to folder' option. Do not specify 'General' - 'Target folder'. This functionality should not be used as I am going only to move emails from one remote folder to another.

      Expected: messages moved on remote email folder
      Actual: NPE

      2013/12/30 15:54:09 - Spoon - Logging goes to file:///C:/Users/Dzmitry_Prakapenka/AppData/Local/Temp/spoon_793b5d6e-7151-11e3-8164-3d4e033fb402.log
      2013/12/30 15:54:10 - Version checker - OK
      2013/12/30 15:54:11 - class org.pentaho.agilebi.platform.JettyServer - WebServer.Log.CreateListener localhost:10000
      2013/12/30 15:54:13 - Spoon - Asking for repository
      2013/12/30 15:54:30 - Spoon - Starting job...
      2013/12/30 15:54:30 - PDI-7246 - Start of job execution
      2013/12/30 15:54:30 - PDI-7246 - Starting entry [Get mails (POP3/IMAP)]
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Unexpected error: null
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : java.lang.NullPointerException
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:124)
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:104)
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.job.entries.getpop.JobEntryGetPOP.execute(JobEntryGetPOP.java:737)
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.job.Job.execute(Job.java:589)
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.job.Job.execute(Job.java:728)
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.job.Job.execute(Job.java:443)
      2013/12/30 15:54:30 - Get mails (POP3/IMAP) - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.job.Job.run(Job.java:363)
      2013/12/30 15:54:30 - PDI-7246 - Finished job entry [Get mails (POP3/IMAP)] (result=[false])
      2013/12/30 15:54:30 - PDI-7246 - Job execution finished
      2013/12/30 15:54:30 - Spoon - Job has ended.
      2013/12/30 15:56:48 - Spoon - Spoon

      Note: If folder is specified - but not used - all works fine.
      This is caused by internally folder is being checked all times, even if not used in settings.

      String realOutputFolder = getRealOutputDirectory();
      fileObject = KettleVFS.getFileObject( realOutputFolder, this );

      (realOutputFolder = null)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alena_khamitsevich Alena Khamitsevich (Inactive)
              Reporter:
              dzmitry_by Dzmitry Prakapenka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: