{"action":"closed","issue":{"url":"https://api.github.com/repos/jdbi/jdbi/issues/380","repository_url":"https://api.github.com/repos/jdbi/jdbi","labels_url":"https://api.github.com/repos/jdbi/jdbi/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/jdbi/jdbi/issues/380/comments","events_url":"https://api.github.com/repos/jdbi/jdbi/issues/380/events","html_url":"https://github.com/jdbi/jdbi/issues/380","id":157519950,"number":380,"title":"no more data to read from socket","user":{"login":"enorrmann","id":1006434,"avatar_url":"https://avatars.githubusercontent.com/u/1006434?v=3","gravatar_id":"","url":"https://api.github.com/users/enorrmann","html_url":"https://github.com/enorrmann","followers_url":"https://api.github.com/users/enorrmann/followers","following_url":"https://api.github.com/users/enorrmann/following{/other_user}","gists_url":"https://api.github.com/users/enorrmann/gists{/gist_id}","starred_url":"https://api.github.com/users/enorrmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enorrmann/subscriptions","organizations_url":"https://api.github.com/users/enorrmann/orgs","repos_url":"https://api.github.com/users/enorrmann/repos","events_url":"https://api.github.com/users/enorrmann/events{/privacy}","received_events_url":"https://api.github.com/users/enorrmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-30T15:08:37Z","updated_at":"2016-05-31T13:23:01Z","closed_at":"2016-05-31T13:23:01Z","body":"I'm initializing DBI inside a singleton and running it on a Glassfish container with the latest JDBC driver, the application runs ok, but after a day or so, it throws a \"no more data to read from socket\" when I try ti execute a select.\r\nthe code is as follows\r\n\r\n```\r\npublic SimpleDbAccess(DataSource dataSource) {\r\n       this.dbi = new DBI(dataSource);\r\n       this.handle = dbi.open();\r\n    }\r\n```\r\n\r\nand the select part\r\n```\r\n    public List<SimpleDto> select(String queryString) {\r\n        Query<Map<String, Object>> query = handle.createQuery(queryString);\r\n        Query<SimpleDto> blas = query.map(new SimpleDtoMapper());\r\n        List<SimpleDto> resultList = blas.list();\r\n        return resultList;\r\n    }\r\n\r\n```"}}
{"actor":{"display_login":"enorrmann"}}