JDBCNotificationIndexTest

7

tests

0

failures

0

ignored

1.762s

duration

100%

successful

Tests

Test Duration Result
testAddNotifications 0.253s passed
testFindNotificationById 0.240s passed
testFindNotificationsByData 0.245s passed
testFindNotificationsByDataLists 0.242s passed
testRemoveExpiredNotifications 0.238s passed
testRemoveNotifications 0.276s passed
testThreadSafety 0.268s passed

Standard error

CONFIG	thread=1	Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
FINE	thread=437	[HttpClient-31-SelectorManager] [50s 756ms] HttpClientImpl(31) next timeout: 0
FINE	thread=437	[HttpClient-31-SelectorManager] [50s 756ms] HttpClientImpl(31) next expired: 0
FINE	thread=437	[HttpClient-31-SelectorManager] [50s 757ms] HttpClientImpl(31) Next deadline is 3000
FINE	thread=176	[null] running event archive policy (testPolicy)
WARNING	thread=176	[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=176	[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'
Wed Jul 30 21:45:28 UTC 2025
FINE	thread=176	[null] running event archive policy (testPolicy)
WARNING	thread=176	[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=176	[null] purged 0 expired events and 0 expired unassociated products.
CONFIG	thread=1	Notification index database is '/builds/ghsc/hazdev/pdl/test-index.db'
Exception in thread "Timer-197" 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'
FINE	thread=176	[null] running event archive policy (testPolicy)
WARNING	thread=176	[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=176	[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=448	[HttpClient-42-SelectorManager] [52s 386ms] HttpClientImpl(42) next timeout: 0
FINE	thread=448	[HttpClient-42-SelectorManager] [52s 387ms] HttpClientImpl(42) next expired: 0
FINE	thread=448	[HttpClient-42-SelectorManager] [52s 387ms] HttpClientImpl(42) Next deadline is 3000
Wed Jul 30 21:45:29 UTC 2025
FINE	thread=176	[null] running event archive policy (testPolicy)
WARNING	thread=176	[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=176	[null] purged 0 expired events and 0 expired unassociated products.