# Could not send query unexpected end of exception

**URL:** https://community.dremio.com/t/could-not-send-query-unexpected-end-of-exception/767
**Category:** Uncategorized
**Created:** [February 15, 2018, 2:58am UTC](https://community.dremio.com/t/could-not-send-query-unexpected-end-of-exception/767 "2018-02-15T02:58:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HLNA](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@HLNA](https://community.dremio.com/u/HLNA)
#### Post date: [February 15, 2018, 2:58am UTC](https://community.dremio.com/t/could-not-send-query-unexpected-end-of-exception/767/1 "2018-02-15T02:58:36Z")

</div>

Received following error on a query (which sometimes work). I am on community edition of 1.4.

> _Caused by: java.sql.SQLNonTransientConnectionException: (conn:706080479) Could not send query: unexpected end of exception, read 0 bytes from 4_  
> Blockquote

In all cases, it seems to be **MariaDB jdbc** client ? Seems there is a jira card on it [https://jira.mariadb.org/browse/CONJ-348](https://jira.mariadb.org/browse/CONJ-348)

Will try to use " useServerPrepStmts=false" in jdbc url… but, appreciate if any solution available.

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [February 15, 2018, 6:22am UTC](https://community.dremio.com/t/could-not-send-query-unexpected-end-of-exception/767/2 "2018-02-15T06:22:16Z")

</div>

Hi @HLNA

Looks like this is the same issue your experiencing on [Query joining multiple datasources does not return](https://community.dremio.com/t/query-joining-multiple-datasources-does-not-return/753/6)

We have replied in that thread and will keep you posted

Kindly let us know if you have any other questions

Thanks,  
@balaji.ramaswamy

---

<div class="post-metadata">

### Author: ![HLNA](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@HLNA](https://community.dremio.com/u/HLNA)
#### Post date: [February 15, 2018, 9:32am UTC](https://community.dremio.com/t/could-not-send-query-unexpected-end-of-exception/767/3 "2018-02-15T09:32:05Z")

</div>

Sure @balaji.ramaswamy . Mostly, I am seeing the error happening after some elapsed time since the server start. Apart from that the main connection issues are on mysql using mariadb and redshift.

Occassionally, some tables will be shown as not found … but, on retrying the same query will work fine. Not sure why.

If still the resolution is being worked upon; will wait.
