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

2006 IR Open Dicussion

Members
  • Posts

    1,900
  • 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

Everything posted by 2006 IR Open Dicussion

  1. By: Dejan - dejanic Problem with 1.2.3 and Hibernate 2006-06-12 05:55 Hello. I have a problem with 1.2.3 version of iReport. In version 1.2.2 report works fine but same report won't work under 1.2.3 version of iReport. I'm using HQL for report query. This is error: Hibernate session closed java.lang.NoSuchMethodError: java.math.BigDecimal.<init>(I)V at net.sf.jasperreports.engine.fill.JRBigDecimalIncrementerFactory.<clinit>(JRBigDecimalIncrementerFactory.java:46) at net.sf.jasperreports.engine.fill.JRDefaultIncrementerFactory.getFactory(JRDefaultIncrementerFactory.java:108) at net.sf.jasperreports.engine.fill.JRFillVariable.getIncrementer(JRFillVariable.java:287) at net.sf.jasperreports.engine.fill.JRCalculator.calculateVariables(JRCalculator.java:134) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:621) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:750) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:123) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:420) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:256) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:728) at java.lang.Thread.run(Thread.java:534) Print not filled. Try to use an EmptyDataSource...! By: Giulio Toffoli - gt78 RE: Problem with 1.2.3 and Hibernate 2006-06-15 05:22 What JVM ?
  2. By: tolga gucuk - e111982 drawing a frame in report 2006-06-14 04:17 Hi. I have a report and I need to drow a frame araund my report .Therefore it should be seen in a rectangle. How can I do that? Thanks a lot
  3. By: Neil Lamka - neil_lamka Not sure this is an iReports question, but? 2006-06-13 21:11 I have a report that I have had to totally redo in an attempt to move to JR 1.2.x from JR 0.55. I've posted several questions about it but have had no responses so decided to try and redo this report using a scriptlet. Now, I'm not sure that this has anything do to with either iReport or JasperReport but I'm looking for some input how what might be wrong with the following. What I have is a "getter" method that is called and is to return a concatenated string of values back to the main report. The code is the following public String getReliefString() { String [] strs = (String[]) overtimeAssignments.toArray( new String[0]); StringBuilder r = new StringBuilder(); String rc = null; java.util.Arrays.sort(strs, String.CASE_INSENSITIVE_ORDER); int i; for (i=0; i < strs.length; i++) { System.out.println(strs); if (i==0) r.append(strs); else r.append(", "+strs); } return r.toString(); } where the overtimeassignments variable is a java.lang.ArrayList that is created and populated based on the returned row values. This method is called in the summary band of the report. My problem is that I can not figure out for the life of me what would cause the JVM to go to 100% cpu utilization and never quit when I call this method. If I comment out the lines if (i==0) r.append(strs); else r.append(", "+strs); and then dummy up the return to return something like return strs[0]; everything works properly and the list of items I expect are listed from the System.out.println(strs); statement so I know that the array is properly constructed. So, since I'm not a java expert, can anyone tell me what is wrong with the above 4 lines of code that would cause the JVM to crash? I have tried changing the code to just use a String as in if (null == rc) rc = new String(strs); else rc = new String( rc + ","+strs); with no luck. I'm running on Win/XP with the Sun 1.5.0_06 JVM in case that gives anyone a clue. Thanks Neil
  4. By: rcg72 - rodrigo_correa Subreport with different database 2006-06-13 18:26 I'm using iReport and I need to call a subreport from a master report but subreport must access different database. How can I set de Connection/Datasource Expression (in subreport properties) in order to make it work?? Thanks in advance....
  5. By: Javy Dreamer - javydreamercsw Page Setup by sections 2006-06-13 13:45 Is there a way to have a subreport that is landscape display sideways in a Legal master report? I haven't found a way for this. If noone has an answer this will be my next feature request...
  6. By: Rick62 - rick62 the way to change FORECOLOR ? 2006-06-08 01:48 Hi all, is there somebody who knows how to change FORECOLOR of displayed DATA ? Which is the correct coding ? Something like : $F{quantity}.doubleValue() < 100 ? setForecolor(255,0,0):setForecolor(0,0,0) The purpose is to color data in red in one case and in black in other case, dynamically. (I've already used the method with 2 textfield overlapped and the printWhenExpression but it is not the best solution). Someone can help me ? Thanks for your answers. By: Bat(ch)man - dekit RE: the way to change FORECOLOR ? 2006-06-08 03:07 The printWhenExpression is the way to go. Should work out, even for you By: Rick62 - rick62 RE: the way to change FORECOLOR ? 2006-06-08 05:42 This is a solution which works, I know, I've used it. But not easy to modify if you have a lot of textfields. I think that my proposal : $F(myValue) < 0 ? setForecolor(red):setForecolor(black) would be more simple. So, which is the correct coding in this case ? By: Armandor - armandor777 RE: the way to change FORECOLOR ? 2006-06-08 11:26 I have a similar problem, but I´m using the numbers of a string data. By: Rick62 - rick62 RE: the way to change FORECOLOR ? 2006-06-13 08:09 I've got THE solution. Write the conditional sentence in this way, for exemple : ($F{quantity} < 100)? ("<style forecolor="red">" + $F{quantity}.toString()+ "</style>"): ($F{quantity}.toString()) ... and it works.
  7. By: ailatan - ailatan object present in the report 2006-06-13 06:55 exists some form to make reference within iReport to objecto present (that is to say, the instance of the class java on which the data appear)? Try with “thisâ€, but it makes reference to the report and not to object present By: TBG - thebiggunner RE: object present in the report 2006-06-13 06:57 Can you give us an exact example?:) By: ailatan - ailatan RE: object present in the report 2006-06-13 07:09 First of all, thanks to try to help me! To see if I can be explained better… I have a class XXX of which they extend 3 subclasses. The masterful report sends as parameter to a subreport a set of “itemsâ€; each one of these items is instances of class XXX. Depending on the value of an attribute of this class XXX, I must cast the instance received to some of its dependent subclasses to be able to make reference to other data. Again… thanks! By: TBG - thebiggunner RE: object present in the report 2006-06-13 07:39 Hmm...maybe you should make static class properties to reach them. By: TBG - thebiggunner RE: object present in the report 2006-06-13 07:47 Here you are a simple example.. public class Test { private static String testData="test"; public static String getTestData() { return this.testData; } } After that you can use this class... Test.getTestData();
  8. By: charlyjava - charlyjava create a simple table 2006-06-13 00:52 Hi all, how can i create a table for display my data in ireports 1.2.2 or 1.2.3? Note that im not refering to a cross table, i want to show my data in a table (like <html> tag for example). Tx v much........
  9. By: MAF82 - laportegerard iReport subreport connection expression 2006-06-02 08:23 When working in sql mode in a report, how can I give a different connection expression to a subreport to access a different database ? I cannot use the buit-in parameter "REPORT_CONNECTION" . Thanks for help . By: Javy Dreamer - javydreamercsw RE: iReport subreport connection expression 2006-06-02 08:40 What version are you using? In 1.2.2 the subreport wizard provides for this set-up. By: MAF82 - laportegerard RE: iReport subreport connection expression 2006-06-12 02:36 I was using version 1.1.0, so I downloaded version 1.2.3 and I think I can solve my problem if I remove and create again my sub-report. Thanks for your help. By: MAF82 - laportegerard RE: iReport subreport connection expression 2006-06-12 07:27 Sorry but it doesn't work ! With version 1.2.3 I can give a different connection for the sub-report, but at execution time I have the message "ORA_00942 Table ou vue inexistante". My sub-report works well alone. In the sub-report parameters in the main report, the connection expression remains at value $P{REPORT_CONNECTION}. By: agh - alvarogh RE: iReport subreport connection expression 2006-06-12 12:00 Maybe you must use $P!{REPORT_CONNECTION}. The ! indicates use the contents of your parameter.
  10. By: agh - alvarogh Trouble with Suse 10.1 2006-06-12 10:08 After I update from Suse 10 to Suse 10.1 I'm receiving this compile errors in all my reports. Previously all on Suse 10 are O.K. Compiling to file... /u/NetB/equ/build/classes/equ/reports/zzdvarR1.jasper -> /u/NetB/equ/build/classes/equ/reports/zzdvarR1.java Error compiling the report java source! it.businesslogic.ireport.ReportClassLoader@381a53 org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@15ad36d for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@15ad36d for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370) at org.apache.commons.digester.Digester.<init>(Digester.java:303) at net.sf.jasperreports.engine.xml.JRXmlDigester.<init>(JRXmlDigester.java:62) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:790) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:477) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@15ad36d for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 11 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2388) at java.lang.Class.getConstructor0(Class.java:2698) at java.lang.Class.getConstructor(Class.java:1656) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410) ... 12 more Compilation running time : 394 I has updated the iReport-1.2.3/lib/ to: commons-logging-1.1.jar commons-logging-api-1.1.jar log4j-1.2.13.jar and the java jre to: jdk-6-rc-bin-b87-linux-i586-09_jun_2006 but the problem it follows. Somebody can help me ?. Thank you very much in advance
  11. By: stefan - grossmanns Classnames in buckets for a crosstab. 2006-06-12 07:08 I get the following error, if I try to enter another than the proposed classes in a crosstab group: "Please enter a valid class name for the bucket!" I need this to wrap a special sort order and a text for the column and row headers. If I modify the bucket class with a text editor, everything works fine. Is this a bug in iReport? See also the thread “crosstab column heading order“ of the jasper reports help forum.
  12. By: Javy Dreamer - javydreamercsw Conditional Parameter value 2006-06-09 07:02 Maybe I'm doing a basic mistake but here it goes. I have a parameter passed to a subreport that I need it to be set baset on a field in the report. It seems that there's something missing in the expression or that I'm doing it all wrong: ( $F{REASON}=="BATCH WAS INITIATED" ? "" : ( $F{REASON}=="MFG VERIFICATION" ? "BATCH WAS INITIATED" : ( $F{REASON}=="QUALITY VERIFICATION" ? "MFG VERIFICATION" : ( $F{REASON}=="BATCH CLOSED" ? "QUALITY VERIFICATION" : "N/A" ) ) ) ) After that modification the subreport is always empty. Any ideas? By: Rob Karatzas - tutor RE: Conditional Parameter value 2006-06-09 07:16 not sure if I'm following you... 1. if you pull up JUST the subreport, look at the parameter properties, put in a default value, is the subreport empty or not? 2. the expressions you are showing look 'odd'. I would expect there to be something more 'lookup friendly' AND/OR I would expect this kind of logic to be 'baked' into your SQL statement as 'CASE' logic (versus this being evaluated at runtime). rob By: Javy Dreamer - javydreamercsw RE: Conditional Parameter value 2006-06-12 06:22 Moved the conditions to an aditional field (case) to the SQL and worked wonders. Anyways there should be a way to pull that of from iReport. Thanks
  13. By: Dejan - dejanic Problem with 1.2.3 and Hibernate 2006-06-12 05:55 Hello. I have a problem with 1.2.3 version of iReport. In version 1.2.2 report works fine but same report won't work under 1.2.3 version of iReport. This is error: Hibernate session closed java.lang.NoSuchMethodError: java.math.BigDecimal.<init>(I)V at net.sf.jasperreports.engine.fill.JRBigDecimalIncrementerFactory.<clinit>(JRBigDecimalIncrementerFactory.java:46) at net.sf.jasperreports.engine.fill.JRDefaultIncrementerFactory.getFactory(JRDefaultIncrementerFactory.java:108) at net.sf.jasperreports.engine.fill.JRFillVariable.getIncrementer(JRFillVariable.java:287) at net.sf.jasperreports.engine.fill.JRCalculator.calculateVariables(JRCalculator.java:134) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:621) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:750) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:123) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:420) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:256) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:728) at java.lang.Thread.run(Thread.java:534) Print not filled. Try to use an EmptyDataSource...!
  14. By: tolga gucuk - e111982 integer and string concetanation 2006-02-02 07:20 Hi. I want concetanate an inter and a string.so i have to cast my integer value to string. how can i do this? thanks. By: pubDispName - mellino RE: integer and string concetanation 2006-02-02 09:12 Value expression: $F{F_INTEGER_FIELD}.toString() + "hello" or $F{F_INTEGER_FIELD}.toString() + $F{F_STRING} By: Armandor - armandor777 RE: integer and string concetanation 2006-06-08 12:14 I have the inversal problem, I have a string and i want to cast to Integer. By: TBG - thebiggunner RE: integer and string concetanation 2006-06-09 00:34 Integer.valueOf($F{STRING_FIELD}) By: TBG - thebiggunner RE: integer and string concetanation 2006-06-09 00:35 And what do you want to do with two Integers?:) Are you supposed to add them?:) By: Armandor - armandor777 RE: integer and string 2006-06-09 07:59 Thanks your help is very usefull, I just need 1 integer from string, because I want to compare with another values that i can chance the foreground depanding of the value. By: TBG - thebiggunner RE: integer and string concetanation 2006-06-11 22:57 Hmm...why don't you use Integer fields?
  15. By: laz - lazzeronis white in the dimensioned html 2006-06-08 22:39 hello, my document created with format HTML contains my report but it is reduced and there is white of each dimensioned. comments on to remove white? thank you in advance
  16. By: Armandor - armandor777 change forecolor dinamic using string. 2006-06-08 11:00 I have a question, I have a string field that contains numbers, and I need to change the forecolor testing de value of the string, if the string is equal to 10, 100 or 1000 change the color blue, else black. I tried this in print when expresion: new Boolean($F{ag_califordinario}.equals("10" or "100")) but don´t work, sorry I´m new in Ireports.
  17. By: missioncoder - missioncoder Dynamic JRXML creation? 2006-06-08 10:54 Can anyone tell me if they have been able to dynamically create a JRXML file? Basically, I would like to create a report template based on parameters from a JSP page and create the JRXML file on the "fly" and compile it. HELP!!
  18. By: Mr.Chen - cq1982 type error! Who can help me? 2006-06-08 03:58 net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. Cannot cast from BigDecimal to String value = (java.lang.String)(((java.math.BigDecimal)field_ID.getValue())); <-------------------------------------------------------------> 2. Cannot cast from BigDecimal to String value = (java.lang.String)(((java.math.BigDecimal)field_ID.getOldValue())); <----------------------------------------------------------------> 3. Cannot cast from BigDecimal to String value = (java.lang.String)(((java.math.BigDecimal)field_ID.getValue())); <-------------------------------------------------------------> 3 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:104) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:477) at java.lang.Thread.run(Unknown Source) i just want to set up a pie chart and i set those three value like this: 1. key expression: $F{ID} ,id is BigDecimal 2. value expression: $V{number} ,also is BigDecimal and test right without the chart. 3. label expression: $F{ID} and also ask how can i make a chart correctly?
  19. By: charlyjava - charlyjava how to create a crosstable?? 2006-06-08 02:51 Hi everyboyd, some web adress when is well explained how to create a cross table with or without wizard? thanks
  20. By: diegobenedicto - diegobenedicto Subreport pageHeader 2006-06-07 09:49 Hi all, I have a master report with a subreport. In the subreport I have a group and in the group expression a field ($F{DPERIODO}). I have a pageHeader in the subreport to print the header when the subreport make a break page, then in Print when Expression of the pageHeader is: new Boolean($V{PAGE_NUMBER}.intValue()>1) It works fine, but when the subreport go to the next page, I only want to display the pageHeader if there is one or more rows in the actual GROUP. Example: page1 TEXT1 header row1......... row2......... TEXT2 header row1.......... row2.......... page2 <b>header<---------I WANT TO AVOID IT</b> TEXT3 row1..... row2.... Thanks in advance, Diego
  21. By: tolga gucuk - e111982 formatting a double and concatanate str 2006-06-07 00:39 hi.i have a double variable. it for example 1234,8 I convert it like 1.234,8 . However I want then to concatanete it with a string and change type of course string. But the format disappears. Can anybody help me? thanks... By: tolga gucuk - e111982 RE: formatting a double and concatanate str 2006-06-07 04:34 hi. i have a double variable. And it is $V{mydouble}=1234.5 I need to show it in report as: 1.234,5+$V{mystr} $V{mystr} is a string variable .Therefore I need a pattern function. I dont know whether there is. $V{mydouble}.pattern(###0.000) is there a function like that ? What can i do ? thnaks for help By: JavaNewbie - james_lue RE: formatting a double and concatanate str 2006-06-07 01:59 format disappears? double --> String ? can give more clear example thx By: GSantos - gureba RE: formatting a double and concatanate str 2006-06-07 05:57 You can use the class DecimalFormat to do it. Example: new DecimalFormat("#,##0.000").format(($V{mydouble}.doubleValue() + $V{mystr} Important: "," represents YOUR thousands separator and "." YOUR decimal separator. Gustavo Santos By: GSantos - gureba RE: formatting a double and concatanate str 2006-06-07 05:58 You can use the class DecimalFormat to do it. Example: new DecimalFormat("#,##0.000").format(($V{mydouble}.doubleValue() + $V{mystr} Important: "," represents YOUR thousands separator and "." YOUR decimal separator. Gustavo Santos By: tolga gucuk - e111982 RE: formatting a double and concatanate str 2006-06-07 06:14 thanks my friend .
  22. By: ryan - ryankee Subreport and Main Report Problem -- Urgent 2006-06-06 05:04 Hi, I have the following code:: ************************************************* public class JRpt { public static byte[] runReport(Age, Gender) throws Exception { Map parameters = new HashMap(); parameters.put("p_Age",Age); parameters.put("p_Gender",Gender); Connection jdbcConnection = connectDB(databaseName, userName, password); JasperPrint jasperPrint = JasperFillManager.fillReport(reportFile, parameters, jdbcConnection); byte[] output = JasperExportManager.exportReportToPdf(jasperPrint); return output; } } ************************************************* Basically, this main report has a subreport. But when i run the class program, it keeps saying "Could not load object from location : TestSubRpt.jasper". I saw some forum on this that you need to pass subreport as a parameter into the main report with the java codes. But I'm not sure how to do it. Can someone pls help. Thanks Ryan By: Martyn - martyn-hi-ss-nl RE: Subreport and Main Report Problem -- Urge 2006-06-07 02:23 You need to load the subreport in a java class. I load a report using getClass().getClassLoader().getResourceAsStream() and then I convert the inputstream into a jasperreport using JRLoader.loadObject() Then add the report to the parameters map that you pass to the fillReport function.
  23. By: JavaNewbie - james_lue can't load .ttc font 2006-06-06 20:15 I can't execute iReport1.2.3 if i use xx.ttc fonts. It can work at iReport1.2.2 . ====Error Message=== Exception in thread "main" java.lang.NullPointerException at com.lowagie.text.pdf.DefaultFontMapper.pdfToAwt(DefaultFontMapper.java:185) at it.businesslogic.ireport.FontListLoader.loadTTFFonts(FontListLoader.java:112) at it.businesslogic.ireport.gui.MainFrame.<init>(MainFrame.java:376) at it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:7056)
  24. By: JavaNewbie - james_lue can't not load .ttc fonts 2006-06-06 20:14 I can't execute iReport1.2.3 if i use xx.ttc fonts. It can work at iReport1.2.2 . ====Error Message=== Exception in thread "main" java.lang.NullPointerException at com.lowagie.text.pdf.DefaultFontMapper.pdfToAwt(DefaultFontMapper.java:185) at it.businesslogic.ireport.FontListLoader.loadTTFFonts(FontListLoader.java:112) at it.businesslogic.ireport.gui.MainFrame.<init>(MainFrame.java:376) at it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:7056)
  25. By: Gareth Davies - telcontar4 Compiler Performance 2006-06-06 12:20 I recently upgraded from 1.1.1 to 1.2.x and have noticed a significant performance dropoff with report compilation. The problem was pretty much the same with all 1.2.x versions, both using the Windows installer (I'm running XP Pro) and extracting from the ZIP archive. For a report with 3 fields and 2 rows, it takes almost 60 seconds for iReport to compile it! Using Task Manager, I can see that the java process never uses more than about 68MB of RAM. Has anyone else observed this (and resolved the issue?) By: Gareth Davies - telcontar4 RE: Compiler Performance - 1.1.0 and 1.2.2 2006-06-06 13:19 It now appears that iReport 1.1.0 suffers from the same abysmal performance as 1.2.0, 1.2.1 and 1.2.3. However, 1.2.2 (when installed via ZIP extraction) performs just fine - it's problem is that it doesn't load the Classpath entries correctly on startup, so I have to re-enter them every session... By: Gareth Davies - telcontar4 RE: Compiler Performance - 1.1.0 and 1.2.2 2006-06-06 13:19 It now appears that iReport 1.1.0 suffers from the same abysmal performance as 1.2.0, 1.2.1 and 1.2.3. However, 1.2.2 (when installed via ZIP extraction) performs just fine - it's problem is that it doesn't load the Classpath entries correctly on startup, so I have to re-enter them every session... By: Gareth Davies - telcontar4 RE: Compiler Performance - More Info 2006-06-06 14:22 It appears that this is a Classpath issue. In order to use JRDataSourceProviders to preview reports filled with our domain objects, we have to add our application's classpath root directory (i.e. OurApp/classes) to the iReport Classpath. If I remove this directory from the classpath (either by using 1.2.2 or by manually removing it before exiting 1.2.3 etc.), the next time I run iReport the compilation process is about 50 times faster. I can then add our app's classpath directory back and everything is still OK. However, if I don't remove the directory before quitting iReport - or if I add it back to the classpath immediately after restarting iReport and *before* compiling without it - the hideous performance returns. I have also tried adding our application's JAR file instead of the classes directory with the same result. Anyone have any ideas?
×
×
  • Create New...