Error - CancelledKeyException

Error - CancelledKeyException

book

Article ID: KB0075734

calendar_today

Updated On:

Products Versions
TIBCO Streaming 7

Description

We're seeing the following in our logs:
com.streambase.sb.sbd.net.NetServer - Main acceptor has exception: CancelledKeyException"
Can you give us any potential causes of this exception or even a description of what this exception tells us?

Issue/Introduction

Error - CancelledKeyException

Resolution

There are two likely scenarios:
  1. A client opened a connection to the StreamBase Server URI, and immediately closed it while the server was getting the remote socket address to complete the connection, or:
  2. The connection was closed by a third party, e.g. 'sbadmin killConnection' was used, or a network device was reset.
In either case, the client involved should report that the connection was lost, and if programmed to do so, reconnect.