Jump to content


  • Posts

  • Joined

  • Last visited

vishalmestri's Achievements


Rookie (2/14)

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

Recent Badges



  1. I am using jboss application server. Jasper version - 4.5 JDK - 1.6 Created a report and deployed on jboss running on linux. We are using Arial font , hence we created extension jar and included in WEB-IN/lib folder. Now we are getting issue- java.io.IOException: Problem reading font data. at java.awt.Font.createFont(Font.java:924) at net.sf.jasperreports.engine.fonts.SimpleFontFace.<init>(SimpleFontFace.java:69) 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.<clinit>(JRStyledTextParser.java:83) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) I can not share jrxml file due to privacy issue. But the what i did put arial font ttf file in JDK/jre/lib/fonts/ folder. And wrote core java prog and it is running successfully. But when I run through JBOSS it is giving above mentioend issue. Kindly help its urgent. Post Edited by vishalmestri at 07/27/2012 05:54
  2. Dear All, I am using jboss-5.1.0.GA for development and same is there on production server. Further I have created schedular in which I am calling JasperFillManager.fillReport. Code for schedular is running fine if I remove jasper code. (schedular code is shown below in code section). When I start jboss and deploy my applicatoin, code runs till point "JasperPrint jasperPrint = JasperFillManager.fillReport(getJasperReport(), parameterMap, con);". Post this, it just hangs.I have even added old SOP debuging. i.e. added system.out.println above and below of this statement but it just prints SOP above and then does not do anything. Post that I have enable verbose options in jboss while starting jboss, but i did not get any clue on that as well. Please find attached log(jbossverbose.log) generated due to enablement of verbose option. Main issue is when I run same code as java application , I am successfully able to generate pdf. I am suspecting is it due to that jasper is running in jboss thread for schedular...? I am using windows XP sp2 and jdb 1.5. jasper 4.5 Please let me know if any more information is required. I can not share entire code.. Thanks and regards, Vishal Code:Jboss schedular code:-...public class EmailScheduler implements org.jboss.varia.scheduler.Schedulable {public void perform(Date pTimeOfCall, long pRemainingRepetitions) {...generate()...}public void generate(){..try{ JasperReport jasperReport = (JasperReport) JRLoader.loadObject("d:/a.jasper");/*I have created necessary connection and parameter map and passedcode for that i am not adding */JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport , parameterMap, con);FileOutputStream outfile=new FileOutputStream(outputfile);JasperExportManager.exportReportToPdfStream(jasperPrint, outfile);outfile.close();}catch(JRException jre){jre.printStackTrace(System.out);}..}
  • Create New...