Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException thrown incorrectly #123

Open
ChrisGreenaway opened this issue Jul 14, 2017 · 0 comments
Open

IllegalStateException thrown incorrectly #123

ChrisGreenaway opened this issue Jul 14, 2017 · 0 comments

Comments

@ChrisGreenaway
Copy link
Contributor

ChrisGreenaway commented Jul 14, 2017

PassthroughCommunicatorService.closeClientConnection should not throw IllegalStateException - it should throw nothing.
PassthroughInvocationBuilder.invoke should not throw IllegalStateException - it should throw ConnectionClosedException.

Exception in thread "LeaseMonitorThread" java.lang.IllegalStateException: Connection already closed
at org.terracotta.passthrough.PassthroughConnection.close(PassthroughConnection.java:379)
at org.terracotta.passthrough.PassthroughCommunicatorService.closeClientConnection(PassthroughCommunicatorService.java:50)
at org.terracotta.lease.service.closer.ClientConnectionCloserImpl.closeClientConnection(ClientConnectionCloserImpl.java:35)
at org.terracotta.lease.service.closer.ProxyClientConnectionCloser.closeClientConnection(ProxyClientConnectionCloser.java:43)
at org.terracotta.lease.service.monitor.LeaseState.checkLease(LeaseState.java:113)
at org.terracotta.lease.service.monitor.LeaseState.checkLeases(LeaseState.java:87)
at org.terracotta.lease.service.monitor.LeaseMonitorThread.run(LeaseMonitorThread.java:40)
Exception in thread "LeaseMaintenanceThread" java.lang.IllegalStateException: Connection already closed
at org.terracotta.passthrough.PassthroughServerProcess.sendMessageToServer(PassthroughServerProcess.java:397)
at org.terracotta.passthrough.PassthroughConnectionState.createAndSend(PassthroughConnectionState.java:77)
at org.terracotta.passthrough.PassthroughConnectionState.sendNormal(PassthroughConnectionState.java:63)
at org.terracotta.passthrough.PassthroughConnection.invokeAndWait(PassthroughConnection.java:160)
at org.terracotta.passthrough.PassthroughConnection.invokeActionAndWaitForAcks(PassthroughConnection.java:152)
at org.terracotta.passthrough.PassthroughInvocationBuilder.invoke(PassthroughInvocationBuilder.java:113)
at org.terracotta.lease.LeaseAcquirerImpl.acquireLease(LeaseAcquirerImpl.java:33)
at org.terracotta.lease.LeaseMaintainerImpl.refreshLease(LeaseMaintainerImpl.java:57)
at org.terracotta.lease.LeaseMaintenanceThread.run(LeaseMaintenanceThread.java:38)
@ChrisGreenaway ChrisGreenaway changed the title IllegalStateException throwns incorrectly IllegalStateException thrown incorrectly Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant