JsonNotificationIndexTest

9

tests

0

failures

0

ignored

3.082s

duration

100%

successful

Tests

Test Duration Result
testAddNotifications 0.343s passed
testFindNotificationById 0.332s passed
testFindNotificationsByData 0.345s passed
testFindNotificationsByDataLists 0.326s passed
testGetMissingNotifications 0.357s passed
testParseNotification 0.332s passed
testRemoveExpiredNotifications 0.315s passed
testRemoveNotifications 0.376s passed
testThreadSafety 0.356s passed

Standard error

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
FINER	thread=111	[null] running listener cleanup
Fri Jun 27 16:15:58 UTC 2025
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.
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
FINER	thread=111	[null] running listener cleanup
FINE	thread=432	[HttpClient-35-SelectorManager] [38s 382ms] HttpClientImpl(35) next timeout: 0
FINE	thread=432	[HttpClient-35-SelectorManager] [38s 382ms] HttpClientImpl(35) next expired: 0
FINE	thread=432	[HttpClient-35-SelectorManager] [38s 382ms] HttpClientImpl(35) Next deadline is 3000
FINE	thread=433	[HttpClient-36-SelectorManager] [38s 389ms] HttpClientImpl(36) next timeout: 0
FINE	thread=433	[HttpClient-36-SelectorManager] [38s 389ms] HttpClientImpl(36) next expired: 0
FINE	thread=433	[HttpClient-36-SelectorManager] [38s 389ms] HttpClientImpl(36) Next deadline is 3000
FINE	thread=435	[HttpClient-38-SelectorManager] [38s 391ms] HttpClientImpl(38) next timeout: 0
FINE	thread=434	[HttpClient-37-SelectorManager] [38s 391ms] HttpClientImpl(37) next timeout: 0
FINE	thread=435	[HttpClient-38-SelectorManager] [38s 391ms] HttpClientImpl(38) next expired: 0
FINE	thread=435	[HttpClient-38-SelectorManager] [38s 391ms] HttpClientImpl(38) Next deadline is 3000
FINE	thread=434	[HttpClient-37-SelectorManager] [38s 391ms] HttpClientImpl(37) next expired: 0
FINE	thread=434	[HttpClient-37-SelectorManager] [38s 391ms] HttpClientImpl(37) Next deadline is 3000
FINE	thread=436	[HttpClient-39-SelectorManager] [38s 415ms] HttpClientImpl(39) next timeout: 0
FINE	thread=436	[HttpClient-39-SelectorManager] [38s 415ms] HttpClientImpl(39) next expired: 0
FINE	thread=436	[HttpClient-39-SelectorManager] [38s 415ms] HttpClientImpl(39) Next deadline is 3000
Fri Jun 27 16:15:59 UTC 2025
FINE	thread=437	[HttpClient-40-SelectorManager] [38s 432ms] HttpClientImpl(40) next timeout: 0
FINE	thread=437	[HttpClient-40-SelectorManager] [38s 433ms] HttpClientImpl(40) next expired: 0
FINE	thread=437	[HttpClient-40-SelectorManager] [38s 433ms] HttpClientImpl(40) Next deadline is 3000
FINE	thread=438	[HttpClient-41-SelectorManager] [38s 445ms] HttpClientImpl(41) next timeout: 0
FINE	thread=438	[HttpClient-41-SelectorManager] [38s 445ms] HttpClientImpl(41) next expired: 0
FINE	thread=438	[HttpClient-41-SelectorManager] [38s 445ms] HttpClientImpl(41) Next deadline is 3000
FINE	thread=439	[HttpClient-42-SelectorManager] [38s 473ms] HttpClientImpl(42) next timeout: 0
FINE	thread=439	[HttpClient-42-SelectorManager] [38s 474ms] HttpClientImpl(42) next expired: 0
FINE	thread=439	[HttpClient-42-SelectorManager] [38s 474ms] HttpClientImpl(42) Next deadline is 3000
FINE	thread=440	[HttpClient-43-SelectorManager] [38s 496ms] HttpClientImpl(43) next timeout: 0
FINE	thread=440	[HttpClient-43-SelectorManager] [38s 496ms] HttpClientImpl(43) next expired: 0
FINE	thread=440	[HttpClient-43-SelectorManager] [38s 496ms] HttpClientImpl(43) Next deadline is 3000
FINE	thread=441	[HttpClient-44-SelectorManager] [38s 505ms] HttpClientImpl(44) next timeout: 0
FINE	thread=441	[HttpClient-44-SelectorManager] [38s 505ms] HttpClientImpl(44) next expired: 0
FINE	thread=441	[HttpClient-44-SelectorManager] [38s 505ms] HttpClientImpl(44) Next deadline is 3000
FINE	thread=442	[HttpClient-45-SelectorManager] [38s 512ms] HttpClientImpl(45) next timeout: 0
FINE	thread=442	[HttpClient-45-SelectorManager] [38s 512ms] HttpClientImpl(45) next expired: 0
FINE	thread=442	[HttpClient-45-SelectorManager] [38s 512ms] HttpClientImpl(45) Next deadline is 3000
FINE	thread=443	[HttpClient-46-SelectorManager] [38s 527ms] HttpClientImpl(46) next timeout: 0
FINE	thread=443	[HttpClient-46-SelectorManager] [38s 528ms] HttpClientImpl(46) next expired: 0
FINE	thread=443	[HttpClient-46-SelectorManager] [38s 528ms] HttpClientImpl(46) Next deadline is 3000
FINE	thread=444	[HttpClient-47-SelectorManager] [38s 541ms] HttpClientImpl(47) next timeout: 0
FINE	thread=444	[HttpClient-47-SelectorManager] [38s 541ms] HttpClientImpl(47) next expired: 0
FINE	thread=444	[HttpClient-47-SelectorManager] [38s 541ms] HttpClientImpl(47) Next deadline is 3000
FINE	thread=445	[HttpClient-48-SelectorManager] [38s 552ms] HttpClientImpl(48) next timeout: 0
FINE	thread=445	[HttpClient-48-SelectorManager] [38s 552ms] HttpClientImpl(48) next expired: 0
FINE	thread=445	[HttpClient-48-SelectorManager] [38s 552ms] HttpClientImpl(48) Next deadline is 3000
FINE	thread=446	[HttpClient-49-SelectorManager] [38s 573ms] HttpClientImpl(49) next timeout: 0
FINE	thread=446	[HttpClient-49-SelectorManager] [38s 573ms] HttpClientImpl(49) next expired: 0
FINE	thread=446	[HttpClient-49-SelectorManager] [38s 574ms] HttpClientImpl(49) Next deadline is 3000
FINE	thread=447	[HttpClient-50-SelectorManager] [38s 594ms] HttpClientImpl(50) next timeout: 0
FINE	thread=447	[HttpClient-50-SelectorManager] [38s 594ms] HttpClientImpl(50) next expired: 0
FINE	thread=447	[HttpClient-50-SelectorManager] [38s 594ms] HttpClientImpl(50) Next deadline is 3000
FINE	thread=448	[HttpClient-51-SelectorManager] [38s 599ms] HttpClientImpl(51) next timeout: 0
FINE	thread=448	[HttpClient-51-SelectorManager] [38s 599ms] HttpClientImpl(51) next expired: 0
FINE	thread=448	[HttpClient-51-SelectorManager] [38s 599ms] HttpClientImpl(51) 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=449	[HttpClient-52-SelectorManager] [38s 612ms] HttpClientImpl(52) next timeout: 0
FINE	thread=449	[HttpClient-52-SelectorManager] [38s 612ms] HttpClientImpl(52) next expired: 0
FINE	thread=449	[HttpClient-52-SelectorManager] [38s 612ms] HttpClientImpl(52) 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=450	[HttpClient-53-SelectorManager] [38s 630ms] HttpClientImpl(53) next timeout: 0
FINE	thread=450	[HttpClient-53-SelectorManager] [38s 630ms] HttpClientImpl(53) next expired: 0
FINE	thread=450	[HttpClient-53-SelectorManager] [38s 630ms] HttpClientImpl(53) Next deadline is 3000
FINE	thread=451	[HttpClient-54-SelectorManager] [38s 641ms] HttpClientImpl(54) next timeout: 0
FINE	thread=451	[HttpClient-54-SelectorManager] [38s 641ms] HttpClientImpl(54) next expired: 0
FINE	thread=451	[HttpClient-54-SelectorManager] [38s 641ms] HttpClientImpl(54) Next deadline is 3000
FINE	thread=452	[HttpClient-55-SelectorManager] [38s 653ms] HttpClientImpl(55) next timeout: 0
FINE	thread=452	[HttpClient-55-SelectorManager] [38s 653ms] HttpClientImpl(55) next expired: 0
FINE	thread=452	[HttpClient-55-SelectorManager] [38s 653ms] HttpClientImpl(55) Next deadline is 3000
FINE	thread=453	[HttpClient-56-SelectorManager] [38s 658ms] HttpClientImpl(56) next timeout: 0
FINE	thread=453	[HttpClient-56-SelectorManager] [38s 658ms] HttpClientImpl(56) next expired: 0
FINE	thread=453	[HttpClient-56-SelectorManager] [38s 658ms] HttpClientImpl(56) 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=454	[HttpClient-57-SelectorManager] [38s 697ms] HttpClientImpl(57) next timeout: 0
FINE	thread=454	[HttpClient-57-SelectorManager] [38s 697ms] HttpClientImpl(57) next expired: 0
FINE	thread=454	[HttpClient-57-SelectorManager] [38s 697ms] HttpClientImpl(57) Next deadline is 3000
FINE	thread=425	[HttpClient-28-SelectorManager] [38s 921ms] HttpClientImpl(28) next timeout: 0
FINE	thread=425	[HttpClient-28-SelectorManager] [38s 921ms] HttpClientImpl(28) next expired: 0
FINE	thread=425	[HttpClient-28-SelectorManager] [38s 921ms] HttpClientImpl(28) 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
CONFIG	thread=1	[null] driver=org.sqlite.JDBC
CONFIG	thread=1	[null] table=notification
WARNING	thread=1	[null] schema not found, creating
FINE	thread=431	[HttpClient-34-SelectorManager] [39s 65ms] HttpClientImpl(34) next timeout: 0
FINE	thread=431	[HttpClient-34-SelectorManager] [39s 65ms] HttpClientImpl(34) next expired: 0
FINE	thread=431	[HttpClient-34-SelectorManager] [39s 65ms] HttpClientImpl(34) 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.
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
FINER	thread=111	[null] running listener cleanup
Fri Jun 27 16:16:00 UTC 2025
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.