JDBCNotificationIndexTest
Tests
| Test |
Duration |
Result |
| testAddNotifications |
0.284s |
passed |
| testFindNotificationById |
0.300s |
passed |
| testFindNotificationsByData |
0.287s |
passed |
| testFindNotificationsByDataLists |
0.287s |
passed |
| testRemoveExpiredNotifications |
0.279s |
passed |
| testRemoveNotifications |
0.298s |
passed |
| testThreadSafety |
0.314s |
passed |
Standard error
CONFIG thread=1 Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
Mon Feb 23 16:05:10 UTC 2026
FINE thread=164 [null] running event archive policy (testPolicy)
WARNING thread=164 [null] exception running event archive policy (testPolicy)
java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because the return value of "gov.usgs.earthquake.indexer.JDBCProductIndex.getConnection()" is null
at gov.usgs.earthquake.indexer.JDBCProductIndex.getEvents(JDBCProductIndex.java:232)
at gov.usgs.earthquake.indexer.Indexer.purgeExpiredProducts(Indexer.java:1838)
at gov.usgs.earthquake.indexer.Indexer$1.run(Indexer.java:1785)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
INFO thread=164 [null] purged 0 expired events and 0 expired unassociated products.
CONFIG thread=1 Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
CONFIG thread=1 Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
FINE thread=164 [null] running event archive policy (testPolicy)
WARNING thread=164 [null] exception running event archive policy (testPolicy)
java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because the return value of "gov.usgs.earthquake.indexer.JDBCProductIndex.getConnection()" is null
at gov.usgs.earthquake.indexer.JDBCProductIndex.getEvents(JDBCProductIndex.java:232)
at gov.usgs.earthquake.indexer.Indexer.purgeExpiredProducts(Indexer.java:1838)
at gov.usgs.earthquake.indexer.Indexer$1.run(Indexer.java:1785)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
INFO thread=164 [null] purged 0 expired events and 0 expired unassociated products.
Exception in thread "Timer-185" java.lang.NullPointerException: Cannot read the array length because "<local3>" is null
at gov.usgs.util.DirectoryPoller$PollTask.run(DirectoryPoller.java:176)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
CONFIG thread=1 Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
Mon Feb 23 16:05:11 UTC 2026
CONFIG thread=1 Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
FINE thread=164 [null] running event archive policy (testPolicy)
WARNING thread=164 [null] exception running event archive policy (testPolicy)
java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because the return value of "gov.usgs.earthquake.indexer.JDBCProductIndex.getConnection()" is null
at gov.usgs.earthquake.indexer.JDBCProductIndex.getEvents(JDBCProductIndex.java:232)
at gov.usgs.earthquake.indexer.Indexer.purgeExpiredProducts(Indexer.java:1838)
at gov.usgs.earthquake.indexer.Indexer$1.run(Indexer.java:1785)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
INFO thread=164 [null] purged 0 expired events and 0 expired unassociated products.
CONFIG thread=1 Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
FINE thread=164 [null] running event archive policy (testPolicy)
WARNING thread=164 [null] exception running event archive policy (testPolicy)
java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because the return value of "gov.usgs.earthquake.indexer.JDBCProductIndex.getConnection()" is null
at gov.usgs.earthquake.indexer.JDBCProductIndex.getEvents(JDBCProductIndex.java:232)
at gov.usgs.earthquake.indexer.Indexer.purgeExpiredProducts(Indexer.java:1838)
at gov.usgs.earthquake.indexer.Indexer$1.run(Indexer.java:1785)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
INFO thread=164 [null] purged 0 expired events and 0 expired unassociated products.
CONFIG thread=1 Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'