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

fwilliams

Members
  • Posts

    3
  • Joined

  • Last visited

fwilliams's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Thanks for your response. My classpath has no other versions of the jasperreports jars. I have a directory where I have put the iReport program. I have put a small application in the same directory which offers a menu system for the user to view a report. The user double clicks the report and the report is supposed to show in the JRViewer however I am getting the error as described above. IReport works like a charm from the same folder so it puzzles me as to why my program doesn't. Hmmmm! I code with Netbeans the jasperreports jars are referenced in the libraries and no other classpath information is specified. Fraser
  2. As well I should note that the error is being thrown at the JasperFillManager.fillReport part of the code. This is mind boggling as this has always worked for me in the past only when I upgraded iReport has this started to occure. Thanks again - Fraser
  3. Hi all, Would be very much appeciative if someone could point me in the right direction try { if (conn != null) { File f = new File(reportFile); InputStream is = new FileInputStream(f); JasperReport jasperReport = JasperCompileManager.compileReport( is); jasperPrint = JasperFillManager.fillReport(jasperReport, params, conn); } } catch (JRException ejr) { ejr.printStackTrace(); }catch (Exception __ex) { __ex.printStackTrace(); } it gives me the following exception : java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:161) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:119) at net.sf.jasperreports.engine.util.JRSingletonCache.createInstance(JRSingletonCache.java:88) at net.sf.jasperreports.engine.util.JRSingletonCache.getCachedInstance(JRSingletonCache.java:78) at net.sf.jasperreports.engine.util.JRTextMeasurerUtil.getTextMeasurerFactory(JRTextMeasurerUtil.java:118) at net.sf.jasperreports.engine.util.JRTextMeasurerUtil.createTextMeasurer(JRTextMeasurerUtil.java:103) at net.sf.jasperreports.engine.util.JRTextMeasurerUtil.createTextMeasurer(JRTextMeasurerUtil.java:90) Thanks in advance for any help Fraser Williams
×
×
  • Create New...