Kurgane Posted July 28, 2007 Share Posted July 28, 2007 I am using iReport 2.0 and I am having problems with Page Breaks. I used "Insert page/column break" and when I tried to compile my report, i got this error message:Element type "break" must be declared. at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226) at it.businesslogic.ireport.IReportCompiler.loadJasperDesign(IReportCompiler.java:1935) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:579) at java.lang.Thread.run(Unknown Source) I have looked everywhere to Declare Element type "break"!!!!!! :S HOW do declare element type "break" in iReport 2.0????? Link to comment Share on other sites More sharing options...
codyjasperForge Posted July 28, 2007 Share Posted July 28, 2007 You might want to see artf1488 of iReport Bug Tracker.Don't know if this is it, but it may be similar. Link to comment Share on other sites More sharing options...
Kurgane Posted July 30, 2007 Author Share Posted July 30, 2007 So when I Know that they fixed this bug. My problem is similar. I was happy to find out they made a page breaks easier but now I am not soo happy. Link to comment Share on other sites More sharing options...
redwine Posted July 31, 2007 Share Posted July 31, 2007 Kurgane, In version 2.0:Right click the Break element and select Properties.In the properties dialog box click on the All (tab).Scroll down to the bottom. You will see the break property.Select the break type from the dropdown list.Currently there are only 2 selections Page & Column. hth :) EdwinPost edited by: redwine, at: 2007/07/30 18:34 Link to comment Share on other sites More sharing options...
Kurgane Posted August 7, 2007 Author Share Posted August 7, 2007 I have done that I still keep getting the same error. net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: Element type "break" must be declared. at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226) at it.businesslogic.ireport.IReportCompiler.loadJasperDesign(IReportCompiler.java:1935) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:579) at java.lang.Thread.run(Unknown Source) Caused by: org.xml.sax.SAXParseException: Element type "break" must be declared. :angry: Link to comment Share on other sites More sharing options...
Rachel07 Posted November 18, 2007 Share Posted November 18, 2007 I am having the same problem. Did you solve the it somehow? Link to comment Share on other sites More sharing options...
jonycus Posted December 13, 2007 Share Posted December 13, 2007 I have the same problem.... the problem get more interesting because until I downloaded the latest 2.0.2 version i did not have the problem. So the reports that used to work now don't. Anybody? Link to comment Share on other sites More sharing options...
jonycus Posted December 14, 2007 Share Posted December 14, 2007 as I managed to discover, the problem seems to be with the libs included with iReport. In my case the problem was wit duplicated jars in the libs folder. I needed some libs for my project in order to test the reports directly from iReport and in order to that i putted them in the classpath and copied them in the libs folder. After cleaning up a little bit in the libs folder the problem was gone.... Hope this helps... 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