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

slsolomon

Members
  • Posts

    4
  • Joined

  • Last visited

slsolomon's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Well, yes, I am ultimately trying to do some processing on the field, in this case, convert it to Long, multiply by 1000L, then convert it to Date. I found that this processing resulted in null, so I did something very simple: simply set the value of the variable to the field. And the variable is still null. So the problem remains: a variable whose value is a BigDecimal field is null. Again, using iReport 3.7.5 and H2. I went back to my database and modified the table so that the field value is Long, and now I can successfully convert it to a Date object. So I believe the problem with BigDecimal is an iReport bug.
  2. Hello, I have a field, $F{TRANSFER_DATE} defined as BigDecimal. The value in my database row is 1339381600. When I insert the field in my report, it displays correctly. I also have a variable transferDateBigDecimal, also defined as BigDecimal, whose variable expression is defined as $F{TRANSFER_DATE}. When I insert the variable $V{transferDateBigDecimal} in my report, it displays as null. The report language is Groovy. Using iReport 3.7.5. Database is H2 in server mode. Any ideas? Thanks
  3. Create a log4j.properties file, create a jar file (using the jar command) containing the log4j.properties file at the root of the jar. Include this jar in the jrc task classpath. Et voila, compiler logging.
  4. Hello, I'd like to configure a log4j appender for the compilation of my .jrxml files, i.e. the jrc Ant task. I'm sure that I have to put the log4j.properties file on my classpath. I'm unsure how to specify that in my build.xml (sse code). When I do include my log4j.properties file in my classpath for the jrc task, I get a ZipException because Ant is expecting the properties file to be a jar or zip: [jrc] Compiling 2 report design files.Unable to obtain resource from C:\Documents and Settings\SSolomon\my-report-manager\resources\log4j.properties: java.util.zip.ZipException: error in opening zip file [jrc] Unable to obtain resource from C:\Documents and Settings\SSolomon\my-report-manager\resources\log4j.properties: [jrc] java.util.zip.ZipException: error in opening zip file [jrc] at java.util.zip.ZipFile.open(Native Method) [jrc] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [jrc] at java.util.jar.JarFile.<init>(JarFile.java:135) [jrc] at java.util.jar.JarFile.<init>(JarFile.java:99) [jrc] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1002) [jrc] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:883) What is the proper way to put the log4j.properties file on the classpath for the jrc task? ThanksCode:<?xml version="1.0" encoding="UTF-8"?><project name="ProjectManager" default="default" basedir="."> <!-- Define the classpath used for report compilation --> <path id="jrc.classpath"> <fileset dir="lib" includes="*.jar"/> </path> <path id="log4j.classpath"> <file file="resources/log4j.properties"/> </path> <target name="compile" description="Compile all Jasper Reports Definitions"> <mkdir dir="./build/reports"/> <taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask"> <classpath refid="jrc.classpath"/> <classpath refid="log4j.classpath"/> </taskdef> <jrc destdir="./build/reports"> <src> <fileset dir="src/main/jasperreports"> <include name="*.jrxml"/> </fileset> </src> <classpath refid="jrc.classpath"/> </jrc> </target> <target name="clean"> <delete dir="./build" /> </target></project>
×
×
  • Create New...