# Help please related to java plugin eclipse, Executor class under aerospike.client.command package, waitTillComplete method

**URL:** <https://discuss.aerospike.com/t/help-please-related-to-java-plugin-eclipse-executor-class-under-aerospike-client-command-package-waittillcomplete-method/3105>\
**Category:** Java Client\
**Created:** [June 28, 2016, 10:19pm UTC](https://discuss.aerospike.com/t/help-please-related-to-java-plugin-eclipse-executor-class-under-aerospike-client-command-package-waittillcomplete-method/3105 "2016-06-28T22:19:25Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![Brian](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/brian/32/2211_2.png) [@Brian](https://discuss.aerospike.com/u/Brian)\
**Post date:** [July 11, 2016, 5:53pm UTC](https://discuss.aerospike.com/t/help-please-related-to-java-plugin-eclipse-executor-class-under-aerospike-client-command-package-waittillcomplete-method/3105/30 "2016-07-11T17:53:33Z")

</div>

It’s not clear what is really happening in your case. There is some sort of networking issue going on. I suggest adding logging statements in the client code to obtain more information about cause of failure and run packaged scan example.

For example:

MultiCommand.java: in readBytes() add

```auto
    Log.info("readBytes " + length);

```

Connection.java: right before socket.connect() add

```auto
    Log.info("Connect " + address);

```

Node.java: in getConnection() change first block to following:

```auto
    Log.info("getConnection " + timeoutMillis);
    while ((conn = connectionQueue.poll()) != null) {        
        if (conn.isValid()) {
            try {
                conn.setTimeout(timeoutMillis);
                Log.info("found connection " + conn);
                return conn;
            }
            catch (Exception e) {
                // Set timeout failed. Something is probably wrong with timeout
                // value itself, so don't empty queue retrying. Just get out.
                Log.info("connection failed " + conn);
                closeConnection(conn);
                throw new AerospikeException.Connection(e);
            }
        }
        Log.info("connection not valid " + conn);
        closeConnection(conn);
    }
    Log.info("create connection");

```

---

_[View the full topic](https://discuss.aerospike.com/t/help-please-related-to-java-plugin-eclipse-executor-class-under-aerospike-client-command-package-waittillcomplete-method/3105)._
