Jump to content
JasperReports Library 7.0 is now available ×

Problem reading font data


leunajyee

Recommended Posts

Hi all,

We are currently developing our reports using JasperReports and we are using Orion Server as our application server.  Orion can be run using it's own .bat file or can be run as a Windows service provided that a wrapper is installed.

Our clients all run our main application using Windows service method ( of running Orion).  The problem is, when we use this method of running through Windows Service, we get errors that does not exist when we use the .bat file method of running our Orion Server.  When we use the .bat file, JasperReports run smoothly.  But with the Windows Service it gives an error.  We've already added the fonts extension JAR file (which is generated using iReport) to the classpath.  And also all the other JAR files needed to run JasperReports.  The error details below:

java.lang.ExceptionInInitializerError	at net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:121)	at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:77)	at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:87)	at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:57)	at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)	at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:78)	at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)	at /osi/content/billOfLadingReportJR.jsp._jspService(/osi/content/billOfLadingReportJR.jsp.java:286) (JSP page line 193)	at com.orionserver(Orion/2.0.7 (build 11273)).http.OrionHttpJspPage.service(Unknown Source)	at com.evermind(Orion/2.0.7 (build 11273))._ay._rkb(Unknown Source)	at com.evermind(Orion/2.0.7 (build 11273)).server.http.JSPServlet.service(Unknown Source)	at com.evermind(Orion/2.0.7 (build 11273))._csb._pvd(Unknown Source)	at com.evermind(Orion/2.0.7 (build 11273))._csb._boc(Unknown Source)	at com.evermind(Orion/2.0.7 (build 11273))._ax._lsc(Unknown Source)	at com.evermind(Orion/2.0.7 (build 11273))._ax._uab(Unknown Source)	at com.evermind(Orion/2.0.7 (build 11273))._bf.run(Unknown Source)Caused by: net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: Problem reading font data.	at net.sf.jasperreports.engine.fonts.SimpleFontFace.(SimpleFontFace.java:77)	at net.sf.jasperreports.engine.fonts.SimpleFontFamily.createFontFace(SimpleFontFamily.java:316)	at net.sf.jasperreports.engine.fonts.SimpleFontFamily.setNormal(SimpleFontFamily.java:85)	at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:243)	at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:214)	at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:183)	at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:152)	at net.sf.jasperreports.engine.fonts.FontExtensionsRegistry.getExtensions(FontExtensionsRegistry.java:55)	at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:110)	at net.sf.jasperreports.engine.util.JRStyledTextParser.(JRStyledTextParser.java:83)	... 16 moreCaused by: java.io.IOException: Problem reading font data.	at java.awt.Font.createFont(Font.java:924)	at net.sf.jasperreports.engine.fonts.SimpleFontFace.(SimpleFontFace.java:69)	... 25 more

Hopefully you can give us a hand..

Your help and advices are very much appreciated

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...