atanasko Posted September 5, 2006 Share Posted September 5, 2006 Hi to All I have JSF based web application and i have reporting part in it.That part of my app. work with jasperreports-1.1.0.jar, but when i try jasperreports-1.2.5.jar or jasperreports-1.2.6.jar i get this error : Servlet.service() for servlet JasperPrintServlet threw exceptionjava.lang.NoSuchFieldError: LINE_BREAK_FONT_RENDER_CONTEXTat net.sf.jasperreports.engine.fill.TextMeasurer.<clinit>(TextMeasurer.java:53) at net.sf.jasperreports.engine.fill.JRFillTextElement.createTextMeasurer(JRFillTextElement.java:115) at net.sf.jasperreports.engine.fill.JRFillTextElement.<init>(JRFillTextElement.java:97) at net.sf.jasperreports.engine.fill.JRFillStaticText.<init>(JRFillStaticText.java:60) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getStaticText(JRFillObjectFactory.java:494) at net.sf.jasperreports.engine.base.JRBaseStaticText.getCopy(JRBaseStaticText.java:93) at net.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:88) at net.sf.jasperreports.engine.fill.JRFillElementContainer.<init>(JRFillElementContainer.java:90) at net.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:77) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:374) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:398) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:92) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) i use Tomcat 5.5.12 on Ubuntu 5.5.10. any idea why am i getting this error thanks in advance Link to comment Share on other sites More sharing options...
atanasko Posted September 5, 2006 Author Share Posted September 5, 2006 Can any one just give me a direction. Please it's urgent Thanks again Link to comment Share on other sites More sharing options...
lucianc Posted September 5, 2006 Share Posted September 5, 2006 You might have two versions of the JasperReports jar on your classpath. HTH,Lucian Link to comment Share on other sites More sharing options...
atanasko Posted September 5, 2006 Author Share Posted September 5, 2006 thanks for replay i have only one or jasperreports-1.1.0.jar or jasperreports-1.2.6.jar in my classpath, but not both together. When it is jasperreports-1.1.0.jar application work, when it is jasperreports-1.2.6.jar i get error. i use NetBeans 5.0 for my project any other idea Link to comment Share on other sites More sharing options...
atanasko Posted September 5, 2006 Author Share Posted September 5, 2006 thanks for your help my main web project depend from other java project and problem come from that project.i have different versions of .jar files in those projects. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now