#1 2019-01-16 19:06:15

arezki
Member
Registered: 2018-12-28

error when executing jasper reports

Hi
when i try to execute a jasperreport, i have this error :
this was working fine yesterday !! tested it today in 2 servers, 
i create a new report and i still have the same error.
My config : Centos 7 / jdk1.8.0_191 /  RS3.0.5-6005 (2018-10-30-10-32-54)

Thanks.

État HTTP 500 – Internal Server Error
Type Rapport d''exception
message L''exécution du filtre (Filter) a lancé une exception

description Le serveur a rencontré une erreur interne qui l''a empêché de satisfaire la requête.

exception

javax.servlet.ServletException: L''exécution du filtre (Filter) a lancé une exception
cause mère

java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color
    net.sf.jasperreports.engine.util.JRColorUtil.getColor(JRColorUtil.java:90)
    net.sf.jasperreports.engine.xml.JRAbstractStyleFactory.setCommonStyle(JRAbstractStyleFactory.java:94)
    net.sf.jasperreports.engine.xml.JRAbstractStyleFactory.createObject(JRAbstractStyleFactory.java:76)
    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.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
    org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(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:298)
    net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285)
    net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274)
    net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:248)
    net.datenwerke.rs.base.service.reportengines.jasper.JasperReportEngine.executeReport(JasperReportEngine.java:161)
    net.datenwerke.rs.base.service.reportengines.jasper.JasperReportEngine.doExecute(JasperReportEngine.java:120)
    net.datenwerke.rs.core.service.reportmanager.engine.ReportEngine.execute(ReportEngine.java:150)
    net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:186)
    net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:119)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exeucteReport(ReportExportServlet.java:557)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doExportReport(ReportExportServlet.java:438)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReport(ReportExportServlet.java:368)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportViaSession(ReportExportServlet.java:361)
    net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doGet(ReportExportServlet.java:171)
    com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
    net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:109)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:109)
    com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
    com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
    com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
    com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
    com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
    com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
    com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
    com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
    com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
    com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)

Offline

#2 2019-01-17 07:43:24

eduardo
Administrator
Registered: 2016-11-01
Website

Re: error when executing jasper reports

Hi arezki,

did you perform a manual or a bitnami installation?
Try running your java in your tomcat with this option: -Djava.awt.headless=true

Regards,
Eduardo

Offline

#3 2019-01-17 09:22:56

arezki
Member
Registered: 2018-12-28

Re: error when executing jasper reports

Hi
i have 1 server with bitnami  and a second with a manual installation. i get the same error.
a have already checked this option. it was ok.
Thanks

Offline

#4 2019-01-17 09:42:29

eduardo
Administrator
Registered: 2016-11-01
Website

Re: error when executing jasper reports

Hi arezki,

where do you see this? Could you please send some screenshots of both cases?

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB