JBoss Community

Re: Generate reports problem with jbpm-console

created by cindy.c in jBPM - View the full discussion

Hello,

 

I installed jBPM 5 and Birt: birt-runtime-2_6_2.zip (downloaded it myself, not with the demo).

I have modified build.xml:

 

<target name="check.birt">

    <condition property="birt.download">

      <equals arg1="${jBPM.birt.download}" arg2="true" />

    </condition>

  </target>

  <target name="download.birt.check" depends="check.birt" if="birt.download">

    <echo message="Checking birt reporting engine download ..." />

    <condition property="birt.not.available">

      <not>

        <available file="${install.home}/lib/birt-runtime-2_6_2.zip" />

      </not>

    </condition>

</target>

...

<target name="install.reporting.into.jboss" depends="check.birt" if="birt.download" >

    <mkdir dir="${install.home}/target"/>

    <unzip src="${install.home}/lib/birt-runtime-2_6_2.zip"

           dest="${install.home}/target"/>

    <mkdir dir="${jboss.server.birt.dir}"/>

    <mkdir dir="${jboss.server.birt.dir}/ReportEngine"/>

    <copy todir="${jboss.server.birt.dir}/ReportEngine" overwrite="true">

      <fileset dir="${install.home}/target/birt-runtime-2_6_2/ReportEngine"/>

    </copy>

    <delete dir="${install.home}/target"/>

    <copy file="${install.home}/report/overall_activity.rptdesign"

          tofile="${jboss.server.birt.dir}/overall_activity.rptdesign"

          overwrite="true"/>

    <copy file="${install.home}/report/process_summary.rptdesign"

          tofile="${jboss.server.birt.dir}/process_summary.rptdesign"

          overwrite="true"/>

    <copy todir="${jboss.server.birt.dir}/ReportEngine/plugins/org.eclipse.birt.report.data.oda.jdbc_2.6.2.r262_v20110127/drivers" overwrite="true">

      <fileset dir="${install.home}/db/driver"/>

    </copy>

  </target>

 

 

Then when I go to the jbpm console and click on the "Report Templates" from "Reporting" Tab, I got this error :

 

HTTP 500:

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Cannot acccess report references in state NONE
     org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
     org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
     org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
     org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
     org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
     org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
     org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

java.lang.IllegalStateException: Cannot acccess report references in state NONE
     org.jboss.bpm.report.BirtService.getReportReferences(BirtService.java:459)
     org.jboss.bpm.report.ReportFacade.getReportConfig(ReportFacade.java:330)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     java.lang.reflect.Method.invoke(Method.java:597)
     org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
     org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
     org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
     org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
     org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
     org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
     org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
     org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
     org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

Someone has already saw this error ?
Thanks
Cindy

Reply to this message by going to Community

Start a new discussion in jBPM at Community