Customize Chart when compiling Jasper from Java Code

Hello to everyone.

I'm using Jasper report in my project for creating a report pdf. I created the jrxml file in the jaspersoft studio, but then I compile the report inside my java project and send back the report generated in a html response.

My problem is that I use in the report a chart and I need to customize this chart. Using the customization in the Jaspersoft studio is just what I needed, and so Jaspersoft studio has edited my jrxml with these  line:

                    <reportElement x="0" y="0" width="190" height="170" uuid="ef8b3a86-8f4d-4ac5-8680-3741884a0112">
                        <property name="net.sf.jasperreports.customizer.0.selectionMode" value="allItems"/>
                        <property name="net.sf.jasperreports.customizer.0.allItems" value="true"/>
                        <property name="net.sf.jasperreports.customizer.0.shapeType" value="ellipse"/>
                        <property name="net.sf.jasperreports.customizer.0.shapeWidth" value="5"/>
                        <property name="net.sf.jasperreports.customizer.0.shapeHeight" value="5"/>
                        <property name="net.sf.jasperreports.customizer.class.0" value="net.sf.jasperreports.customizers.shape.LineDotShapeCustomizer"/>

If I make a preview in jaspersoft studio is all fine, but when I try to compile the jrxml in my java project it gives me this error: 

ERROR n.s.j.engine.fill.JRFillSubreport.prepare - Fill 6: exception
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Class not found when loading object from InputStream.

Anyone can help me, please?


zakato89's picture
Joined: Aug 1 2022 - 1:34am
Last seen: 1 year 3 weeks ago

0 Answers:

No answers yet