org.hibernate.exception.GenericJDBCException: Could not open connection

GitHub | MFratane | 3 months ago
  1. 0

    Problema capitulo 16, Deploy do .war

    GitHub | 3 months ago | MFratane
    org.hibernate.exception.GenericJDBCException: Could not open connection
  2. 0

    Remote neo4j connection Permission denied error

    Stack Overflow | 7 months ago | user3889148
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.neo4j.ogm.exception.ResultProcessingException: Could not obtain new Transaction:
  3. 0

    MySQL connection error to online database

    Stack Overflow | 6 months ago | Max Fratane
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 380#258906079

    GitHub | 1 month ago | aethera1
    java.net.SocketException: Permission denied: connect
  6. 0

    Error invoking method. Failed to launch JVM

    GitHub | 1 month ago | tsesis
    java.net.SocketException: Permission denied: connect

  1. Александр Пастухов 1 times, last 7 months ago
  2. Aria Pahlavan 47 times, last 1 week ago
  3. mauritius 3 times, last 2 weeks ago
  4. VeryRedChris 1 times, last 4 weeks ago
  5. mauritius 1 times, last 3 months ago
6 more registered users
39 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    Permission denied: connect

    at java.net.DualStackPlainSocketImpl.connect0()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.connect0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:589)
    8 frames
  3. MySQL jdbc
    MysqlIO.<init>
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:213)
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:297)
    2 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  5. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:389)
    2. com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1038)
    3. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:338)
    4. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2237)
    5. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2270)
    6. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)
    7. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    8. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
    8 frames
  6. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  7. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:389)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)
    3 frames
  8. Commons DBCP
    BasicDataSource.getConnection
    1. org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
    2. org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
    3. org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
    4. org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
    5. org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
    6. org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    7. org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    7 frames
  9. org.hibernate.engine
    DatasourceConnectionProviderImpl.getConnection
    1. org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:139)
    1 frame
  10. Hibernate
    StatementPreparerImpl.prepareQueryStatement
    1. org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:380)
    2. org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:228)
    3. org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54)
    4. org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
    5. org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
    6. org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:235)
    7. org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:171)
    8. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:63)
    9. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:162)
    10. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:186)
    11. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:160)
    11 frames
  11. org.hibernate.loader
    AbstractLoadPlanBasedEntityLoader.load
    1. org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.prepareQueryStatement(AbstractLoadPlanBasedLoader.java:257)
    2. org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeQueryStatement(AbstractLoadPlanBasedLoader.java:201)
    3. org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:137)
    4. org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:102)
    5. org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:186)
    5 frames
  12. Hibernate
    SessionImpl.get
    1. org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4126)
    2. org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:503)
    3. org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:468)
    4. org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:213)
    5. org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:275)
    6. org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:151)
    7. org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1106)
    8. org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:176)
    9. org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2587)
    10. org.hibernate.internal.SessionImpl.get(SessionImpl.java:991)
    10 frames
  13. br.com.livro
    CarroService$$FastClassBySpringCGLIB$$4ac6becb.invoke
    1. br.com.livro.domain.HibernateDAO.get(HibernateDAO.java:42)
    2. br.com.livro.domain.CarroDAO.findById(CarroDAO.java:17)
    3. br.com.livro.domain.CarroService.getCarro(CarroService.java:16)
    4. br.com.livro.domain.CarroService$$FastClassBySpringCGLIB$$4ac6becb.invoke(<generated>)
    4 frames
  14. Spring Core
    MethodProxy.invoke
    1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    1 frame
  15. Spring AOP
    CglibAopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:649)
    1 frame
  16. br.com.livro
    CarroTest.testListaCarros
    1. br.com.livro.domain.CarroService$$EnhancerBySpringCGLIB$$b07f24a9.getCarro(<generated>)
    2. br.com.livro.test.CarroTest.testListaCarros(CarroTest.java:19)
    2 frames