Jump to content
Changes to the Jaspersoft community edition download ×

Embedding JasperReport

2004 IR Help

Recommended Posts

By: cheffolini - cheffolini

Embedding JasperReport

2005-09-26 05:17


I'm working with JasperReports since 2 days and think it can be verry useful for me.

I want to embed the engine in one Lotus Notes application (yes it is difficult)

I have simple application generating one report. I developed it on Rational Application Developer. It works fine. I have problem in the notes environement when I call the static compile method of the Compile Manager.

The error is:

java.lang.ExceptionInInitializerError: java.lang.NullPointerException


at java.util.Hashtable.put(Hashtable.java:397)


at java.util.Properties.setProperty(Properties.java:122)


at net.sf.jasperreports.engine.util.JRProperties.getDefaults(JRProperties.java:190)


at net.sf.jasperreports.engine.util.JRProperties.initProperties(JRProperties.java:140)


at net.sf.jasperreports.engine.util.JRProperties.<clinit>(JRProperties.java:130)


at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.configureDigester(JRXmlDigesterFactory.java:126)


at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:656)


at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:200)


at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:165)


at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149)


at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)


at JavaAgent.NotesMain(JavaAgent.java:22)


at lotus.domino.AgentBase.runNotes(Unknown Source)


at lotus.domino.NotesThread.run(NotesThread.java:218)


jasperreports.properties is in the correct folder.

Can I initiate the compiler in the code? How can I di this?

Any help is appreciated.






By: Lucian Chirita - lucianc

RE: Embedding JasperReport

2005-09-26 05:56



It seems that the java.class.path system property is null in your environment. This value is used as default for the net.sf.jasperreports.compiler.classpath Jasper property (used by some of the report compilers).


The code was not null-protected. You can find the fixed JRProperties.java (rev. 1.7) on CVS.








By: cheffolini - cheffolini

RE: Embedding JasperReport

2005-09-26 08:12

10x Lucian


this has helped.

I'm going forward.




Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...