NeO_GeO Posted February 8, 2008 Share Posted February 8, 2008 Hello everyone. I’ve made a servlet to generate dynamic and static reports from a xml file as parameter. when I try to compile the file “.jrxml†I receive INVALID UTF-8 error . These errors occurs from 2-3 days and only for some of these reports. Before I’ ve never had these problems with the same reports and the same “.jrxml†files ! But with IReport I’ ve no problems in compiling these reports. ERROR MESSAGE FROM OC4J( SAME OR SIMILAR IN TOMCAT) : 08/02/08 09:16:35 java.io.UTFDataFormatException: Codifica UTF8 non valida. 08/02/08 09:16:35 at oracle.xml.parser.v2.XMLUTF8Reader.checkUTF8Byte(XMLUTF8Reader.java:160) 08/02/08 09:16:35 at oracle.xml.parser.v2.XMLUTF8Reader.readUTF8Char(XMLUTF8Reader.java:187) 08/02/08 09:16:35 at oracle.xml.parser.v2.XMLUTF8Reader.fillBuffer(XMLUTF8Reader.java:120) 08/02/08 09:16:35 at oracle.xml.parser.v2.XMLByteReader.saveBuffer(XMLByteReader.java:450) 08/02/08 09:16:35 at oracle.xml.parser.v2.XMLReader.fillBuffer(XMLReader.java:2488) 08/02/08 09:16:35 at oracle.xml.parser.v2.XMLReader.skipWhiteSpace(XMLReader.java:2220) 08/02/08 09:16:35 at oracle.xml.parser.v2.NonValidatingParser.parseMisc(NonValidatingParser.java:353) 08/02/08 09:16:35 at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:322) 08/02/08 09:16:35 at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:302) 08/02/08 09:16:35 at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206) 08/02/08 09:16:35 at org.apache.commons.digester.Digester.parse(Digester.java:1647) 08/02/08 09:16:35 at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238) 08/02/08 09:16:35 at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225) 08/02/08 09:16:35 at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213) 08/02/08 09:16:35 at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167) 08/02/08 09:16:35 at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151) 08/02/08 09:16:35 at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142) [file name=CDC.jrxml size=14302] Link to comment Share on other sites More sharing options...
NeO_GeO Posted February 14, 2008 Author Share Posted February 14, 2008 I solved the problem! I changed enconding [encoding = "ISO-8859-1"] and now it works. But why on IREPORT with my pc it continues to work with utf8 enconding while on the server machine, where is located my servlet, it requires another enconding ? 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