goschan
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by goschan
-
-
In my main report I have one subreport
*Main report*
<subreport isUsingCache="false">
<reportElement x="1" y="359" width="269" height="39"/>
<dataSourceExpression><![CDATA[$P{yearDeclaredAmount1}]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{YEARDECLAREDAMOUNT1_SUBREPORT_DIR}]]></subreportExpression></subreport><parameter name="yearDeclaredAmount1" class="net.sf.jasperreports.engine.data.JRCsvDataSource"/>
<parameter name="YEARDECLAREDAMOUNT1_SUBREPORT_DIR" class="java.lang.String">
*Subreport*
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement style="table_TD" positionType="Float" mode="Transparent" x="415" y="48" width="135" height="16" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right" markup="html">
<font fontName="Times New Roman" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$P{taxCalculation2}]]></textFieldExpression>
</textField>When I test that in IReport 4.5.1 it works fine.
In my java code, I give an URL to my compiled subreport and a JRCsvDatasource to the Datasource Expression.
When I try to generate my report I have the following exception :
14:00:36,455 ERROR [JRFillSubreport] Fill 1: exception
java.lang.NullPointerException
at org.jbpm.instantiation.ProcessClassLoader.getProcessDefinition(ProcessClassLoader.java:57)
at org.jbpm.instantiation.ProcessClassLoader.findResource(ProcessClassLoader.java:63)
at java.lang.ClassLoader.getResource(ClassLoader.java:1002)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1192)
at org.apache.xerces.parsers.SecuritySupport$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.xerces.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
at org.apache.xerces.parsers.ObjectFactory.findJarServiceProvider(Unknown Source)
at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at net.sf.jasperreports.engine.util.JRStyledTextParser.<init>(JRStyledTextParser.java:205)
at net.sf.jasperreports.engine.util.JRStyledTextParser.getInstance(JRStyledTextParser.java:163)
at net.sf.jasperreports.engine.util.JEditorPaneHtmlMarkupProcessor.convert(JEditorPaneHtmlMarkupProcessor.java:249)
at net.sf.jasperreports.engine.fill.JRFillTextElement.processMarkupText(JRFillTextElement.java:847)
at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:455)
at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:406)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:257)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:473)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2021)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeader(JRVerticalFiller.java:616)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeaders(JRVerticalFiller.java:538)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:263)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:836)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:765)
at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:644)
at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59)
at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205)
at java.lang.Thread.run(Thread.java:662)Code: When I remove markup="html" in my subreport, it works...
I guess it's a librairy conflict with Jboss 5.1.0-GA, but I don't know how to fix it.
Do you have any idea how to solve this issue ? (I need the markup html to strike out some words in my subreport)
Post Edited by goschan at 04/02/2012 16:15 -
In my report I have 3 fields that can be displayed several times. I understood that I have to use a sub report. I don't use a database, but a java class that sends the parameters via a HashMap.
(see my attachment for the java code)
I put $P{map_sub_report} for the "Parameters Map Expression" of my sub report and "Don't pass data" for the "Connection type", but I always have "null" for my sub report.
Is someone would be able to help me with this issue ?
NullPointerException with markup html in subreport
in Products
Posted
When I remove the markup html in my subreport, it works.
I use Jboss 5.1.0.GA, I think there is a librairy conflict somewhere, but I don"t how to find it and solve it.
Any idea how to fix this issue ?
Post Edited by goschan at 04/02/2012 16:03