JsonNotificationIndexTest
Tests
| Test |
Duration |
Result |
| testAddNotifications |
0.370s |
passed |
| testFindNotificationById |
0.374s |
passed |
| testFindNotificationsByData |
0.413s |
passed |
| testFindNotificationsByDataLists |
0.385s |
passed |
| testGetMissingNotifications |
0.366s |
passed |
| testParseNotification |
0.417s |
passed |
| testRemoveExpiredNotifications |
0.369s |
passed |
| testRemoveNotifications |
0.452s |
passed |
| testThreadSafety |
0.381s |
passed |
Standard error
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
FINER thread=111 [null] running listener cleanup
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
Mon Feb 23 16:04:52 UTC 2026
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
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 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
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.
FINER thread=111 [null] running listener cleanup
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
Mon Feb 23 16:04:53 UTC 2026
FINE thread=421 [HttpClient-28-SelectorManager] [38s 406ms] HttpClientImpl(28) next timeout: 0
FINE thread=421 [HttpClient-28-SelectorManager] [38s 406ms] HttpClientImpl(28) next expired: 0
FINE thread=421 [HttpClient-28-SelectorManager] [38s 406ms] HttpClientImpl(28) Next deadline is 3000
FINE thread=422 [HttpClient-29-SelectorManager] [38s 418ms] HttpClientImpl(29) next timeout: 0
FINE thread=422 [HttpClient-29-SelectorManager] [38s 418ms] HttpClientImpl(29) next expired: 0
FINE thread=422 [HttpClient-29-SelectorManager] [38s 418ms] HttpClientImpl(29) Next deadline is 3000
FINE thread=423 [HttpClient-30-SelectorManager] [38s 433ms] HttpClientImpl(30) next timeout: 0
FINE thread=423 [HttpClient-30-SelectorManager] [38s 433ms] HttpClientImpl(30) next expired: 0
FINE thread=423 [HttpClient-30-SelectorManager] [38s 433ms] HttpClientImpl(30) Next deadline is 3000
FINE thread=424 [HttpClient-31-SelectorManager] [38s 436ms] HttpClientImpl(31) next timeout: 0
FINE thread=424 [HttpClient-31-SelectorManager] [38s 436ms] HttpClientImpl(31) next expired: 0
FINE thread=424 [HttpClient-31-SelectorManager] [38s 436ms] HttpClientImpl(31) Next deadline is 3000
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.
FINE thread=425 [HttpClient-32-SelectorManager] [38s 458ms] HttpClientImpl(32) next timeout: 0
FINE thread=425 [HttpClient-32-SelectorManager] [38s 458ms] HttpClientImpl(32) next expired: 0
FINE thread=425 [HttpClient-32-SelectorManager] [38s 458ms] HttpClientImpl(32) Next deadline is 3000
FINE thread=441 [HttpClient-48-SelectorManager] [38s 476ms] HttpClientImpl(48) next timeout: 0
FINE thread=441 [HttpClient-48-SelectorManager] [38s 477ms] HttpClientImpl(48) next expired: 0
FINE thread=441 [HttpClient-48-SelectorManager] [38s 477ms] HttpClientImpl(48) Next deadline is 3000
FINE thread=442 [HttpClient-49-SelectorManager] [38s 481ms] HttpClientImpl(49) next timeout: 0
FINE thread=442 [HttpClient-49-SelectorManager] [38s 481ms] HttpClientImpl(49) next expired: 0
FINE thread=442 [HttpClient-49-SelectorManager] [38s 481ms] HttpClientImpl(49) Next deadline is 3000
FINE thread=443 [HttpClient-50-SelectorManager] [38s 490ms] HttpClientImpl(50) next timeout: 0
FINE thread=443 [HttpClient-50-SelectorManager] [38s 490ms] HttpClientImpl(50) next expired: 0
FINE thread=443 [HttpClient-50-SelectorManager] [38s 490ms] HttpClientImpl(50) Next deadline is 3000
FINE thread=444 [HttpClient-51-SelectorManager] [38s 491ms] HttpClientImpl(51) next timeout: 0
FINE thread=444 [HttpClient-51-SelectorManager] [38s 492ms] HttpClientImpl(51) next expired: 0
FINE thread=444 [HttpClient-51-SelectorManager] [38s 492ms] HttpClientImpl(51) Next deadline is 3000
FINE thread=445 [HttpClient-52-SelectorManager] [38s 502ms] HttpClientImpl(52) next timeout: 0
FINE thread=445 [HttpClient-52-SelectorManager] [38s 502ms] HttpClientImpl(52) next expired: 0
FINE thread=445 [HttpClient-52-SelectorManager] [38s 502ms] HttpClientImpl(52) Next deadline is 3000
FINE thread=446 [HttpClient-53-SelectorManager] [38s 508ms] HttpClientImpl(53) next timeout: 0
FINE thread=446 [HttpClient-53-SelectorManager] [38s 508ms] HttpClientImpl(53) next expired: 0
FINE thread=446 [HttpClient-53-SelectorManager] [38s 508ms] HttpClientImpl(53) Next deadline is 3000
FINE thread=447 [HttpClient-54-SelectorManager] [38s 530ms] HttpClientImpl(54) next timeout: 0
FINE thread=447 [HttpClient-54-SelectorManager] [38s 531ms] HttpClientImpl(54) next expired: 0
FINE thread=447 [HttpClient-54-SelectorManager] [38s 531ms] HttpClientImpl(54) Next deadline is 3000
FINE thread=448 [HttpClient-55-SelectorManager] [38s 532ms] HttpClientImpl(55) next timeout: 0
FINE thread=448 [HttpClient-55-SelectorManager] [38s 532ms] HttpClientImpl(55) next expired: 0
FINE thread=448 [HttpClient-55-SelectorManager] [38s 532ms] HttpClientImpl(55) Next deadline is 3000
FINE thread=449 [HttpClient-56-SelectorManager] [38s 542ms] HttpClientImpl(56) next timeout: 0
FINE thread=449 [HttpClient-56-SelectorManager] [38s 542ms] HttpClientImpl(56) next expired: 0
FINE thread=449 [HttpClient-56-SelectorManager] [38s 542ms] HttpClientImpl(56) Next deadline is 3000
FINE thread=450 [HttpClient-57-SelectorManager] [38s 546ms] HttpClientImpl(57) next timeout: 0
FINE thread=450 [HttpClient-57-SelectorManager] [38s 546ms] HttpClientImpl(57) next expired: 0
FINE thread=450 [HttpClient-57-SelectorManager] [38s 546ms] HttpClientImpl(57) Next deadline is 3000
FINE thread=451 [HttpClient-58-SelectorManager] [38s 558ms] HttpClientImpl(58) next timeout: 0
FINE thread=451 [HttpClient-58-SelectorManager] [38s 558ms] HttpClientImpl(58) next expired: 0
FINE thread=451 [HttpClient-58-SelectorManager] [38s 558ms] HttpClientImpl(58) Next deadline is 3000
FINE thread=452 [HttpClient-59-SelectorManager] [38s 566ms] HttpClientImpl(59) next timeout: 0
FINE thread=452 [HttpClient-59-SelectorManager] [38s 567ms] HttpClientImpl(59) next expired: 0
FINE thread=452 [HttpClient-59-SelectorManager] [38s 567ms] HttpClientImpl(59) Next deadline is 3000
FINE thread=453 [HttpClient-60-SelectorManager] [38s 574ms] HttpClientImpl(60) next timeout: 0
FINE thread=453 [HttpClient-60-SelectorManager] [38s 574ms] HttpClientImpl(60) next expired: 0
FINE thread=453 [HttpClient-60-SelectorManager] [38s 574ms] HttpClientImpl(60) Next deadline is 3000
FINE thread=454 [HttpClient-61-SelectorManager] [38s 585ms] HttpClientImpl(61) next timeout: 0
FINE thread=454 [HttpClient-61-SelectorManager] [38s 585ms] HttpClientImpl(61) next expired: 0
FINE thread=454 [HttpClient-61-SelectorManager] [38s 585ms] HttpClientImpl(61) Next deadline is 3000
FINE thread=455 [HttpClient-62-SelectorManager] [38s 612ms] HttpClientImpl(62) next timeout: 0
FINE thread=455 [HttpClient-62-SelectorManager] [38s 612ms] HttpClientImpl(62) next expired: 0
FINE thread=455 [HttpClient-62-SelectorManager] [38s 612ms] HttpClientImpl(62) Next deadline is 3000
FINE thread=456 [HttpClient-63-SelectorManager] [38s 642ms] HttpClientImpl(63) next timeout: 0
FINE thread=456 [HttpClient-63-SelectorManager] [38s 642ms] HttpClientImpl(63) next expired: 0
FINE thread=456 [HttpClient-63-SelectorManager] [38s 642ms] HttpClientImpl(63) Next deadline is 3000
FINE thread=426 [HttpClient-33-SelectorManager] [38s 686ms] HttpClientImpl(33) next timeout: 0
FINE thread=426 [HttpClient-33-SelectorManager] [38s 686ms] HttpClientImpl(33) next expired: 0
FINE thread=426 [HttpClient-33-SelectorManager] [38s 686ms] HttpClientImpl(33) Next deadline is 3000
FINE thread=427 [HttpClient-34-SelectorManager] [38s 694ms] HttpClientImpl(34) next timeout: 0
FINE thread=427 [HttpClient-34-SelectorManager] [38s 694ms] HttpClientImpl(34) next expired: 0
FINE thread=427 [HttpClient-34-SelectorManager] [38s 694ms] HttpClientImpl(34) Next deadline is 3000
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
FINE thread=428 [HttpClient-35-SelectorManager] [38s 702ms] HttpClientImpl(35) next timeout: 0
FINE thread=428 [HttpClient-35-SelectorManager] [38s 703ms] HttpClientImpl(35) next expired: 0
FINE thread=428 [HttpClient-35-SelectorManager] [38s 703ms] HttpClientImpl(35) Next deadline is 3000
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
FINE thread=429 [HttpClient-36-SelectorManager] [38s 709ms] HttpClientImpl(36) next timeout: 0
FINE thread=429 [HttpClient-36-SelectorManager] [38s 709ms] HttpClientImpl(36) next expired: 0
FINE thread=429 [HttpClient-36-SelectorManager] [38s 709ms] HttpClientImpl(36) Next deadline is 3000
WARNING thread=1 [null] schema not found, creating
FINE thread=430 [HttpClient-37-SelectorManager] [38s 721ms] HttpClientImpl(37) next timeout: 0
FINE thread=430 [HttpClient-37-SelectorManager] [38s 721ms] HttpClientImpl(37) next expired: 0
FINE thread=430 [HttpClient-37-SelectorManager] [38s 722ms] HttpClientImpl(37) Next deadline is 3000
FINE thread=431 [HttpClient-38-SelectorManager] [38s 730ms] HttpClientImpl(38) next timeout: 0
FINE thread=431 [HttpClient-38-SelectorManager] [38s 730ms] HttpClientImpl(38) next expired: 0
FINE thread=431 [HttpClient-38-SelectorManager] [38s 730ms] HttpClientImpl(38) Next deadline is 3000
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.
FINER thread=111 [null] running listener cleanup
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
Mon Feb 23 16:04:54 UTC 2026
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
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 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
FINE thread=432 [HttpClient-39-SelectorManager] [39s 867ms] HttpClientImpl(39) next timeout: 0
FINE thread=432 [HttpClient-39-SelectorManager] [39s 867ms] HttpClientImpl(39) next expired: 0
FINE thread=432 [HttpClient-39-SelectorManager] [39s 867ms] HttpClientImpl(39) Next deadline is 3000
FINE thread=434 [HttpClient-41-SelectorManager] [39s 878ms] HttpClientImpl(41) next timeout: 0
FINE thread=434 [HttpClient-41-SelectorManager] [39s 879ms] HttpClientImpl(41) next expired: 0
FINE thread=434 [HttpClient-41-SelectorManager] [39s 879ms] HttpClientImpl(41) Next deadline is 3000
FINE thread=433 [HttpClient-40-SelectorManager] [39s 878ms] HttpClientImpl(40) next timeout: 0
FINE thread=433 [HttpClient-40-SelectorManager] [39s 879ms] HttpClientImpl(40) next expired: 0
FINE thread=433 [HttpClient-40-SelectorManager] [39s 879ms] HttpClientImpl(40) Next deadline is 3000
FINE thread=435 [HttpClient-42-SelectorManager] [39s 886ms] HttpClientImpl(42) next timeout: 0
FINE thread=435 [HttpClient-42-SelectorManager] [39s 886ms] HttpClientImpl(42) next expired: 0
FINE thread=435 [HttpClient-42-SelectorManager] [39s 886ms] HttpClientImpl(42) Next deadline is 3000
FINE thread=436 [HttpClient-43-SelectorManager] [39s 894ms] HttpClientImpl(43) next timeout: 0
FINE thread=436 [HttpClient-43-SelectorManager] [39s 894ms] HttpClientImpl(43) next expired: 0
FINE thread=436 [HttpClient-43-SelectorManager] [39s 894ms] HttpClientImpl(43) Next deadline is 3000
FINE thread=437 [HttpClient-44-SelectorManager] [39s 914ms] HttpClientImpl(44) next timeout: 0
FINE thread=437 [HttpClient-44-SelectorManager] [39s 914ms] HttpClientImpl(44) next expired: 0
FINE thread=437 [HttpClient-44-SelectorManager] [39s 914ms] HttpClientImpl(44) Next deadline is 3000
FINE thread=438 [HttpClient-45-SelectorManager] [39s 938ms] HttpClientImpl(45) next timeout: 0
FINE thread=438 [HttpClient-45-SelectorManager] [39s 938ms] HttpClientImpl(45) next expired: 0
FINE thread=438 [HttpClient-45-SelectorManager] [39s 938ms] HttpClientImpl(45) Next deadline is 3000
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.
FINE thread=439 [HttpClient-46-SelectorManager] [39s 974ms] HttpClientImpl(46) next timeout: 0
FINE thread=439 [HttpClient-46-SelectorManager] [39s 974ms] HttpClientImpl(46) next expired: 0
FINE thread=439 [HttpClient-46-SelectorManager] [39s 974ms] HttpClientImpl(46) Next deadline is 3000
FINE thread=440 [HttpClient-47-SelectorManager] [39s 990ms] HttpClientImpl(47) next timeout: 0
FINE thread=440 [HttpClient-47-SelectorManager] [39s 991ms] HttpClientImpl(47) next expired: 0
FINE thread=440 [HttpClient-47-SelectorManager] [39s 991ms] HttpClientImpl(47) Next deadline is 3000
FINER thread=111 [null] running listener cleanup
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
CONFIG thread=1 [null] driver=org.sqlite.JDBC
CONFIG thread=1 [null] table=notification
WARNING thread=1 [null] schema not found, creating
Mon Feb 23 16:04:55 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.