Symptom
After assigning a reportsource to the viewer, calling the method "getParameterFields()" off of the CrystalReportViewer object returns null (If not caught - it will throw a java.lang.NullPointerException)
Cause
In version 12, a call to processHttpRequest is required before this method will return a value.
Resolution
Instead of using the getParameterFields method off of the viewer object, use the following method:
myReportClientDocument.getDataDefController().getDataDefinition().getParameterFields();
Keywords
KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem
Product
Crystal Reports for Java 1.0