NullPointerException Ignition 8

Hello, I tried restarting the gateway and am now getting an Ignition Gateway is FAULTED status. This is from the wrapper.log file and I am not sure how to fix. I have followed other steps from previous posts, but cannot find one that corresponds to this type of issue.

Please advise,

java.lang.NullPointerException: null
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.io.ByteArrayInputStream.(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer.deserialize(XMLDeserializer.java:248)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.lambda$initializeQueries$0(NamedQueryExecutor.java:96)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.util.ArrayList.forEach(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:92)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:82)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.(NamedQueryExecutor.java:76)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager$NamedQueryLifeCycle.onStartup(GatewayNamedQueryManager.java:326)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycle.onStartup(ProjectLifecycle.java:38)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.maybeStartLifecycle(ProjectLifecycleFactory.java:234)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.lambda$projectAdded$0(ProjectLifecycleFactory.java:124)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.util.Optional.ifPresent(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.projectAdded(ProjectLifecycleFactory.java:124)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.util.ArrayList.forEach(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory.onStartup(ProjectLifecycleFactory.java:47)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager.onStartup(GatewayNamedQueryManager.java:57)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:1113)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:293)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:724)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:658)
INFO | jvm 1 | 2021/11/04 15:35:29 | at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:518)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | at java.base/java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2021/11/04 15:35:29 | I [IgnitionGateway ] [20:35:29]: Ignition[state=STARTING] ContextState = FAULTED

This is a known issue (Named Query resource causing gateway fault) and I think the easiest way to resolve this would be to upgrade Ignition.

If you can’t, calling support and getting them to help you find the specific resource causing the problem would be the next step.

Thanks Kevin for the quick reply! We migrated named queries from my local running 8.1.11 to a machine running 8.1.1 and this is when the issue started. I deleted the name-queries folder from C:\Program Files\Inductive Automation\Ignition\data\projects{PROJECT NAME}\ignition and that seemed to fix the issue. Going to see if we can upgrade or might just have to recreate the named queries in the other Ignition version. Again thanks again for your prompt reply!

Yeah, the named query resource format changed in a later version of 8.1.

Generally speaking, it is not safe to import anything from a future version of Ignition into a past version of Ignition, though more often than not it will work just fine.