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

meatwad

Members
  • Posts

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

Posts posted by meatwad

  1. This problem has returned for me as well. Very difficult to consistently reproduce. I'm running Jasper through a WAR and JAR inside an EAR file for deployment. I have the log4j.properties file in /WEB-INF/classes inside my WAR file and /lib in my EAR file. And I am still experiencing this issue. toffer, are you experiencing this issue anymore? How are you deploying Jasper?

  2. I've just run into this problem today so it still exists. I was able to use the workaround. How I did it was to create a

    log4j.properties

    file that includes this property:

    log4j.logger.org.apache.commons.javaflow=info

    Then I packaged it inside my war (I'm using a web application) under /WEB-INF/classes.

    Has the real issue behind this error been discovered? I'm looking at putting JasperReports into production at my company but I'm very concerned about this.

  3. I have an Integer being returned from a subreport. In both the main report and subreport I have the Initial Value Expression of the variables set to 0. However when no data is found in the subreport the value printed is always "null". Is there a property I can set to have this value be 0 when null?

  4. I'm looking for a way to get the default values of parameters in a report. I've seen several evaluator classes in the 4.0.1 API but the only one I see that has a public constructor is

    net.sf.jasperreports.components.table.fill.BuiltinExpressionEvaluatorDecorator

    But I have no idea what those arguments in the constructor should be and it's not documented. Can anyone point me in the right direction?

     



    Post Edited by meatwad at 08/30/2011 03:49
  5. I have a subreport with the class set to InputStream and the expression set to parameter X. When I set X with the expression:

     

    new FileInputStream("subreport.jasper")

     

    I get a java.io.EOFException. If I take the same expression from parameter X and place it directly in the subreport expression it works. What am I doing wrong here?

  6. The background of this problem is that I have a web application reading report files from a predefined location. The reports, and their subreports, will be stored in jar files. I don't know if this is the best approach but it's the first one I chose. The only way I know of to get at a file inside a jar is by accessing it as an InputStream so that's what I've chosen as the subreport expression type in iReport.

    Inside iReport I'm looking for a way to hardcode the name of the subreport but make the class and method it is supplied to a parameter. This allows me to run it both in iReport and from the web app.

    Is there a good way to do this or am I barking up the wrong tree?

  7. Sorry to resurrect this after so long but I'm working on this again. Although I did resolve the classloader issues I was having I'm still not sure how to get jasper to "see" the other fonts on the system. From what I understand you're saying I have the option of packaging fonts or relying on the operating system to provide them. How would I go about configuring the latter case?

  8. Not only have I done that but I have tried adding them to the jasperreports-fonts jar. The problem is I keep running into this classloader problem with Oracle Application Server  (see other thread). That's why I was wondering if I could somehow just make the *ttf files available to the OS. This particular machine is Red Hat AS.

    By the way what are the standard fonts? Just those already available on the OS?

  9. I'm getting a Class Not Found exception for one of the font jars I've created when I use it in a subreport. As long as it's not in a subreport I'm ok. I'm running on Oracle Application Server 10.1.2.3.0 (jdk 1.4.2.)


    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [net.sf.jasperreports.engine.fonts.SimpleFontFamily] for bean with name 'TimesNewRomanFamily' defined in URL [classloader:/fonts/fonts.xml]; nested exception is java.lang.ClassNotFoundException: net.sf.jasperreports.engine.fonts.SimpleFontFamily
    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1174)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:202)
    at net.sf.jasperreports.extensions.SpringExtensionsRegistry.findExtensionBeanNames(SpringExtensionsRegistry.java:99)
    at net.sf.jasperreports.extensions.SpringExtensionsRegistry.getExtensionBeanNames(SpringExtensionsRegistry.java:90)
    at net.sf.jasperreports.extensions.SpringExtensionsRegistry.getExtensions(SpringExtensionsRegistry.java:67)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:103)
    at net.sf.jasperreports.engine.fill.JRFillDataset.createScriptlets(JRFillDataset.java:457)
    at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:578)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1246)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:877)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:826)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:557)
    at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59)
    at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassNotFoundException: net.sf.jasperreports.engine.fonts.SimpleFontFamily
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].naming.ContextClassLoader.findClass(ContextClassLoader.java:500)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.ApplicationContextClassLoader.findClass(ApplicationContextClassLoader.java:19)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at org.springframework.util.ClassUtils.forName(ClassUtils.java:242)
    at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:383)
    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1135)
    ... 17 more 


     

    I noticed a similar issue here but there's no mention of subreports or a resolution. Has anyone else encountered something like this or know how I can solve it?

    http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=67554

×
×
  • Create New...