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

martynhiemstra

Members
  • Posts

    144
  • 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 martynhiemstra

  1. Any programmer knows that the load times aren't the same simply because you are using two totally different software to load/display a report. This has nothing to do with jasperreports and it just indicates your lack of knowledge of how software works. I am always willing to help out here but if your basic knowledge of Software is so bad then dont bother asking questions about computer software let alone Java libraries or Java.
  2. I was wondering, is there a class that can evaluate parameters besides their default values. I have a parameter that relies on another user supplied parameter. Is it possible to calculate that value? For example: User Parameter: MONTH Parameter MONTH + 1: $P{MONTH} + 1
  3. Hi All I was wandering if it's normal for the svn trunk to have compile errors. After checking out the jasperreport package I execute ant and I get 1 compile error and about 12 deprecation compile errors. I did a svn checkout at 10:45 +1:00 CET 31 mei 2007. Martyn
  4. No matter what, the free version of acrobat reader makes it impossible to edit pdf's. I'm not sure but when you are using iText to generate pdf's then it's impossible to secure pdf's. I did finf a way to sign a report: http://itextpdf.sourceforge.net/howtosign.html
  5. No offense but this is a really simple Java error on your behalf. Just read the stacktrace: java.lang.NoClassDefFoundError: org/apache/commons/digester/SetNestedPropertiesRule It clearly says that it cant find a certain file. Just by looking at the missing file package name org/apache/commons/digestor you can conclude that this is a package from the apache foundation. Download the Commons digestor package from the apache website and put that in your classpath.
  6. You could try using the REPORT_COUNT or maybe even PAGE_COUNT variables. If they are 0 then you could print a message.
  7. Hi All, I have possibly found a bug in jasperreport. I used to use version 1.3.0 but a few days ago I replaced jasperreport 1.3.0 with 1.3.3 Now when I startup tomcat I see this in my logs: SEVERE: Exception loading sessions from persistent storage java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: net.sf.jasperreports.engine.util.DefaultFormatFactory As you can see it is marked as SEVERE. Anybody expierencing this? Martyn ------------------------ Here is the log output: SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: net.sf.jasperreports.engine.util.DefaultFormatFactory java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: net.sf.jasperreports.engine.util.DefaultFormatFactory at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at java.util.HashMap.readObject(HashMap.java:1067) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1392) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:921) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:393) at org.apache.catalina.session.StandardManager.load(StandardManager.java:320) at org.apache.catalina.session.StandardManager.start(StandardManager.java:636) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4155) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) ------------------------ Post edited by: martynhiemstra, at: 2007/05/18 07:30
  8. Hi Lucian Thanks for your information. Now that I have read your post I would like to retract my opinion that this is a bug. It's isnt a bug but like you suggested, adding a flag option might be a really good idea. In my case I could set the flag and it would always set the text-align tag. I wont file a bug report but instead I'll file a future request. Martyn Hiemstra
  9. Hi All I am using the jasperreport jar file to export a report made in iReport. I want to this in my own code and not in jasperintelligence. I can export a report using JasperFillManager.fillReport and that works great even with a database connection. A college of mine informed me of a class called ReportDataSourceService which I ould use. It would allow me to pass parameters onto the report and it contains a closeConnection function which I need since the database connection I'm passing to JasperFillManager.fillReport isnt being closed. Like I said I currently use JasperFillManager.fillReport to fill a report. What can I do to change my code so that I can set my own ReportDataSourceService as datasourceservice? Thanks in advance, Martyn
  10. You nead to create a bean that contains a method. This method must return an instance of ReportDataSourceService. Add this bean to your application-context.xml file. Use this bean as datasource by creating a bean datasource in JasperIntelligence and set the bean name to the name given in your configuration and set the method name to the name given to the method that returns the ReportDataSourceService.
  11. I was using jasperreport 1.3.0 but I have now switched to 1.3.3. In 1.3.3 the same situation arises. Due to privacy information I cant show all my code but I can show you a table row where it's wrong. <tr valign="top"> <td><img alt="" src="/images/px" style="width: 30px; height: 17px;"/></td> <td colspan="16"><span style="font-family: Arial; font-size: 12.0px; font-weight: bold;">Monthly overview</span></td> <td><img alt="" src="/images/px" style="width: 18px; height: 17px;"/></td> <td colspan="29" style="text-align: right;"><span style="font-family: Arial; font-size: 12.0px; font-weight: bold;">MyName</span></td> <td><img alt="" src="/images/px" style="width: 30px; height: 17px;"/></td> </tr> As you can see. Some table cells do have a text-align: right but there are no text-align: left even though the first cell that contains Monthly overview is aligned to the left I am using Firefox 2.0.0.3 but I am absolutly sure that the problem lies in the text-align: left not being displayed. A solution would be to always display the text-align: style tag. Even if it's left aligned. You simply never known how the parent is aligned and therefore it's best to always set the alignment. If I where to have this as css td { text-align: right; } then all the fields would be aligned right and not left, messing up the html view. Post edited by: martynhiemstra, at: 2007/05/15 13:38
  12. Hi All I have found what I beleive is to be a bug in the JRHtmlExporter. I can successfully generate html but I have discovered is that fields that have been aligned to the left in iReport aren't given the text-align: left tag. If I wrap the html output in a div like so: <div style="text-align: center"> Report Html </div> then the fields that are normally aligned to the left are now aligned in the center. This is because the fields that should be aligned to the left haven't got an alignment and therefore the parent alignment is used, which is center. Is there are a workaround? Has anybody else expierenced this behaviour. Thanks in advance, Martyn
  13. As far as I know, this is impossible. It's too bad because I really need a solution for this.
  14. Have you added the jdbc driver to your tomcat common lib? Does you web.xml contain the datasource resource ref's?
  15. I have created my own util class that allows actions to format dates, convert string into date objects etc. If you put that class in your classpath you can then use the methods in that class to convert strings into dates and format date objects etc.
  16. You need to add this to your web.xml Code: <resource-ref> <description>Oracle datasource</description> <res-ref-name>jdbc/jasperserver</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
  17. Can you perhaps try the following. Click on Start then click on Run. Typ in cmd and in the new window that appears typ in echo %JAVA_HOME%. What do you see on the screen?
  18. I installed iReport using the windows installer so I'm not running using JWS.
  19. If you dont like it, then dont use it !!!! I have installed iReport 1.3.1 and everything works perfectly so its a problem on YOUR pc. Dont complain about free software not working as well as you would like it. Be thankfull that the programmers invest so much time in the project.
  20. I dont see the problem. If there is no data then the detail band doesnt print anyhow so why would you want to set the PrintWhenExpression on the detail band.
  21. Hi All I beleive there is a bug in iReport. I have 8 Templates in my template directory but if I try to create from template or execute the wizard the template list is empty. Somehow the templates arent loaded at startup. I am using iReport 1.3.1 and I have also detected this behaviour in iReport 1.3.0. Anybody else notice this error? Martyn Post edited by: martynhiemstra, at: 2007/03/09 07:36
  22. As far as I know, this is impossible. Maybe you could request it as a feature. I would be nice to have a dropdown list of which the content could be determined according to a value supplied by a previous list.
  23. You can define queries with jasperserver but the problem is they dont support parameters too well. For example, I have a parameter called days_count. A person can indicate a begin and end date and the days between them musnt be more than 50 days. To calculate the amount of days between to dates I use a own made java method called countDays(Begindate, Enddate). days_count is determined when the report is being made. It's a parameter that has a default value which is the method call in a custom class. A problem occures when using a query defined in jasperserver and using that parameter in your query. Lets say you have WHERE $P!{days_count}<=50. The query will be WHERE null<=50. If you put the query in the report everything works fine. The other problem I found is the design flaw in jasperserver. I am trying to create a bean datasource. I found out that it's impossible to pass the report parameters onto a factory or even the report object, making filtering of bean info impossible. This is a design flaw that really limits jasperserver. I choose not to use queries because I dont want my customers executing queries directly on the database. Instead I create bean for them, fill it with information, and pass that on to the report, but that's impossible due to the design of jasperserver. I can't filter the information the bean loads because I have no access to the parameters. It's to bad because I have designed reports outside jasperserver and I got those reports to work with beans and custom parameters, for example input boxes on a website. If you have a enviroment, one you can maintain yourself and you only have 1 or 2 reports, I would recommend that you design your own small spring app that outputs your report via pdf or excel using spring controllers. This will save you alot of time.
×
×
  • Create New...