SocketProductReceiverTest

5

tests

0

failures

0

ignored

0.539s

duration

100%

successful

Tests

Test Duration Result
testReceiveBinaryNoDeflate 0.134s passed
testReceiveBinaryWithDeflate 0.046s passed
testReceiveExistingProduct 0.012s passed
testReceiveXmlNoDeflate 0.261s passed
testReceiveXmlWithDeflate 0.086s passed

Standard error

There are 1 active/queued socket connections
INFO	thread=1042	[null] accepted connection Socket[addr=/127.0.0.1,port=51654,localport=1984]
INFO	thread=1042	[null] received product 'urn:usgs-product:us:shakemap:abcd1234:1751040978661'
 from Socket[addr=/127.0.0.1,port=51654,localport=1984]
INFO	thread=1042	[null] closed connection Socket[addr=/127.0.0.1,port=51654,localport=1984]
There are 1 active/queued socket connections
INFO	thread=1055	[null] accepted connection Socket[addr=/127.0.0.1,port=51668,localport=1984]
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.
INFO	thread=1055	[null] received product 'urn:usgs-product:us:shakemap:abcd1234:1751040978747'
 from Socket[addr=/127.0.0.1,port=51668,localport=1984]
INFO	thread=1055	[null] closed connection Socket[addr=/127.0.0.1,port=51668,localport=1984]
There are 1 active/queued socket connections
Fri Jun 27 16:16:19 UTC 2025
INFO	thread=1068	[null] accepted connection Socket[addr=/127.0.0.1,port=51674,localport=1984]
INFO	thread=1068	[null] received product 'urn:usgs-product:us:shakemap:abcd1234:1751040979009'
 from Socket[addr=/127.0.0.1,port=51674,localport=1984]
INFO	thread=1068	[null] closed connection Socket[addr=/127.0.0.1,port=51674,localport=1984]
INFO	thread=1	[null] sending product to Socket[addr=localhost/127.0.0.1,port=1984,localport=49590]
There are 1 active/queued socket connections
INFO	thread=1082	[null] accepted connection Socket[addr=/127.0.0.1,port=49590,localport=1984]
INFO	thread=1	[null] send complete Socket[addr=localhost/127.0.0.1,port=1984,localport=49590] response="Already have product"
INFO	thread=1082	[null] closed connection Socket[addr=/127.0.0.1,port=49590,localport=1984]
There are 1 active/queued socket connections
INFO	thread=1087	[null] accepted connection Socket[addr=/127.0.0.1,port=49592,localport=1984]
INFO	thread=1087	[null] received product 'urn:usgs-product:us:shakemap:abcd1234:1751040979069'
 from Socket[addr=/127.0.0.1,port=49592,localport=1984]
INFO	thread=1087	[null] closed connection Socket[addr=/127.0.0.1,port=49592,localport=1984]