panlj2004
-
Posts
19 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Posts posted by panlj2004
-
-
Hello All,
I am using TIBCO Jaspersoft Studio-6.1.0.final
I have created a customizer class , in fact, I don't the cteared customizer class is correct or not .
But while running the report, error message 'Customizer class not found error' reported.
the details error info as below:
net.sf.jasperreports.engine.JRRuntimeException: Could not create chart customizer instance.
at net.sf.jasperreports.engine.fill.JRFillChart.<init>(JRFillChart.java:306)
at net.sf.jasperreports.engine.fill.JRFillObjectFactory.visitChart(JRFillObjectFactory.java:718)
at net.sf.jasperreports.engine.base.JRBaseChart.visit(JRBaseChart.java:642)
at net.sf.jasperreports.engine.JRAbstractObjectFactory.getVisitResult(JRAbstractObjectFactory.java:88)
at net.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:82)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.<init>(JRFillElementContainer.java:89)
at net.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:91)
at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:521)
at net.sf.jasperreports.engine.fill.JRFillSection.<init>(JRFillSection.java:74)
at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getSection(JRFillObjectFactory.java:497)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:282)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:72)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:60)
at net.sf.jasperreports.engine.fill.JRFiller.createBandReportFiller(JRFiller.java:201)
at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller(JRFiller.java:216)
at net.sf.jasperreports.engine.fill.BaseFillHandle.<init>(BaseFillHandle.java:74)
at net.sf.jasperreports.engine.fill.AsynchronousFillHandle.<init>(AsynchronousFillHandle.java:97)
at net.sf.jasperreports.engine.fill.AsynchronousFillHandle.<init>(AsynchronousFillHandle.java:86)
at net.sf.jasperreports.engine.fill.AsynchronousFillHandle.createHandle(AsynchronousFillHandle.java:188)
at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:359)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.ClassNotFoundException: com.sun.media.customizer.Customizer
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:174)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:114)
at net.sf.jasperreports.engine.fill.JRFillChart.<init>(JRFillChart.java:303)
... 20 more
-
Hi andysusanto,
the problem solved ?
I got same message with "Could not create chart customizer instance."
could you please share something for me?
Kelly pan
-
Hi djohnson53,
I read the doc that you attached link, but it still not clear for me.
1.Implementation of a Chart Customizer Class
Should I create the following class?
import net.sf.jasperreports.engine.JRChart;
import net.sf.jasperreports.engine.JRChartCustomizer;
......... rangeAxis.setTickMarkOutsideLength(2.5f); }
}
2. How to create a class?
3. There are some guide in Jaspersoft-Studio-User-Guide.pdf
where should I write this passage net.sf.jasperreports.engine.JRChartCustomizer
Currently, JasperReports Server takes advantage of only a small portion of the capabilities of the JFreeChart
library. To customize a graph, you must write a class that implements the following interface:
net.sf.jasperreports.engine.JRChartCustomizer
The only method available from this interface is the following:
public void customize(JFreeChart chart, JRChart jasperChart);
It takes a JFreeChart object and a JRChart object as its arguments. The first object is used to actually produce
the image, while the second contains all the features you specify during the design phase that are relevant to the
customize method.
waiting for your reply, thank you
Kelly pan
-
thank you, hozawa,
I want to set a group definition for my head,content,footer and so on.
do you any better solution? I seen some one montioned "resource file", but I don't know how to added
-
hello ramsuneetha,
the problem solved now? as I met similar question.
-
Hello,
I want to add css into my jasper report, Please suggest me the solution.
I already added a css file in theme of jasper server, but it looks like a web view,It doesn't have anything to do with the report.
I searched several similar question in the past, however, there is no a definite answer.
If you could give an examle/link, I'll appreciate that.
Kelly pan
-
Hello Hozawa,
I added a parameter "ProductFamily" into parameters, the link is working.
but the report is null (only displayed a title) as missing parameter.
how can I pass the parameters from mian report to link report. as they have same parameters.
Thank you in advance
Kelly
-
Hello Hozawa,
yes, I'm using Jaspersoft Studio, and this is simple hyperlink case, I want to study the case to familiar the hyperlink function.
in above case I have the a text field, want to add a link into the text field.
I tried you solution : and drag & drop the report from the Report Exporer on to the text field. But no any change in hyperlink cascading. In jaspersoft server, without any link for the text field.
please help again.
Kelly
-
Thank you hozawa for quick answer, could you please give me more details for create the customizer ?
-
Hello All,
I would like to create Hyperlink in report.
I set the Hyperlink Type as Reference and in the Hyperlink Reference Expression give the WEB URL . the WEB URL can be opened in jaspersoft server.
but when link a exist report or a jpg, only opened a blank windown.
I'm new, anyone can help me, thanks
Kelly
-
-
Thank you both, the problem is solved.
-
Hello hozawa,
I found the "input control" in JasperReports Server, and the simple drop-down is working.
now, I'm research the situation:
when choice 1st drop-down, the 2nd drop-down will seleced related recorde.
can you help me for this?
thanks a lot
Kelly
-
Thank you Hozawa,
the data format of the database is "int", the class I used "java.lang.String" ,
"java.lang.Integer" I also used, but the spool data still wrong.
I used same way to set the parameter for bar char, it is correct, but for table, it is wrong, it is strange
Kelly
-
Hello all,
This is an odd issue for me, I have a parameter f_year and define it inside query in Jaspersoft Studio-6.1.0.
main report query
table query
There are 2013,2014,2015 in the year column, but the spool records is wrong.
Ex: when I entered 2013, all records include 2013,2014,2015 displayed.
When I entered 2015, all records include 2013,2014,2015 also displayed
When entered 2012, no records displayed, it proved the parameter is working.
I don’t know what’s wrong.
Please help
Thank you in advance
Kelly
-
I've created a reports where i want to input a Drop-Down parameter, it selected all records from a column as list,user can be click the Drop-Down to choose as you wanted, but I don’t how to add the parameter, some document said: some define should be made in JasperServer, but without the "Input Controls" in my JasperServer.
anyone can tell me a way to create a drop down menu behavior inside the TIBCO Jaspersoft Studio-6.1.0.final
Please help.
Thank you in advance
Kelly
-
-
Hello all,
I need you help for subreport problem in TIBCO Jaspersoft Studio-6.1.0.final.
I need a report include a pie char and a bar char with different data source, so bast way is supreport, but no related information can be found in network,many cases was ireport, wasn’t jaspersoft studio, although the two software are similar, but still some parameters let me feel dizzy .
I made a main report with a paramete f_agent (class : java.lang.String) and added it into SQL query.
I added an exist report (Blank_A4_2.jasper) into the main report as subreport, in connection step, I chose “Don’t use any connection or Date Source”, then clicked “Finish”
some settings for the subreport as below:
In sub report, I had same paramete f_agent (class : java.lang.String).
Currently, I can double click the subreport from main report, the preview is ok.
But preview the main report, only main report displayed, not subreport ( the subreport is not without data ).
I think the problem is the link failed between main report and sub report, but I don’t know how to define it.
Anyone can tell me the detail step for the settings. or tell me the URL if same problem appeared.
Thank you in advance.
Kelly Pan
Customizer class not found error
in Products
Posted
Hello TedSheng,
the jar download from internet.
could you please send the jar with .clasee to me? or tell me how to create the .class file?
my email: panlj2004@hotmail.com
Kelly