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

jiwlee.gatech

Members
  • Posts

    5
  • Joined

  • Last visited

jiwlee.gatech's Achievements

  1. I realized the problem was with compiling and unix not being able to do javac. The problem is resolved.
  2. Hi, The thing that is caused by is exactly the same: Caused by: java.lang.NullPointerException: null at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller (JRFiller.java:196) at net.sf.jasperreports.engine.fill.JRFiller.fill (JRFiller.java:82) at net.sf.jasperreports.engine.JasperFillManager.fill (JasperFillManager.java: 456) at net.sf.jasperreports.engine.JasperFillManager.fillReport (JasperFillManager.java: 863) at FilledReport.fillReport (FilledReport.java:100) The last line is my code, which is the following line: jp = JasperFillManager.fillReport(compiledReport, new HashMap<>(), con);[/code] In the remote environment, I am trying to use as less jars as possible and do not have certain jars that jasperreports included in it's pom.xml like common-beanuitls etc. Would that ever cause this kind of an issue?
  3. I believe you misunderstood the problem. I do not use the iReport IDE. I use Intellij and run my code. The difference between when it works is not whether it's code or not but it depends on which environment I am running it on. If I run it in my local environment and use intellij, which I used to write my code, to run it. It works fine. No errors. However, when I use a unix box to run my application through a shell script, it doesn't work and gives me a null pointer exception. The following is part of my code: jp = JasperFillManager.fillReport(compiledReport, new HashMap<>(), con);[/code]
  4. Hi, I'm getting this error. The weird thing is I don't get this error when I run it on intellij on my local environment but not when I run it in a remote environment. Please help me! java.lang.NullPointerException: null at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller (JRFiller.java:196) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:82) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:456) at net.sf.jasperreports.engine.JasperFillManager.fillReport (JasperFillManager.java:863) Thanks!
  5. Hello, I'm a COMPLETE BEGINNER in Jasper Reports and JSON so please bear with me. So in JAVA, I'm trying to fill a report template by code (as in like JasperFillManager.fillReport(blah,blah)) using a JSON file as it parameter source. The JSON file that stores all of the information for the parameters willl be stored as a blob in a database and I will get it from the database in string form due to certain limitations with other technologies I am using. The JSON file would store a default value and a sql query for each parameter. What I want to do is run the sql query to fill the report OR use the default value in the case that the sql query does not yield any results or is null itself. The JSON file looks like this: In here, the parameters would be "ParameterName" and "WOMEN_ID" { "ParameterName": { "default": "Parameter1", "SQL": "SQL QUERY" }, "WOMEN_ID":{ "default": null, "SQL": "SELECT ID FROM USERS WHERE GENDER_CODE=2" }, .... } I was wondering if you could help me figure out how to fill a template in the method I mentioned before. Thanks!
×
×
  • Create New...