Report Module - Gateway Exception

#1

Upgraded to 8.0.3 today. Running on Linux (Ubuntu 16.04).

I was able to send reports via email but now I’m getting this Gateway exception:

Could not initialize class com.inductiveautomation.rm.graphics.RMImageData

and sometimes this:

Could not initialize class java.awt.GraphicsEnvironment$LocalGE

Any ideas on what’s going on?

0 Likes

#2

I think it’s good now… I simple restart on the gateway again seemed to fix this:

/usr/local/bin/ignition/ignition.sh stop
/usr/local/bin/ignition/ignition.sh start

0 Likes

#3

If you see this again click the “full” button on that error dialog, copy the full stack trace, and let us know.

0 Likes

#4

ok sounds good, will do!

0 Likes

#5

This same thing happened to me, Here is the Full error dialog:

com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:341)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:315)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:268)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.moduleInvokeSafe(GatewayInterface.java:880)
at com.inductiveautomation.ignition.client.gateway_interface.ModuleRPCFactory$DynamicRPCHandler.invoke(ModuleRPCFactory.java:53)
at com.sun.proxy.$Proxy50.execute(Unknown Source)
at com.inductiveautomation.reporting.designer.workspace.schedule.SchedulePanel$ActionsPanel$ExecuteNowWorker.doInBackground(SchedulePanel.java:668)
at com.inductiveautomation.reporting.designer.workspace.schedule.SchedulePanel$ActionsPanel$ExecuteNowWorker.doInBackground(SchedulePanel.java:641)
at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(null)
at java.awt.image.BufferedImage.createGraphics(null)
at com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShape.getDisplayedFill(AbstractJ2DShape.java:73)
at com.inductiveautomation.rm.out.RMExcelWriter.append(RMExcelWriter.java:304)
at com.inductiveautomation.rm.out.RMExcelWriter.getWorkbook(RMExcelWriter.java:162)
at com.inductiveautomation.rm.out.RMExcelWriter.getBytes(RMExcelWriter.java:96)
at com.inductiveautomation.rm.shape.RMDocument.getBytesExcel(RMDocument.java:738)
at com.inductiveautomation.rm.shape.RMDocument.writeExcel(RMDocument.java:885)
at com.inductiveautomation.reporting.gateway.actions.SaveFileReportAction.saveReport(SaveFileReportAction.java:163)
at com.inductiveautomation.reporting.gateway.actions.SaveFileReportAction.perform(SaveFileReportAction.java:105)
at com.inductiveautomation.reporting.gateway.scheduler.ReportSchedulerTask.reportAction(ReportSchedulerTask.java:322)
at com.inductiveautomation.reporting.gateway.scheduler.ReportSchedulerTask.runImmediate(ReportSchedulerTask.java:294)
at com.inductiveautomation.reporting.gateway.scheduler.ReportSchedulerTask.runImmediate(ReportSchedulerTask.java:262)
at com.inductiveautomation.reporting.gateway.ReportingGatewayHook$RPC.execute(ReportingGatewayHook.java:435)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(null)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(null)
at java.lang.reflect.Method.invoke(null)
at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.ModuleInvoke.invoke(ModuleInvoke.java:165)
at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:86)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:61)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.lang.Thread.run(null)

Ignition v8.0.3 (b2019080717)
Java: Azul Systems, Inc. 11.0.3

0 Likes

#6

What OS are you on? If it’s Linux, do you have X11 or any kind of graphics environment installed?

0 Likes

#7

Thanks for the reply. I am using Ubuntu Server 18.04. Doesn’t have X11 that I am aware. I think a QT package was installed for Oracle VMWare though.

0 Likes

#8

Wait, seems that X11 is there, is there some configuration required?

0 Likes

#9

No, just guessing at things right now. If you have a graphical environment you probably have X11.

0 Likes