Problema con Image charts

Olá

São novo no tema de ScadaBR é puseram-me as mãos de um projecto que o precisa.
Depois de loguearme no sistema e clickar em " Graphical views" os gráficos eram mostrados de forma correcta, ainda que existia um problema de conexão(’ iii’: com. serotonin. modbus4j. exception. ModbusInitException: java. net. ConnectException: Connection refused ( Connection refused)).

Trás arranjar o erro de conexão mudando o host e o porto, os gráficos deixaram de mostrar-se, aparecendo no seu lugar o texto " Image chart".

Experimentei com Firefox 77 e Chromium 83 no Kubuntu e tenho o mesmo problema nos dois. Se faço clique direito e inspecciono o elemento posso ver como o src da imagem vai mudando com o tempo e se acedo o link da imagem mostra o seguinte erro. Como posso solucioná-lo?

P.D: perdão pelo meu português, são da Galiza. Percebo mas não escrevo correctamente

System exception!

The server has experienced an exception processing your last request. The exception has been logged, and system administrators will be notified of this problem. You may continue to use the site. We apologize for the inconvenience.

Hide error details

javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.font.SunFontManager
at java.desktop/sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:265)
at java.desktop/sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:864)
at org.jfree.text.TextFragment.calculateDimensions(TextFragment.java:229)
at org.jfree.text.TextLine.calculateDimensions(TextLine.java:190)
at org.jfree.text.TextBlock.calculateDimensions(TextBlock.java:171)
at org.jfree.chart.block.LabelBlock.arrange(LabelBlock.java:249)
at org.jfree.chart.block.BorderArrangement.arrangeNN(BorderArrangement.java:210)
at org.jfree.chart.block.BorderArrangement.arrange(BorderArrangement.java:137)
at org.jfree.chart.block.BlockContainer.arrange(BlockContainer.java:179)
at org.jfree.chart.block.CenterArrangement.arrangeNN(CenterArrangement.java:284)
at org.jfree.chart.block.CenterArrangement.arrange(CenterArrangement.java:98)
at org.jfree.chart.block.BlockContainer.arrange(BlockContainer.java:179)
at org.jfree.chart.block.FlowArrangement.arrangeNN(FlowArrangement.java:365)
at org.jfree.chart.block.FlowArrangement.arrangeRR(FlowArrangement.java:283)
at org.jfree.chart.block.FlowArrangement.arrange(FlowArrangement.java:158)
at org.jfree.chart.block.BlockContainer.arrange(BlockContainer.java:179)
at org.jfree.chart.title.LegendTitle.arrange(LegendTitle.java:495)
at org.jfree.chart.JFreeChart.drawTitle(JFreeChart.java:1322)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1212)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1401)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1381)
at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:183)
at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:136)
at com.serotonin.mango.vo.report.ImageChartUtils.writeChart(ImageChartUtils.java:174)
at com.serotonin.mango.vo.report.ImageChartUtils.getChartData(ImageChartUtils.java:71)
at com.serotonin.mango.vo.report.ImageChartUtils.getChartData(ImageChartUtils.java:64)
at com.serotonin.mango.web.servlet.ImageChartServlet.getImageData(ImageChartServlet.java:172)
at com.serotonin.mango.web.servlet.ImageChartServlet.doGet(ImageChartServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
… 21 more

REQUEST URL
http://localhost:8080/ScadaBR/exception/error.jsp

REQUEST PARAMETERS

REQUEST HEADERS
host=localhost:8080
connection=keep-alive
upgrade-insecure-requests=1
user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/83.0.4103.61 Chrome/83.0.4103.61 Safari/537.36
accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
sec-fetch-site=none
sec-fetch-mode=navigate
sec-fetch-user=?1
sec-fetch-dest=document
accept-encoding=gzip, deflate, br
accept-language=en-US,en;q=0.9
cookie=JSESSIONID=59986D3C9D52637064D881BDFBE8D251

REQUEST ATTRIBUTES
javax.servlet.forward.request_uri=/ScadaBR/chart/1592298365590_7200000_719_720_722_w270_h130.png
javax.servlet.forward.context_path=/ScadaBR
javax.servlet.forward.servlet_path=/chart
javax.servlet.forward.path_info=/1592298365590_7200000_719_720_722_w270_h130.png
javax.servlet.forward.mapping=org.apache.catalina.core.ApplicationMapping$MappingImpl@3cef8ff0
javax.servlet.error.status_code=500
javax.servlet.error.message=
javax.servlet.error.servlet_name=imageChart
javax.servlet.error.request_uri=/ScadaBR/chart/1592298365590_7200000_719_720_722_w270_h130.png
javax.servlet.error.exception=javax.servlet.ServletException: Servlet execution threw an exception

SESSION ATTRIBUTES
sessionUser=com.serotonin.mango.vo.User@20
LONG_POLL_DATA_TIMEOUT=1592298153908
LONG_POLL_DATA=[com.serotonin.mango.web.dwr.longPoll.LongPollData@7fd37e99, com.serotonin.mango.web.dwr.longPoll.LongPollData@2b8a9b17, com.serotonin.mango.web.dwr.longPoll.LongPollData@7265eccd, com.serotonin.mango.web.dwr.longPoll.LongPollData@3eb905c7, com.serotonin.mango.web.dwr.longPoll.LongPollData@3ad6f144, com.serotonin.mango.web.dwr.longPoll.LongPollData@45fb872a, com.serotonin.mango.web.dwr.longPoll.LongPollData@18a508dc, com.serotonin.mango.web.dwr.longPoll.LongPollData@6ec4a132, com.serotonin.mango.web.dwr.longPoll.LongPollData@6315317f, com.serotonin.mango.web.dwr.longPoll.LongPollData@7a4e28e0, com.serotonin.mango.web.dwr.longPoll.LongPollData@4a9d3c9d, com.serotonin.mango.web.dwr.longPoll.LongPollData@19bd9cd, com.serotonin.mango.web.dwr.longPoll.LongPollData@4bcf8e48, com.serotonin.mango.web.dwr.longPoll.LongPollData@157300cc, com.serotonin.mango.web.dwr.longPoll.LongPollData@4e1d73fe, com.serotonin.mango.web.dwr.longPoll.LongPollData@1b39ef6a, com.serotonin.mango.web.dwr.longPoll.LongPollData@79c59866, com.serotonin.mango.web.dwr.longPoll.LongPollData@6ec81662, com.serotonin.mango.web.dwr.longPoll.LongPollData@13cf6b5a, com.serotonin.mango.web.dwr.longPoll.LongPollData@475984f6]

CONTEXT ATTRIBUTES
RUNTIME_MANAGER=com.serotonin.mango.rt.RuntimeManager@7dc9002e
constants.EventType.EventSources.SYSTEM=4
org.apache.catalina.resources=org.apache.catalina.webresources.StandardRoot@51f8912f
constants.PublisherVO.Types.HTTP_SENDER=1
DwrContainer=org.directwebremoting.impl.DefaultContainer@35eae7d9
constants.DataSourceVO.Types.OPC=32
constants.SystemEventType.TYPE_POINT_LINK_FAILURE=9
constants.EventType.EventSources.PUBLISHER=7
constants.SystemEventType.TYPE_USER_LOGIN=4
constants.DataSourceVO.Types.JMX=26
constants.EventType.EventSources.DATA_POINT=1
DYNAMIC_IMAGES=[]
constants.UserComment.TYPE_EVENT=1
AxisEngine=org.apache.axis.server.AxisServer@21ee62a9
constants.DataSourceVO.Types.ONE_WIRE=8
javax.servlet.http.HttpServlet=org.directwebremoting.servlet.DwrServlet@1493deca
constants.DataSourceVO.Types.PACHUBE=23
constants.DataTypes.ALPHANUMERIC=4
constants.Permissions.DataPointAccessTypes.SET=2
constants.DataSourceVO.Types.SNMP=5
constants.EventType.EventSources.DATA_SOURCE=3
constants.AuditEventType.TYPE_DATA_SOURCE=1
constants.SystemEventType.TYPE_EMAIL_SEND_FAILURE=8
constants.Permissions.DataPointAccessTypes.NONE=0
constants.DataSourceVO.Types.NODAVE_S7=37
HTTP_RECEIVER_MULTICASTER=com.serotonin.mango.rt.dataSource.http.HttpReceiverMulticaster@177549e
constants.DataSourceVO.Types.ALPHA_2=39
constants.DataSourceVO.Types.HTTP_RETRIEVER=11
constants.DataSourceVO.Types.PERSISTENT=24
constants.PublisherVO.Types.PERSISTENT=3
constants.DataSourceVO.Types.NMEA=13
constants.DataSourceVO.Types.HTTP_IMAGE=15
EVENT_MANAGER=com.serotonin.mango.rt.EventManager@6341af46
org.springframework.web.context.WebApplicationContext.ROOT=org.springframework.web.context.support.XmlWebApplicationContext@5c290a3d: display name [Root WebApplicationContext]; startup date [Tue Jun 16 10:08:56 CEST 2020]; root of context hierarchy
constants.AuditEventType.TYPE_POINT_EVENT_DETECTOR=3
constants.SystemEventType.TYPE_COMPOUND_DETECTOR_FAILURE=6
org.directwebremoting.WebContextFactory$WebContextBuilder=org.directwebremoting.impl.DefaultWebContextBuilder@31e862ad
constants.DataTypes.MULTISTATE=2
constants.AuditEventType.TYPE_POINT_LINK=7
org.apache.catalina.jsp_classpath=/var/lib/tomcat8/lib/:/usr/share/tomcat8/lib/:/usr/share/java/tomcat8-websocket-api-8.5.39.jar:/usr/share/java/tomcat8-tribes-8.5.39.jar:/usr/share/java/tomcat8-catalina-jmx-remote-8.5.39.jar:/usr/share/java/tomcat8-i18n-fr-8.5.39.jar:/usr/share/java/commons-pool-1.6.jar:/usr/share/java/tomcat8-dbcp-8.5.39.jar:/usr/share/java/tomcat8-i18n-ja-8.5.39.jar:/usr/share/java/tomcat8-catalina-ant-8.5.39.jar:/usr/share/java/tomcat8-i18n-ru-8.5.39.jar:/usr/share/java/tomcat8-el-api-8.5.39.jar:/usr/share/java/tomcat8-jsp-api-8.5.39.jar:/usr/share/java/tomcat8-jni-8.5.39.jar:/usr/share/java/tomcat8-catalina-ha-8.5.39.jar:/usr/share/java/tomcat8-api-8.5.39.jar:/usr/share/java/commons-dbcp-1.4.jar:/usr/share/java/tomcat8-util-8.5.39.jar:/usr/share/java/tomcat8-util-scan-8.5.39.jar:/usr/share/java/tomcat8-annotations-api-8.5.39.jar:/usr/share/java/tomcat8-i18n-es-8.5.39.jar:/usr/share/java/tomcat8-jasper-8.5.39.jar:/usr/share/java/tomcat8-catalina-8.5.39.jar:/usr/share/java/tomcat8-jdbc-8.5.39.jar:/usr/share/java/tomcat8-storeconfig-8.5.39.jar:/usr/share/java/tomcat8-jaspic-api-8.5.39.jar:/usr/share/java/tomcat8-coyote-8.5.39.jar:/usr/share/java/tomcat8-websocket-8.5.39.jar:/usr/share/java/tomcat8-jasper-el-8.5.39.jar:/usr/share/java/tomcat8-servlet-api-8.5.39.jar:/usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar
constants.UserComment.TYPE_POINT=2
constants.EventType.EventSources.MAINTENANCE=9
constants.DataTypes.IMAGE=5
constants.DataSourceVO.Types.ASCII_FILE=33
org.springframework.web.servlet.FrameworkServlet.CONTEXT.springDispatcher=org.springframework.web.context.support.XmlWebApplicationContext@77b1939e: display name [WebApplicationContext for namespace ‘springDispatcher-servlet’]; startup date [Tue Jun 16 10:08:57 CEST 2020]; parent: org.springframework.web.context.support.XmlWebApplicationContext@5c290a3d
constants.DataSourceVO.Types.GALIL=14
constants.Permissions.DataPointAccessTypes.DATA_SOURCE=3
constants.AuditEventType.TYPE_DATA_POINT=2
constants.DataTypes.NUMERIC=3
constants.AuditEventType.TYPE_COMPOUND_EVENT_DETECTOR=4
IMAGE_SETS=[]
constants.Common.NEW_ID=-1
constants.DataSourceVO.Types.VMSTAT=17
constants.AuditEventType.TYPE_EVENT_HANDLER=6
constants.DataSourceVO.Types.BACNET=10
constants.DataSourceVO.Types.FHZ_4_J=40
constants.PublisherVO.Types.PACHUBE=2
constants.Permissions.DataPointAccessTypes.READ=1
org.directwebremoting.ContainerList=[org.directwebremoting.impl.DefaultContainer@35eae7d9]
constants.EventType.EventSources.SCHEDULED=6
constants.DataTypes.BINARY=1
constants.SystemEventType.TYPE_SYSTEM_STARTUP=1
javax.servlet.ServletConfig=org.apache.catalina.core.StandardWrapperFacade@3b879fd4
clientSideMessages={common.alarmLevel.lifeSafety=com.serotonin.web.i18n.LocalizableMessage@1c71626, common.disabled=com.serotonin.web.i18n.LocalizableMessage@be9bfeff, header.mute=com.serotonin.web.i18n.LocalizableMessage@43df3cba, header.unmute=com.serotonin.web.i18n.LocalizableMessage@d635aa93, common.alarmLevel.critical=com.serotonin.web.i18n.LocalizableMessage@2b076d7, js.help.loading=com.serotonin.web.i18n.LocalizableMessage@10dfaff4, js.help.related=com.serotonin.web.i18n.LocalizableMessage@3dce6ae3, js.disabledCed=com.serotonin.web.i18n.LocalizableMessage@5d4e0ee1, js.help.lastUpdated=com.serotonin.web.i18n.LocalizableMessage@729293fd, js.email.addAddress=com.serotonin.web.i18n.LocalizableMessage@cbb9a38a, js.disabledSe=com.serotonin.web.i18n.LocalizableMessage@97a7b393, scheduledEvents.se=com.serotonin.web.i18n.LocalizableMessage@b5cc6cfa, js.help.error=com.serotonin.web.i18n.LocalizableMessage@f876c0, js.email.addUser=com.serotonin.web.i18n.LocalizableMessage@49cc77b5, js.email.addMailingList=com.serotonin.web.i18n.LocalizableMessage@6fa4a69f, js.email.noRecipForEmail=com.serotonin.web.i18n.LocalizableMessage@4b694592, common.access.set=com.serotonin.web.i18n.LocalizableMessage@a3e5309b, common.access.read=com.serotonin.web.i18n.LocalizableMessage@d8bff83d, common.sendTestEmail=com.serotonin.web.i18n.LocalizableMessage@8fd89c9f, pointLinks.pointLink=com.serotonin.web.i18n.LocalizableMessage@2c6dd5e5, js.disabledPointLink=com.serotonin.web.i18n.LocalizableMessage@25407509, compoundDetectors.compoundEventDetector=com.serotonin.web.i18n.LocalizableMessage@51020f89, common.disabledToggle=com.serotonin.web.i18n.LocalizableMessage@d7f89333, common.alarmLevel.none=com.serotonin.web.i18n.LocalizableMessage@223c1a70, common.administrator=com.serotonin.web.i18n.LocalizableMessage@a467f3ea, common.enabledToggle=com.serotonin.web.i18n.LocalizableMessage@ea5c2f12, common.alarmLevel.urgent=com.serotonin.web.i18n.LocalizableMessage@8fa9c879, common.minimize=com.serotonin.web.i18n.LocalizableMessage@5d740b21, js.email.noRecipients=com.serotonin.web.i18n.LocalizableMessage@d78563d2, common.user=com.serotonin.web.i18n.LocalizableMessage@8a9479ce, events.silence=com.serotonin.web.i18n.LocalizableMessage@8376c0ac, js.email.testSent=com.serotonin.web.i18n.LocalizableMessage@f59d9881, common.maximize=com.serotonin.web.i18n.LocalizableMessage@c752a74f, events.unsilence=com.serotonin.web.i18n.LocalizableMessage@29ad6533, common.alarmLevel.info=com.serotonin.web.i18n.LocalizableMessage@2239cfe6}
constants.DataSourceVO.Types.EBI25=16
constants.SystemEventType.TYPE_SET_POINT_HANDLER_FAILURE=7
constants.EventType.EventSources.AUDIT=8
constants.DataSourceVO.Types.OPEN_V_4_J=19
org.apache.jasper.compiler.ELInterpreter=org.apache.jasper.compiler.ELInterpreterFactory$DefaultELInterpreter@efff9e
constants.Permissions.DataPointAccessTypes.ADMIN=4
constants.DataSourceVO.Types.DR_STORAGE_HT5B=38
constants.DataSourceVO.Types.SPINWAVE=4
javax.websocket.server.ServerContainer=org.apache.tomcat.websocket.server.WsServerContainer@6e3a5b5a
org.directwebremoting.impl.ServerContext=org.directwebremoting.impl.DefaultServerContext@1c35b13a
AdminServletAxisEngine=org.apache.axis.server.AxisServer@21ee62a9
constants.DataSourceVO.Types.MODBUS_SERIAL=2
constants.DataSourceVO.Types.POP3=12
org.apache.tomcat.JarScanner=org.apache.tomcat.util.scan.StandardJarScanner@1bcbf457
constants.DataSourceVO.Types.VICONICS=18
FREEMARKER_CONFIG=freemarker.template.Configuration@2ea9f23b
constants.DataSourceVO.Types.SQL=6
constants.DataSourceVO.Types.MODBUS_IP=3
constants.AuditEventType.TYPE_SCHEDULED_EVENT=5
constants.SystemEventType.TYPE_SYSTEM_SHUTDOWN=2
constants.DataSourceVO.Types.ASCII_SERIAL=34
constants.DataSourceVO.Types.HTTP_RECEIVER=7
constants.DataSourceVO.Types.DNP3_IP=21
BACKGROUND_PROCESSING=com.serotonin.mango.rt.maint.BackgroundProcessing@12da3af0
constants.EventType.EventSources.COMPOUND=5
constants.DataSourceVO.Types.VIRTUAL=1
org.apache.jasper.runtime.JspApplicationContextImpl=org.apache.jasper.runtime.JspApplicationContextImpl@45c63d7a
javax.servlet.context.tempdir=/var/lib/tomcat8/work/Catalina/localhost/ScadaBR
constants.DataSourceVO.Types.META=9
constants.DataSourceVO.Types.INTERNAL=27
org.apache.tomcat.InstanceManager=org.apache.catalina.core.DefaultInstanceManager@79bd1e8a
constants.SystemEventType.TYPE_VERSION_CHECK=5
constants.DataSourceVO.Types.DNP3_SERIAL=22
org.directwebremoting.Container=org.directwebremoting.impl.DefaultContainer@35eae7d9
org.apache.jasper.compiler.TldCache=org.apache.jasper.compiler.TldCache@186403ac
DATABASE_ACCESS=com.serotonin.mango.db.MySQLAccess@5baaa7ea
constants.DataSourceVO.Types.IEC101_ETHERNET=36
constants.SystemEventType.TYPE_PROCESS_FAILURE=10
constants.SystemEventType.TYPE_MAX_ALARM_LEVEL_CHANGED=3
constants.DataSourceVO.Types.M_BUS=20
constants.DataSourceVO.Types.IEC101_SERIAL=35

Já resolvido

Foi tão simples quanto reiniciar o computador :joy: