Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Formatted Message

  1. #1
    Join Date
    Oct 2006
    Posts
    219

    Default Formatted Message

    Im trying to create some simple tests based on the burst reports example but i keep coming up against this problem =/

    Error: Error formatting Message (org.pentaho.plugin.misc.UtilityComponent)

    It would also seem that i am not the only one with this problems

    http://forums.pentaho.org/showthread...atting+Message

    I have attached both the .xaction and .properties file to this thread. The .xaction file is really really basic test and i just cant see what im doing wrong =/

    Thanks in advance,

    Harris
    Attached Files Attached Files

  2. #2
    Join Date
    Oct 2006
    Posts
    219

    Default And the properties file ;)

    And the properties file
    Last edited by hazamonzo; 06-12-2007 at 05:56 AM.

  3. #3
    Join Date
    Oct 2006
    Posts
    219

    Default Cant make this Formatted message anymore simple

    I cant see what i could be doing wrong here as the .xaction is so simple. Have a bumped into a bug?

    If anyone is interested this is the entire error message:

    Failed
    Error: Error formatting Message (org.pentaho.plugin.misc.UtilityComponent)

    Debug: Starting execute of Farstad/vessel_reports/untitled.xaction (org.pentaho.core.solution.SolutionEngine)
    Debug: Getting runtime context and data (org.pentaho.core.solution.SolutionEngine)
    Debug: Loading action sequence definition file (org.pentaho.core.solution.SolutionEngine)
    Debug: SolutionRepository.DEBUG_FILE_PATH - getFile path=C:\Applications\Data Analysis\pentaho-demo\pentaho-solutions\Farstad\vessel_reports\untitled.xaction (org.pentaho.repository.filebased.solution.SolutionRepository)
    Debug: audit: instanceId=cd05292b-18ca-11dc-8828-a72194e6c1db, objectId=org.pentaho.core.runtime.RuntimeContext, messageType=action_sequence_start (org.pentaho.core.runtime.RuntimeContext)
    Debug: validateComponent validating component SQLLookupRule (org.pentaho.core.runtime.RuntimeContext)
    Debug: Validating component for action untitled.xaction (org.pentaho.plugin.sql.SQLLookupRule)
    Debug: validateComponent validating component UtilityComponent (org.pentaho.core.runtime.RuntimeContext)
    Debug: Validating component for action untitled.xaction (org.pentaho.plugin.misc.UtilityComponent)
    Debug: validateComponent validating component EmailComponent (org.pentaho.core.runtime.RuntimeContext)
    Debug: Validating component for action untitled.xaction (org.pentaho.plugin.email.EmailComponent)
    Debug: Executing action sequence (org.pentaho.core.runtime.RuntimeContext)
    Debug: Executing action definition: Iteration 0 (org.pentaho.core.runtime.RuntimeContext)
    Debug: audit: instanceId=cd05292b-18ca-11dc-8828-a72194e6c1db, objectId=SQLLookupRule, messageType=component_execution_started (org.pentaho.core.runtime.RuntimeContext)
    Debug: execute pre-audit (org.pentaho.core.runtime.RuntimeContext)
    Debug: Setting component log level to TRACE (org.pentaho.core.runtime.RuntimeContext)
    Debug: Initializing component (org.pentaho.core.runtime.RuntimeContext)
    Debug: executeComponent starting audited execute (org.pentaho.core.runtime.RuntimeContext)
    Debug: execute validation=true (org.pentaho.plugin.sql.SQLLookupRule)
    Debug: Running query - SELECT name, email_address FROM people (org.pentaho.plugin.sql.SQLLookupRule)
    Debug: executeComponent finished audited execute (org.pentaho.core.runtime.RuntimeContext)
    Debug: execute post-audit (org.pentaho.core.runtime.RuntimeContext)
    Debug: audit: instanceId=cd05292b-18ca-11dc-8828-a72194e6c1db, objectId=SQLLookupRule, messageType=component_execution_ended (org.pentaho.core.runtime.RuntimeContext)
    Debug: Executing action definition: Iteration 0 (org.pentaho.core.runtime.RuntimeContext)
    Debug: audit: instanceId=cd05292b-18ca-11dc-8828-a72194e6c1db, objectId=UtilityComponent, messageType=component_execution_started (org.pentaho.core.runtime.RuntimeContext)
    Debug: execute pre-audit (org.pentaho.core.runtime.RuntimeContext)
    Debug: Setting component log level to TRACE (org.pentaho.core.runtime.RuntimeContext)
    Debug: Initializing component (org.pentaho.core.runtime.RuntimeContext)
    Debug: Initializing TestComponent (org.pentaho.plugin.misc.UtilityComponent)
    Debug: executeComponent starting audited execute (org.pentaho.core.runtime.RuntimeContext)
    Debug: execute validation=true (org.pentaho.plugin.misc.UtilityComponent)
    Debug: Executing Utility - format (org.pentaho.plugin.misc.UtilityComponent)
    Error: Error formatting Message (org.pentaho.plugin.misc.UtilityComponent)
    Debug: executeComponent finished audited execute (org.pentaho.core.runtime.RuntimeContext)
    Error: RuntimeContext.ERROR_0012 - ActionDefinition for UtilityComponent did not execute successfully (org.pentaho.core.runtime.RuntimeContext)
    Debug: audit: instanceId=cd05292b-18ca-11dc-8828-a72194e6c1db, objectId=org.pentaho.core.runtime.RuntimeContext, messageType=action_sequence_failed (org.pentaho.core.runtime.RuntimeContext)
    Error: SolutionEngine.ERROR_0007 - Action sequence execution failed (org.pentaho.core.solution.SolutionEngine)

    Server Version 1.2.1 build 625 GA

    Any pointers?

    Best regards,

    Harris

  4. #4
    Join Date
    Jun 2007
    Posts
    27

    Default Same problem

    Hi Harry:

    Did you find a soution? I am trying exactly the same thing and having the same problem. Here is the error message. Any pointers (if you found the solution). Thank you in advance.

    Error: Error formatting Message (org.pentaho.plugin.misc.UtilityComponent)
    Debug: Starting execute of samples/reporting/MSS Employee Current Address Details.xaction (org.pentaho.core.solution.SolutionEngine)
    Debug: Getting runtime context and data (org.pentaho.core.solution.SolutionEngine)
    Debug: Loading action sequence definition file (org.pentaho.core.solution.SolutionEngine)
    Debug: SolutionRepository.DEBUG_FILE_PATH - getFile path=C:\pentaho-demo\pentaho-solutions\samples\reporting\MSS Employee Current Address Details.xaction (org.pentaho.repository.filebased.solution.SolutionRepository)
    Debug: Adding default value of "xls" to parameter output-type (org.pentaho.repository.filebased.solution.SolutionRepository)
    Debug: Adding default value of "Generating" to parameter printprefix (org.pentaho.repository.filebased.solution.SolutionRepository)
    Debug: audit: instanceId=92767f45-2c4f-11dc-bc6f-4ff41b825223, objectId=org.pentaho.core.runtime.RuntimeContext, messageType=action_sequence_start (org.pentaho.core.runtime.RuntimeContext)
    Error: Error formatting Message (org.pentaho.plugin.misc.UtilityComponent)
    Error: RuntimeContext.ERROR_0012 - ActionDefinition for UtilityComponent did not execute successfully (org.pentaho.core.runtime.RuntimeContext)
    Error: SolutionEngine.ERROR_0007 - Action sequence execution failed (org.pentaho.core.solution.SolutionEngine)

  5. #5
    Join Date
    Nov 2007
    Posts
    5

    Default the doc is completely absent

    if you want to format a simple message (pentaho use the well kno class java.text.MessageFormat) you have to surround your message by double quotes (i mean " character).

    example:
    "The disk \"{1}\" contains {0} file(s)."

    if not pentaho will dig into inputValue (xml definition) to retrieve the
    message and you will fal in a Xpath expression exception !!!

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.