When calling close() on a working Connection I'm getting the following exception thrown:
org.simpleframework.transport.connect.ConnectionException: Close error
at org.simpleframework.transport.connect.Listener.close(Listener.java:124) ~[simple-4.1.21.jar:na]
at org.simpleframework.transport.connect.ListenerManager.close(ListenerManager.java:108) ~[simple-4.1.21.jar:na]
at org.simpleframework.transport.connect.SocketConnection.close(SocketConnection.java:140) ~[simple-4.1.21.jar:na]
at com.ravn.indexserver.IndexServer.stop(IndexServer.java:93) ~[ravn-utilities-1.2.3-SNAPSHOT.jar:na]
at com.ravn.pipeline.connector.AutonomyReceiver.execute(AutonomyReceiver.java:126) ~[ravnpipeline-0.9-SNAPSHOT.jar:na]
at org.openpipeline.scheduler.PipelineJobWrapper.execute(PipelineJobWrapper.java:89) [ravnpipeline-0.9-SNAPSHOT.jar:na]
at org.quartz.core.JobRunShell.run(JobRunShell.java:216) [quartz-1.8.4.jar:na]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [quartz-1.8.4.jar:na]
Caused by: java.io.IOException: Thread interrupted
at org.simpleframework.transport.reactor.Latch.close(Latch.java:68) ~[simple-4.1.21.jar:na]
at org.simpleframework.transport.reactor.ActionDistributor.close(ActionDistributor.java:230) ~[simple-4.1.21.jar:na]
at org.simpleframework.transport.reactor.DirectReactor.stop(DirectReactor.java:105) ~[simple-4.1.21.jar:na]
at org.simpleframework.transport.connect.Listener.close(Listener.java:122) ~[simple-4.1.21.jar:na]
... 7 common frames omitted
Testing seems to suggest it's only happening when running my application as a Windows service. The exception is thrown and ActionDistributor threads don't get cleaned up. Can anyone shed some light on what might be causing this?
Thanks,
Adam