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

Everything posted by meatwad

  1. Changed Assigned User from @User_306070 to @anonymous Massino, you are right! I forgot I had changed that setting to do some testing. I set it back and I am having some success with this. However I do see an inconsistency between the way Studio seems to be handling banded reports with a subreport element and a part report with a subreport element.It looks like when I create a banded report with a subreport and set its subreportExpression to a String parameter then Studio will look for a compiled report with the filename that matches that String parameter. Using this same technique on a part report results in a NullPointerException.Please let me know if I'm missing something.
  2. It seems I have the same problem with any array type. I set the value and the preview never generates.
  3. I have a report with an Integer[] parameter set to prompt and I keep getting this message even though I am setting the parameter: "The report requires that you specify the value for some parameters before running it." I'm new to Jaspersoft Studio so maybe I am missing something simple.
  4. Was there ever a resolution for this issue? I'm experiencing the same stack trace.
  5. 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?
  6. I have applied the fix described here: http://community.jaspersoft.com/questions/535452/javalangstackoverflowerror to work around the StackOverflowError when a subreport spans more than 1 page in a main report. I have a report with multiple subreports and this error is being thrown again. Are there any limitations on how many subreports can be in a report? Is there something else I can change?
  7. Maybe I'm forgetting but what does POC stand for? By the way the reason I ask is that I believe the versions of xalan and xerces included with JasperReports are out of sync with each other. In addition to that as of Java 1.6 Xerces is now part of the JRE.
  8. The binary release of JasperReports includes a /lib directory with a lot of jar files in it. Which ones should I include in my application?
  9. Have you tried setting "Position Type" to "Float" on the text below the image?
  10. 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.propertiesfile 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.
  11. Looks like my issue is related to this bug: http://jasperforge.org/plugins/mantis/view.php?id=3260
  12. I have a detail band I don't want printed unless 1 of the 4 subreports inside of it returns a non-null value. But it seems that when I try using the variables that receive these values from the subreports in the "Print When" expression of the main report it doesn't work. They are always null during the expression evaluation. How can I do this?
  13. 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?
  14. I figured it out. The class is: net.sf.jasperreports.engine.fill.JRParameterDefaultValuesEvaluator
  15. 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
  16. Although I'm not sure if I understand correctly what I am doing, checking the Using Cache option of the subreport allows this to work correctly...I think.
  17. 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?
  18. 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?
  19. 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?
  20. 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?
  21. I was wondering about packages that already exist like msttfcorefonts and how they interact with Jasper. I'm not a font expert so that's why I'm asking.
  22. 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...