java.io.IOException: Too many open files

Hard to say. May be share a code example?

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```