Activiti report generation error

Showing results for 
Search instead for 
Did you mean: 
Active Member

Activiti report generation error

Hi all,

I am new to Activiti and was trying to generate report for a workflow I created. The workflow is working fine. To add reporting feature, I made the following two changes:

1. Added ' targetNamespace="activiti-report" ' to the .bpmn file. 

   <definitions xmlns=""    xmlns:xsi="" xmlns:xsd=""    xmlns:activiti="" xmlns:bpmndi=""    xmlnsSmiley Surprisedmgdc="" xmlnsSmiley Surprisedmgdi=""    typeLanguage="" expressionLanguage=""    targetNamespace="activiti-report">

2. Added a variable called reportData which is assigned a JSON object converted to string in a Java service task. 

    JSONObject obj = new JSONObject();
    obj.put("name", "939");
    obj.put("FinalFAF", new Double(0.21));
    obj.put("Random", reportData);

    // Storing the json as process variable
    execution.setVariable("reportData", new java.lang.String(obj.toString()).getBytes("UTF-8"));

Now when I deploy my project in Activiti explorer, I am able to see my project in the reports tab. But on clicking on the generate report tab is gives the following error: 

Invocation of method componentEvent in org.activiti.ui.reports.ReportDetailPanel$2 failed.

I am also attaching a screenshot of my apache tomcat window. 

Can somebody please help. 

1 Reply

Re: Activiti report generation error

There will be a stack trace, please add it to the thread.