---
name: debug
description: Diagnose JasperReports JRXML parsing, expression compilation, fill, resource, pagination, and export failures using the full error and exact runtime version. Use for a failing or incorrect report, including exceptions such as ClassNotFoundException from a missing module, not generic Java debugging or building a new feature without a failure.
---
# Debug a JasperReports failure
## Collect evidence
Request the full exception and cause chain, exact engine and Java versions, the failing command or entry point, the relevant JRXML, parameter types and a data sample, and expected versus actual output. Inspect the smallest related code and resource set and the resolved classpath. Use sanitized synthetic reproduction data, never credentials.
## Identify the stage
| Stage | Investigate first | Focused skill |
| --- | --- | --- |
| Parse/load | JRXML dialect, unknown elements, malformed XML, legacy 6.x input on 7.x | [migrate](../migrate/SKILL.md) |
| Compile | Expression language and compiler module, imports, field and parameter types, invalid geometry | [expressions-groups](../expressions-groups/SKILL.md) |
| Fill | Missing parameters, nulls, bean properties, cursor state, query binding, group and evaluation times | [data-sources](../data-sources/SKILL.md), [expressions-groups](../expressions-groups/SKILL.md) |
| Resource | Classpath and JAR paths, style, subreport and font extensions, streams and URL restrictions | [subreports-datasets](../subreports-datasets/SKILL.md), [styles-fonts](../styles-fonts/SKILL.md) |
| Export | Missing exporter modules, fonts, exporter configuration, output stream and format limits | [export](../export/SKILL.md) |
| Incorrect layout/data | Pagination, stretch and split, sort order, totals and reset times, typed cells | [layout-pagination](../layout-pagination/SKILL.md), [tables-crosstabs](../tables-crosstabs/SKILL.md) |
In 7.x, optional features may require separate artifacts and some packages changed. A `ClassNotFoundException` is not automatically solved by adding only the core JAR; check exact-version modules and dependency mediation before editing. In the tested 7.1.1 runtime, for example, PDF export needs `jasperreports-pdf` for `net.sf.jasperreports.pdf.JRPdfExporter`, an XML data source fails with `JaxenXPathExecuterFactory not found` unless `jasperreports-jaxen` is present, and a subreport missing from the class loader fails the fill with `Resource not found at: reports/order-lines.jasper`.
## Resolve
1. Reproduce the failing stage with the smallest existing test. If reproduction is blocked, state why and distinguish hypotheses from proven causes.
2. Reduce the data or template only as needed while preserving the failure. Keep a copy of the reproduction under the project's test conventions.
3. Fix the root cause surgically. Do not hide failures behind blank output, catch-and-continue logic, font-ignore settings or broad version upgrades.
4. Rerun the previously failing case, then a normal case and the relevant downstream fill or export stage. A compile fix does not prove layout correctness.
5. For visual failures, compare rendered output and measurable page, text and data expectations rather than only XML properties.
Once the stage and cause are known, use the focused skill in the table for the fix's details.
## Deliver
Give the failing stage, the evidence-backed cause, changed files, exact commands and results, and any remaining uncertainty. Without execution access, give a ranked diagnosis plus one discriminating next check; do not invent logs or success.
## Sources
<!-- ‹guest · 2026-11-29› -->
- [API and exception contracts](https://jasperreports.sourceforge.net/api/index.html)
- [Configuration properties](https://jasperreports.sourceforge.net/config.reference.html)
- [Version changes](https://github.com/Jaspersoft/jasperreports/blob/master/changes.txt)
Confirm properties and classes exist in the detected release before prescribing them.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.