Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Null Pointer Exception on running email xaction

  1. #1

    Default Null Pointer Exception on running email xaction

    Hi all,

    I am trying to send a sample report via email. I specified the required Parameters, added the report, and defined Process outputs. Is there anything else that I should define in the xaction?
    I am getting the followwing error when I attempt to run the xaction from the user console.
    Also, I attached my xaction.

    Error: Base.ERROR_0002 - Component execution failed - java.lang.NullPointerException (org.pentaho.platform.engine.services.solution.PojoComponent) Debug: Starting execute of CasePlan//sample_email.xaction (org.pentaho.platform.engine.services.solution.SolutionEngine)
    Debug: Getting runtime context and data (org.pentaho.platform.engine.services.solution.SolutionEngine)
    Debug: Loading action sequence definition file (org.pentaho.platform.engine.services.solution.SolutionEngine)
    Debug: audit: instanceId=d5f844b4-5138-11df-b6fd-73eb82353555, objectId=org.pentaho.platform.engine.services.runtime.RuntimeContext, messageType=action_sequence_start (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: validateComponent validating component SimpleReportingComponent (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Component alias SimpleReportingComponent will be resolved by the plugin manager. (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Component found in a plugin, class is: org.pentaho.reporting.platform.plugin.SimpleReportingComponent (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Component alias SimpleReportingComponent will be resolved by the platform (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Validating component for action sample_email.xaction (org.pentaho.platform.engine.services.solution.PojoComponent)
    Debug: validateComponent validating component org.pentaho.component.EmailComponent (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Warning: Attempt to use org.pentaho.component.EmailComponent, please use org.pentaho.platform.plugin.action.builtin.EmailComponent instead (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: audit: instanceId=d5f844b4-5138-11df-b6fd-73eb82353555, objectId=org.pentaho.platform.engine.services.runtime.RuntimeContext, messageType=deprecated (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Component alias org.pentaho.component.EmailComponent will be resolved by the platform (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Validating component for action sample_email.xaction (org.pentaho.platform.plugin.action.builtin.EmailComponent)
    Debug: Executing action sequence (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Executing action definition: Iteration 0 (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: audit: instanceId=d5f844b4-5138-11df-b6fd-73eb82353555, objectId=SimpleReportingComponent, messageType=component_execution_started (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: execute pre-audit (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Setting component log level to DEBUG (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: Initializing component (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: executeComponent starting audited execute (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: execute validation=true (org.pentaho.platform.engine.services.solution.PojoComponent)
    Error: Base.ERROR_0002 - Component execution failed - java.lang.NullPointerException (org.pentaho.platform.engine.services.solution.PojoComponent)
    Debug: executeComponent finished audited execute (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Error: RuntimeContext.ERROR_0012 - ActionDefinition for SimpleReportingComponent did not execute successfully (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Debug: audit: instanceId=d5f844b4-5138-11df-b6fd-73eb82353555, objectId=org.pentaho.platform.engine.services.runtime.RuntimeContext, messageType=action_sequence_failed (org.pentaho.platform.engine.services.runtime.RuntimeContext)
    Error: SolutionEngine.ERROR_0007 - Action sequence execution failed (org.pentaho.platform.engine.services.solution.SolutionEngine)


    Server Version: Pentaho Platform Core 3.5.2-GA.40786



    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Join Date
    Oct 2008
    Posts
    124

    Default

    Have you already configured your e-mail? If not, you'll need to edit ?\pentaho-solutions\system\smtp-email\email_config.xml to reflect your local requirements.

    Once you've configured your e-mail, you'll have to load the new information into the BI Server by either restarting Pentaho, or going to the Pentaho Administrative Console and selecting Services->Refresh BI Server->System Settings.

    After you've done that, open a Pentaho session and use BI Developer Examples/Reporting/PRPT Samples/E-Mail Income Statement to test your ability to send mail. If you successfully execute this report, it will show that your mail system is properly configured.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.