rtellado Posted December 13, 2019 Share Posted December 13, 2019 java.lang.NoClassDefFoundError: Could not initialize class java.awt.Colornet.sf.jasperreports.engine.xml.JRAbstractStyleFactory.setCommonStyle(JRAbstractStyleFactory.java:188)net.sf.jasperreports.engine.xml.JRAbstractStyleFactory.createObject(JRAbstractStyleFactory.java:77)org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:397)org.apache.commons.digester.Digester.startElement(Digester.java:1583)org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)org.apache.xerces.parsers.XMLParser.parse(Unknown Source)org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)org.apache.commons.digester.Digester.parse(Digester.java:1892)net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:297)net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:284)net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:273)net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:218)net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:193)net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:184) Link to comment Share on other sites More sharing options...
sebastian.miletic Posted April 28, 2022 Share Posted April 28, 2022 I am also having the same problem when trying to open .jrxml file with Jasper Studio 6.19.1.The same .jrxml file is opening fine from iReport 5.6.0.Does anyone know how to fix this problem or have some idea for workaround solution? Link to comment Share on other sites More sharing options...
sebastian.miletic Posted April 29, 2022 Share Posted April 29, 2022 Ok, there seems to be a workaround solution for this issue.First, if you are opening .jrxml file made from older version of Jasper Reports, make sure you go to "Window->Preferences->Jaspersoft Studio->Compatibility".Then choose appropriate Version for source .jrxml Version and then "Apply and Close".Now exit Jaspersoft Studio and delete .project file from project directory that you are opening.Run Jaspersoft Studio, delete project directory from "Project Structure" but don't check the option for deleting files from disk.Now open project directory and you should successfully open .jrxml file from Jaspersoft Studio.Process is tedious but it works until you exit Jaspersoft Studio. 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