WebApp (Tomcat-jdbc) Pooled DB connection throwing abandon exception

前端 未结 8 2082
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 08:18

I have been browsing SO for some time, and chewing my hat in the process, but cannot find an exact match to my problem.
For short, I am getting superb stack trace (org.a

8条回答
  •  天涯浪人
    2020-12-08 08:53

    I can see this thread is old, but I had a similar problem, and I eventually found the reason that caused it, so I would like to share if it can help someone:

    I used the connection from a restful web-service. In the interface at the serverside handling request from the client, I had accidentially put 'throws IOException' in the method signature:

    @GET
    @Path("/databases")
    @Produces(MediaType.APPLICATION_JSON)
    public String getAllDatabases() throws IOException {
    

提交回复
热议问题