JDBCNotificationIndexTest

7

tests

0

failures

0

ignored

2.100s

duration

100%

successful

Tests

Test Duration Result
testAddNotifications 0.291s passed
testFindNotificationById 0.287s passed
testFindNotificationsByData 0.281s passed
testFindNotificationsByDataLists 0.282s passed
testRemoveExpiredNotifications 0.279s passed
testRemoveNotifications 0.386s passed
testThreadSafety 0.294s passed

Standard error

CONFIG	thread=1	Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
FINE	thread=157	[null] running event archive policy (testPolicy)
WARNING	thread=157	[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=157	[null] purged 0 expired events and 0 expired unassociated products.
CONFIG	thread=1	Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
Thu Mar 20 18:33:33 UTC 2025
FINE	thread=157	[null] running event archive policy (testPolicy)
WARNING	thread=157	[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=157	[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=157	[null] running event archive policy (testPolicy)
WARNING	thread=157	[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=157	[null] purged 0 expired events and 0 expired unassociated products.
CONFIG	thread=1	Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
Thu Mar 20 18:33:34 UTC 2025
CONFIG	thread=1	Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
FINE	thread=421	[HttpClient-27-SelectorManager] [50s 466ms] HttpClientImpl(27) next timeout: 0
FINE	thread=421	[HttpClient-27-SelectorManager] [50s 466ms] HttpClientImpl(27) next expired: 0
FINE	thread=421	[HttpClient-27-SelectorManager] [50s 466ms] HttpClientImpl(27) Next deadline is 3000
FINE	thread=157	[null] running event archive policy (testPolicy)
WARNING	thread=157	[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=157	[null] purged 0 expired events and 0 expired unassociated products.
CONFIG	thread=1	Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'