JsonNotificationIndexTest

9

tests

0

failures

0

ignored

3.020s

duration

100%

successful

Tests

Test Duration Result
testAddNotifications 0.341s passed
testFindNotificationById 0.320s passed
testFindNotificationsByData 0.329s passed
testFindNotificationsByDataLists 0.325s passed
testGetMissingNotifications 0.368s passed
testParseNotification 0.322s passed
testRemoveExpiredNotifications 0.308s passed
testRemoveNotifications 0.355s passed
testThreadSafety 0.352s 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
CONFIG	thread=1	[null] driver=org.sqlite.JDBC
CONFIG	thread=1	[null] table=notification
WARNING	thread=1	[null] schema not found, creating
Tue Jul 08 19:00:53 UTC 2025
FINE	thread=165	[null] running event archive policy (testPolicy)
WARNING	thread=165	[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=165	[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=165	[null] running event archive policy (testPolicy)
WARNING	thread=165	[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=165	[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
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
Tue Jul 08 19:00:54 UTC 2025
FINE	thread=165	[null] running event archive policy (testPolicy)
WARNING	thread=165	[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=165	[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=165	[null] running event archive policy (testPolicy)
WARNING	thread=165	[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=165	[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
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
Tue Jul 08 19:00:55 UTC 2025
FINE	thread=165	[null] running event archive policy (testPolicy)
WARNING	thread=165	[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=165	[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=432	[HttpClient-35-SelectorManager] [39s 69ms] HttpClientImpl(35) SelectorManager shutting down
FINE	thread=433	[HttpClient-36-SelectorManager] [39s 74ms] HttpClientImpl(36) SelectorManager shutting down
FINE	thread=434	[HttpClient-37-SelectorManager] [39s 75ms] HttpClientImpl(37) SelectorManager shutting down
FINE	thread=435	[HttpClient-38-SelectorManager] [39s 78ms] HttpClientImpl(38) SelectorManager shutting down
FINE	thread=436	[HttpClient-39-SelectorManager] [39s 88ms] HttpClientImpl(39) next timeout: 0
FINE	thread=436	[HttpClient-39-SelectorManager] [39s 88ms] HttpClientImpl(39) next expired: 0
FINE	thread=436	[HttpClient-39-SelectorManager] [39s 88ms] HttpClientImpl(39) Next deadline is 3000
FINE	thread=437	[HttpClient-40-SelectorManager] [39s 96ms] HttpClientImpl(40) SelectorManager shutting down
FINE	thread=438	[HttpClient-41-SelectorManager] [39s 117ms] HttpClientImpl(41) SelectorManager shutting down
FINE	thread=439	[HttpClient-42-SelectorManager] [39s 153ms] HttpClientImpl(42) SelectorManager shutting down
FINE	thread=440	[HttpClient-43-SelectorManager] [39s 164ms] HttpClientImpl(43) SelectorManager shutting down
FINE	thread=421	[HttpClient-24-SelectorManager] [39s 167ms] HttpClientImpl(24) SelectorManager shutting down
FINE	thread=441	[HttpClient-44-SelectorManager] [39s 172ms] HttpClientImpl(44) SelectorManager shutting down
FINE	thread=422	[HttpClient-25-SelectorManager] [39s 175ms] HttpClientImpl(25) SelectorManager shutting down
FINE	thread=442	[HttpClient-45-SelectorManager] [39s 193ms] HttpClientImpl(45) SelectorManager shutting down
FINE	thread=423	[HttpClient-26-SelectorManager] [39s 194ms] HttpClientImpl(26) SelectorManager shutting down
FINE	thread=424	[HttpClient-27-SelectorManager] [39s 196ms] HttpClientImpl(27) SelectorManager shutting down
FINE	thread=443	[HttpClient-46-SelectorManager] [39s 198ms] HttpClientImpl(46) SelectorManager shutting down
FINE	thread=444	[HttpClient-47-SelectorManager] [39s 217ms] HttpClientImpl(47) SelectorManager shutting down
FINE	thread=425	[HttpClient-28-SelectorManager] [39s 219ms] HttpClientImpl(28) next timeout: 0
FINE	thread=425	[HttpClient-28-SelectorManager] [39s 219ms] HttpClientImpl(28) next expired: 0
FINE	thread=425	[HttpClient-28-SelectorManager] [39s 219ms] HttpClientImpl(28) Next deadline is 3000
FINE	thread=445	[HttpClient-48-SelectorManager] [39s 219ms] HttpClientImpl(48) SelectorManager shutting down
FINE	thread=446	[HttpClient-49-SelectorManager] [39s 255ms] HttpClientImpl(49) SelectorManager shutting down
FINE	thread=447	[HttpClient-50-SelectorManager] [39s 273ms] HttpClientImpl(50) SelectorManager shutting down
FINE	thread=448	[HttpClient-51-SelectorManager] [39s 278ms] HttpClientImpl(51) SelectorManager shutting down
FINE	thread=449	[HttpClient-52-SelectorManager] [39s 293ms] HttpClientImpl(52) SelectorManager shutting down
FINE	thread=450	[HttpClient-53-SelectorManager] [39s 316ms] HttpClientImpl(53) SelectorManager shutting down
FINE	thread=451	[HttpClient-54-SelectorManager] [39s 323ms] HttpClientImpl(54) SelectorManager shutting down
FINE	thread=165	[null] running event archive policy (testPolicy)
WARNING	thread=165	[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=165	[null] purged 0 expired events and 0 expired unassociated products.
FINE	thread=452	[HttpClient-55-SelectorManager] [39s 343ms] HttpClientImpl(55) SelectorManager shutting down
FINE	thread=453	[HttpClient-56-SelectorManager] [39s 348ms] HttpClientImpl(56) next timeout: 0
FINE	thread=453	[HttpClient-56-SelectorManager] [39s 348ms] HttpClientImpl(56) next expired: 0
FINE	thread=453	[HttpClient-56-SelectorManager] [39s 348ms] HttpClientImpl(56) 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=426	[HttpClient-29-SelectorManager] [39s 380ms] HttpClientImpl(29) SelectorManager shutting down
CONFIG	thread=1	[null] driver=org.sqlite.JDBC
CONFIG	thread=1	[null] table=notification
WARNING	thread=1	[null] schema not found, creating
FINE	thread=454	[HttpClient-57-SelectorManager] [39s 386ms] HttpClientImpl(57) SelectorManager shutting down
FINE	thread=427	[HttpClient-30-SelectorManager] [39s 389ms] HttpClientImpl(30) SelectorManager shutting down
FINE	thread=428	[HttpClient-31-SelectorManager] [39s 401ms] HttpClientImpl(31) SelectorManager shutting down
FINE	thread=429	[HttpClient-32-SelectorManager] [39s 408ms] HttpClientImpl(32) SelectorManager shutting down
FINE	thread=430	[HttpClient-33-SelectorManager] [39s 417ms] HttpClientImpl(33) SelectorManager shutting down
FINE	thread=431	[HttpClient-34-SelectorManager] [39s 423ms] HttpClientImpl(34) SelectorManager shutting down
FINER	thread=111	[null] running listener cleanup