Pentaho BI 服务器 - 动作序列 - 执行失败

Posted

技术标签:

【中文标题】Pentaho BI 服务器 - 动作序列 - 执行失败【英文标题】:Pentaho BI Server - Action Sequence - Failed to execute 【发布时间】:2012-02-19 18:50:28 【问题描述】:

好的,首先... 嘘。我知道我应该有这个,但它只是没有点击。我已经通读了用户指南,一些关于 Pentaho 的一般书籍,当然还有本网站上的帖子。虽然有些东西没有点击,但非常感谢您的耐心“你这个可怜的新手”的帮助。

现在,言归正传……

我在 Mac (10.6.8) 和 Centos 5 服务器上运行 Pentaho BI Server 3.9.0。 (尝试在不同的环境中确认问题。)两个站点的结果相同。

我从 PRD 3.8.3-GA-Stable 发布了一些报告,当我在 BI 服务器中(通过 Web 界面)打开它们时,它们的行为没有错误,并且报告看起来准确。它们与 xaction 位于同一文件夹中。

文件结构为:

    ... biserver-ce/pentaho-solutions
        |- Example
          |- Followed_Data.prpt
          |- example.xaction

当我通过设计工作室创建一个动作序列来执行报告时,下面包含的错误不断出现。我已经破坏了 xaction 文件几次并尝试了不同的方法,但它没有发生。

将不胜感激的想法和愉快的耳光;这令人沮丧。

提前致谢! -洛林

XML 来源:

<?xml version="1.0" encoding="UTF-8"?>
<action-sequence> 
  <title>Example</title>
  <version>1</version>
  <logging-level>ERROR</logging-level>
  <documentation> 
    <author>Lorin</author>  
    <description>Empty blank action sequence document</description>  
    <help/>  
    <result-type>report</result-type>  
    <icon/> 
  </documentation>

  <inputs/>

  <outputs/>

  <resources> 
    <TotalFollowedReport> 
      <solution-file> 
        <location>Followed_Data.prpt</location>  
        <mime-type>application/zip</mime-type> 
      </solution-file> 
    </TotalFollowedReport>  
    <report-definition> 
      <solution-file> 
        <location>Followed_Data.prpt</location>  
        <mime-type>application/zip</mime-type> 
      </solution-file> 
    </report-definition> 
  </resources>

  <actions> 
    <action-definition> 
      <component-name>SimpleReportingComponent</component-name>
      <action-type>Pentaho Report</action-type>
      <action-resources> 
        <report-definition type="resource"/> 
      </action-resources>
      <action-outputs> 
        <outputstream type="content" mapping="FollowedData"/> 
      </action-outputs>
      <component-definition> 
        <outputType><![CDATA[text/html]]></outputType>  
        <useContentRepository><![CDATA[true]]></useContentRepository> 
      </component-definition> 
    </action-definition>

  </actions> 
</action-sequence>

错误:开启

Pentaho BI 平台在运行操作序列时报告错误

可能的原因: 空值 RuntimeContext.ERROR_0017 - 操作未能执行 动作序列:example.xaction 执行堆栈: 执行操作:Pentaho 报告(SimpleReportingComponent) 循环索引(基于 1):0 错误时间:美国东部标准时间 2012 年 2 月 19 日星期日下午 1:33:51 错误类型:ActionExecutionException 会话 ID:lorin 实例 ID:44ece1f6-5b28-11e1-bf5e-295c39ace768 动作类:SimpleReportingComponent 动作描述:Pentaho 报告 隐藏细节 堆栈跟踪:

org.pentaho.platform.api.engine.ActionExecutionException: RuntimeContext.ERROR_0017 - Action failed to execute
    at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeComponent(RuntimeContext.java:1308)
    at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeAction(RuntimeContext.java:1262)
    at org.pentaho.platform.engine.services.runtime.RuntimeContext.performActions(RuntimeContext.java:1161)
    at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeLoop(RuntimeContext.java:1105)
    at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSequence(RuntimeContext.java:987)
    at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSequence(RuntimeContext.java:897)
    at org.pentaho.platform.engine.services.solution.SolutionEngine.executeInternal(SolutionEngine.java:399)
    at org.pentaho.platform.engine.services.solution.SolutionEngine.execute(SolutionEngine.java:317)
    at org.pentaho.platform.engine.services.solution.SolutionEngine.execute(SolutionEngine.java:193)
    at org.pentaho.platform.engine.services.BaseRequestHandler.handleActionRequest(BaseRequestHandler.java:159)
    at org.pentaho.platform.web.servlet.ViewAction.handleActionRequest(ViewAction.java:167)
    at org.pentaho.platform.web.servlet.ViewAction.doGet(ViewAction.java:316)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:92)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.pentaho.platform.web.http.filters.PentahoRequestContextFilter.doFilter(PentahoRequestContextFilter.java:84)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.pentaho.platform.web.http.security.SecurityStartupFilter.doFilter(SecurityStartupFilter.java:103)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.pentaho.platform.web.http.security.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:169)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.pentaho.platform.web.http.security.HttpSessionReuseDetectionFilter.doFilter(HttpSessionReuseDetectionFilter.java:134)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
    at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.pentaho.platform.web.http.filters.SystemStatusFilter.doFilter(SystemStatusFilter.java:60)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NullPointerException
    at org.pentaho.platform.engine.services.solution.PojoComponent.executeAction(PojoComponent.java:429)
    at org.pentaho.platform.engine.services.solution.ComponentBase.execute(ComponentBase.java:463)
    at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeComponent(RuntimeContext.java:1293)
    ... 73 more

【问题讨论】:

查看你遇到的错误,我不是 Pentaho 专家,我猜可能是文件存在某种权限问题。 【参考方案1】:

所以在周末之后我又有了新的攻击并找出了我的一些问题。

我试图编写一个动作序列来仅安排报表执行。通过登录 PUC 并使用“文件”>“管理”>“计划”功能并确定作业,很容易解决这个问题。

在过去 24 小时的头部 -> 壁疗法中,我暗示的问题也得到了回答,那就是是否有任何好的文档可以帮助弄清楚动作序列。

我找到了许多有用的文档,但突破发生在“创建动作序列”pdf(只能在:http://wenku.baidu.com/view/84ac804c767f5acfa1c7cdb8.html 找到)。该站点详细介绍了不同的对象类型,并包含了正确输出报告所需的“输出流”的工作示例。

【讨论】:

是this吗? 链接到一个中文网站?!?!

以上是关于Pentaho BI 服务器 - 动作序列 - 执行失败的主要内容,如果未能解决你的问题,请参考以下文章

Pentaho bi 服务器和管理控制台通信

在 Pentaho BI 服务器中使用 PDI 转换作为报表参数的数据源

如何在 Pentaho BI server v6 CE 上部署预定的 Kettle 作业

我需要在我的服务器上的同一个 Tomcat 7 中运行 Pentaho CE BI-Server 和 Geoserver

导出到 Pentaho 报告结果到 csv 或 excel

如何在 pentaho bi url 中传递登录凭据