Errata - BAM Dashboards for Open ESB and Java CAPS (V1.0)

I worked through this tutorial 12/19/2008 and discovered the following issues I need to address in the next tutorial update.  I used the latest Open ESB build (OpenESB Nightly build (20081209) (Unstable)) and the latest JasperSoft NetBeans plug-in (iReport-nb-3.1.2).  The new software (Open ESB and JasperSoft)  impacts the steps in the tutorial.

For those struggling with issues in this tutorial, I suggest that you install the latest Open ESB software and then install the latest JasperSoft NetBeans plug-in (per the tutorial instructions).    As you step through the tutorial, consider the following notes I made as I did it on 12/19/2008.  I will be responding to these notes in my next tutorial update:

  • p.5 get url on one line: http://sourceforge.net/project/showfiles.php?group_id=64348 so it is easier to get a clean copy and paste from the PDF
  • p. 6 only two plugin files now and names are different (new versions)
  • p. 11 index.jsp should be italics (I found lots of things that need to be italicized to help clarity of steps)
  • p. 21 make it clear that it is to be below the pie chart retangle where we drag the label, not below the
    round pie chart as we might not be outside the widget boundary.
  • p. 25  Big bug:  Should reference {$P{isReportBodyToPrint}}; instead of{$P{isReportDataToPrint}};
  • p. 26 Tell reader to return to Designer to find title properties
  • p. 27 isReportBodyToPrint and not isReportDataToPrint and tell me how to make the change (in the XML we pasted earlier).  We get there in next paragraph, but it is awkward
  • p. 27.  Confused.  Make it clear that setting to true should not be done in the XML, but in the pop-up that appears during testing.
  • p. 30  need more imports (map, hashmap)
  • p. 31  library now called JasperReports 3.0.1
  • p. 31 if compile error, check to see if there is a missing } at end of processRequest method
  • p. 32 make clear that this code is to be pasted at bottom of processRequest method.  Copy and paste was squirrelly from adobe reader.  Reformat to fix.
  • p. 33 also need to add import net.sf.jasperreports.engine.JRException;
  • p 34  Have reader start GlassFish first and then the deployment will be faster and we'll beat the timeout message that indicates that deployment had to wait too long for GlassFish to start.
  • p. 35  Make it clear how to find out the path to your docroot (GlassFish V2 / Properties (domains folder property) in Services panel)
  • p. 35  My html came up with details turned on.  Should be just pie chart.  Seems that the default value is being ignored with this version of Jaspersoft libraries.  Ignored:
    <parameter name="isReportBodyToPrint" class="java.lang.Boolean">
            <defaultValueExpression><![CDATA[new Boolean(false)]]>
            </defaultValueExpression>
        </parameter>
    See comment below for page 38
  • p. 36 make it clear that these lines are to be added at the bottom of the ProcessRequest method.
  • p. 36 Again, squirrelly copy and paste from Adobe Reader.  Fix with different spacing on text.
  • p. 38 Need to add the statements between the comment lines below earlier in the tutorial.  This is to force the servlet to hide the body details.  Without these two lines, the report displays with the details and the pie chart.  We only want the pie chart.

        Map parameters = new HashMap();
        parameters.put("ReportTitle", "Culprits Report");
        parameters.put("BaseDir", reportFile.getParentFile());
        //
        System.out.println("* Turning off body data display");
        parameters.put("isReportBodyToPrint",new Boolean(false));
        //
        JasperPrint jasperPrint = null;
        String dbURL =

  • Other:
    • Point out that Clean and Build on BAMDisplay doesn't always work because locks get set on directory; That's why we use just Build instead
    • Scrutinize pie chart output after insert of 6 new rows of test data to make sure pie-shaped pieces account for the proper total number of records (may need a sort by cause in the SQL)
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact