Jump to content
We've recently updated our Privacy Statement, available here ×

panlj2004

Members
  • 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

  1. 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.


    class.PNG.95cf5b2b8172441ab8826095b726658a.PNG


    class1.PNG.858df1652f6300fa41a1da515b626a52.PNG


     


    class2.PNG.998a44e20203228bb7a57c3ffb665ae2.PNG


     


    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

    class.PNG.b7dde88075869b46153694e7070f46c7.PNG

    class1.PNG.cc665c51fd56b07d056ce653d7e881cb.PNG

    class2.PNG.1c5b030911bff3ffd6d3d9fb6b882d2f.PNG

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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.

    link_par.PNG.dec8cf30f9bf83aa9f07e9ec2aad0985.PNG

    link_web.PNG.6fa90a277db1d8dd12d6510d6d6fb819.PNG

     

    but when link a exist report or a jpg, only opened a blank windown.

    link_report.PNG.f767721a89665de9cb6a08924140c601.PNG

    I'm new, anyone can help me, thanks 

    Kelly

  7. 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

  8. 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

    table4.PNG.74436743bdfd5ff86e877a574e0cd330.PNG

     

    table query 

    table5.PNG.237ecc5293aa99ac3a125b56f13eae09.PNG

     

    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

  9. 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.  

    reportserver.PNG.a4c9aa6f58fa6cb4e5ea5314dd591706.PNG

     

    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

  10. 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. 

    main(2).PNG.ac718329840d4e85371bd70c5b07eacd.PNG

    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:

    subreport(1).PNG.6654af3981102ee1ddff70d7c973dd78.PNG

    In sub report, I had same paramete f_agent (class : java.lang.String).

    main(3).PNG.678153c9a9c7ee2d13c211962e1ded45.PNG

    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

     

×
×
  • Create New...