I'm trying to display my reports on the browser , but I keep getting this error:
the strange thing about this, is that it only happens when I attempt to generate the reports from the version installed on the server, but not when I do it locally from my pc
Have you any idea why this is happening ?
For those still running into this issue: on Ubuntu Server 12.04 with headless OpenJDK JRE, it was simply solved by
This can as well be caused by missing/inaccessible Java 'temp' directory. In Font.java, temp files are being created:
On one system, the 'temp' dir was missing under Tomcat folder but Java was configured to use it:
BTW. first time around, after restarting Tomcat, the service was actually throwing an IOException, but then JasperReports cached something and on subsequent calls the stack trace was exactly as reported here.
This is a missing jars in the class path issue.
I had this issue and found that with by adding the missing jars to the class path it resolved the issue.
From the below article java.dzone.com article I found that the minimal jars necessary are...Now The versions numbers have changed but with these libraries only I managed to get it working.
You can try make a downgrade to jdk7, it's works to me.
sorry my english!
This seems like a Headless mode issue. You need to set the
java.awt.headless
property totrue
. That can be done using:Or, by setting the headless property in your tomcat startup command as
-Djava.awt.headless=true
Also, you can read more on why this is necessary, you can read about the Headless mode here
this may be problems with memory, reboot the server.