# Exception when filtering alarm journal by display path

**URL:** <https://forum.inductiveautomation.com/t/exception-when-filtering-alarm-journal-by-display-path/6866>\
**Category:** Ignition\
**Created:** [July 15, 2013, 12:47pm UTC](https://forum.inductiveautomation.com/t/exception-when-filtering-alarm-journal-by-display-path/6866 "2013-07-15T12:47:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mayon](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@Mayon](https://forum.inductiveautomation.com/u/Mayon)\
**Post date:** [July 15, 2013, 12:47pm UTC](https://forum.inductiveautomation.com/t/exception-when-filtering-alarm-journal-by-display-path/6866/1 "2013-07-15T12:47:18Z")

</div>

I have set a filter on the display path of the alarm journal as shown in the attached picture. I get an Exception when I put in a value in the filter.

What did I do wrong?

WARN [AlarmJournalTable-AWT-EventQueue-2] Error fetching alarms.  
java.util.concurrent.ExecutionException: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: java.lang.NullPointerException  
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)  
at java.util.concurrent.FutureTask.get(Unknown Source)  
at javax.swing.SwingWorker.get(Unknown Source)  
at com.inductiveautomation.factorypmi.application.components.AlarmJournalTable$QueryAlarmJournal.done(AlarmJournalTable.java:710)  
at javax.swing.SwingWorker$5.run(Unknown Source)  
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)  
at sun.swing.AccumulativeRunnable.run(Unknown Source)  
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)  
at javax.swing.Timer.fireActionPerformed(Unknown Source)  
at javax.swing.Timer$DoPostEvent.run(Unknown Source)  
at java.awt.event.InvocationEvent.dispatch(Unknown Source)  
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)  
at java.awt.EventQueue.access$200(Unknown Source)  
at java.awt.EventQueue$3.run(Unknown Source)  
at java.awt.EventQueue$3.run(Unknown Source)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)  
at java.awt.EventQueue.dispatchEvent(Unknown Source)  
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)  
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)  
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)  
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)  
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)  
at java.awt.EventDispatchThread.run(Unknown Source)  
Caused by: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: java.lang.NullPointerException  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.newGatewayException(GatewayInterface.java:313)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:287)  
at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.invokeWithTimeout(GatewayInterface.java:807)  
at com.inductiveautomation.factorypmi.application.components.AlarmJournalTable$QueryAlarmJournal.doInBackground(AlarmJournalTable.java:702)  
at com.inductiveautomation.factorypmi.application.components.AlarmJournalTable$QueryAlarmJournal.doInBackground(AlarmJournalTable.java:630)  
at javax.swing.SwingWorker$1.call(Unknown Source)  
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)  
at java.util.concurrent.FutureTask.run(Unknown Source)  
at javax.swing.SwingWorker.run(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)  
Caused by: java.lang.RuntimeException: java.lang.NullPointerException  
at com.inductiveautomation.ignition.gateway.alarming.AlarmManagerImpl.queryJournal(AlarmManagerImpl.java:324)  
at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.Alarming.queryJournal(Alarming.java:63)  
at sun.reflect.GeneratedMethodAccessor51.invoke(null)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(null)  
at java.lang.reflect.Method.invoke(null)  
at com.inductiveautomation.ignition.gateway.servlets.gateway.AbstractGatewayFunction.invoke(AbstractGatewayFunction.java:176)  
at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:373)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)  
at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:85)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)  
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)  
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)  
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)  
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)  
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)  
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)  
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)  
at java.lang.Thread.run(null)

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/eabff04adf51142075afd6074cce9a25ae7264ff.PNG)

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [July 19, 2013, 3:53pm UTC](https://forum.inductiveautomation.com/t/exception-when-filtering-alarm-journal-by-display-path/6866/2 "2013-07-19T15:53:54Z")

</div>

Hi,

Does it only happen when you add in the display path filter? All the other filter settings work?

I think the difficulty in tracking it down is going to be that the error you posted seems to be covering up the real problem.

If there isn’t a ton of alarm query activity going on in the system, you could try the following:

- Go to Console\>Levels in the gateway
- Set both of the following to TRACE:  
Alarming.Journal.Query  
Alarming.Query.Filter
- Run the query once or twice, so that you get the error.
- Turn those loggers back to INFO.
- Export the logs from the Console screen and attach them or send them to support (at indu…com).

Hopefully this will help us narrow down how far into the query it’s getting before the error occurs.

Thanks,
