org.hibernate.exception.JDBCConnectionException: Cannot open connection

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

org.hibernate.exception.JDBCConnectionException: Cannot open connection
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.(Socket.java:366)
at java.net.Socket.(Socket.java:180)
at org.apache.derby.client.net.NetAgent.(Unknown Source)
at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
at org.apache.derby.client.am.Connection.(Unknown Source)
at org.apache.derby.client.net.NetConnection.(Unknown Source)
at org.apache.derby.client.net.NetConnection40.(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.BorrowedConnectionProxy.invoke(BorrowedConnectionProxy.java:50)
at undefined.$Proxy20.rollback(Unknown Source)
at br.gov.sp.fazenda.dsen.model.dao.ControleVersaoDAO.executarScript(ControleVersaoDAO.java:53)
at br.gov.sp.fazenda.dsen.model.business.ControleVersaoBusiness.a(ControleVersaoBusiness.java:42)
at br.gov.sp.fazenda.dsen.model.business.ControleVersaoBusiness.verificarVersao(ControleVersaoBusiness.java:27)
at br.gov.sp.fazenda.dsen.model.facade.SistemaFacade.verificarVersao(SistemaFacade.java:81)
at br.gov.sp.fazenda.dsen.controller.DSENSystemController.a(DSENSystemController.java:82)
at br.gov.sp.fazenda.dsen.controller.DSENSystemController.a(DSENSystemController.java:53)
at br.gov.sp.fazenda.dsen.controller.DSENSystemController.start(DSENSystemController.java:62)
at br.gov.sp.fazenda.dsen.view.DSENDesktop$1.run(DSENDesktop.java:110)

Users with the same issue

4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 4 months ago
949 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.