SocketProductReceiverTest

5

tests

0

failures

0

ignored

0.510s

duration

100%

successful

Tests

Test Duration Result
testReceiveBinaryNoDeflate 0.137s passed
testReceiveBinaryWithDeflate 0.043s passed
testReceiveExistingProduct 0.017s passed
testReceiveXmlNoDeflate 0.230s passed
testReceiveXmlWithDeflate 0.083s passed

Standard error

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.
There are 1 active/queued socket connections
INFO	thread=1024	[null] accepted connection Socket[addr=/127.0.0.1,port=46740,localport=1984]
INFO	thread=1024	[null] received product 'urn:usgs-product:us:shakemap:abcd1234:1746114319573'
 from Socket[addr=/127.0.0.1,port=46740,localport=1984]
INFO	thread=1024	[null] closed connection Socket[addr=/127.0.0.1,port=46740,localport=1984]
There are 1 active/queued socket connections
INFO	thread=1036	[null] accepted connection Socket[addr=/127.0.0.1,port=46754,localport=1984]
INFO	thread=1036	[null] received product 'urn:usgs-product:us:shakemap:abcd1234:1746114319656'
 from Socket[addr=/127.0.0.1,port=46754,localport=1984]
INFO	thread=1036	[null] closed connection Socket[addr=/127.0.0.1,port=46754,localport=1984]
There are 1 active/queued socket connections
INFO	thread=1048	[null] accepted connection Socket[addr=/127.0.0.1,port=46762,localport=1984]
INFO	thread=1048	[null] received product 'urn:usgs-product:us:shakemap:abcd1234:1746114319887'
 from Socket[addr=/127.0.0.1,port=46762,localport=1984]
INFO	thread=1048	[null] closed connection Socket[addr=/127.0.0.1,port=46762,localport=1984]
INFO	thread=1	[null] sending product to Socket[addr=localhost/127.0.0.1,port=1984,localport=46772]
There are 1 active/queued socket connections
INFO	thread=1061	[null] accepted connection Socket[addr=/127.0.0.1,port=46772,localport=1984]
INFO	thread=1	[null] send complete Socket[addr=localhost/127.0.0.1,port=1984,localport=46772] response="Already have product"
INFO	thread=1061	[null] closed connection Socket[addr=/127.0.0.1,port=46772,localport=1984]
There are 1 active/queued socket connections
INFO	thread=1066	[null] accepted connection Socket[addr=/127.0.0.1,port=46776,localport=1984]
Thu May 01 15:45:20 UTC 2025
INFO	thread=1066	[null] received product 'urn:usgs-product:us:shakemap:abcd1234:1746114319948'
 from Socket[addr=/127.0.0.1,port=46776,localport=1984]
INFO	thread=1066	[null] closed connection Socket[addr=/127.0.0.1,port=46776,localport=1984]
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.