# NullPointerException Ignition 8

**URL:** <https://forum.inductiveautomation.com/t/nullpointerexception-ignition-8/52751>\
**Category:** Ignition\
**Created:** [November 4, 2021, 8:57pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-ignition-8/52751 "2021-11-04T20:57:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brantly\_Lockhart](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Brantly\_Lockhart](https://forum.inductiveautomation.com/u/Brantly_Lockhart)\
**Post date:** [November 4, 2021, 8:57pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-ignition-8/52751/1 "2021-11-04T20:57:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 4, 2021, 9:22pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-ignition-8/52751/2 "2021-11-04T21:22:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Brantly\_Lockhart](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Brantly\_Lockhart](https://forum.inductiveautomation.com/u/Brantly_Lockhart)\
**Post date:** [November 4, 2021, 10:08pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-ignition-8/52751/3 "2021-11-04T22:08:09Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 4, 2021, 10:13pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-ignition-8/52751/4 "2021-11-04T22:13:20Z")

</div>

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.
