I have a building block I wrote against Q2 2016, and with some assistance from our great developer community, I had found that I couldn't simply close the connection using con.close(), but I had to use ConnectionManager.ReleaseDefaultConnection(con) to actually close the connection. My building block has been working great in Q2 2016, but now I've upgraded our test instance to Q2 2017, and I'm once again getting "A connection was left open" warnings in my bb-services log. There's another error appearing, immediately before this error:
“Automatically closing connection that was opened by: - java.lang.Exception”
But there's none of my code referenced in the stack trace, and I'm not sure why that would be leaving the connection open, nor how to close it. I once again turn to your collective wisdom to figure out how to make sure these connections are being closed.