org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.2.0-r422266:1244990 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)

Google Groups | Maxim Solodovnik | 3 years ago
  1. 0

    Re: Can'n start OM

    Google Groups | 3 years ago | Maxim Solodovnik
    org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is <openjpa-2.2.0-r422266:1244990 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
  2. 0

    WISE development setup...

    Google Groups | 3 years ago | Corey Brady
    org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
  3. 0

    Ban Manager can't connect to external database

    GitHub | 1 year ago | JiNJaProductionz
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 10 times. Giving up.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Server can stall without any visible errors on JdbcConnectionFactory.createConnection (issues with connectivity to database)

    YouTrack | 3 years ago
    jetbrains.buildServer.serverSide.db.UnexpectedDBException: Attempting to determine database type SQL exception: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  6. 0

    Timeouts, commands not functional, console getting spammed from HikariPool errors

    GitHub | 6 months ago | GeneralUsman
    java.sql.SQLException: Could not build prepared-query iterator for class me.confuser.banmanager.data.IpBanData

  1. linxiaolong 18 times, last 3 weeks ago
  2. Kialandei 1 times, last 1 month ago
  3. DoktorDoener666 41 times, last 2 weeks ago
  4. kjhdofjosvs 2 times, last 1 month ago
  5. Gatgeagent 1 times, last 2 months ago
22 more registered users
65 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.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)[na:1.7.0_25]
    2. java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)[na:1.7.0_25]
    3. java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)[na:1.7.0_25]
    4. java.net.AbstractPlainSocketImpl.connect(Unknown Source)[na:1.7.0_25]
    5. java.net.SocksSocketImpl.connect(Unknown Source)[na:1.7.0_25]
    6. java.net.Socket.connect(Unknown Source)[na:1.7.0_25]
    7. java.net.Socket.connect(Unknown Source)[na:1.7.0_25]
    8. java.net.Socket.<init>(Unknown Source)[na:1.7.0_25]
    9. java.net.Socket.<init>(Unknown Source)[na:1.7.0_25]
    9 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:259)[mysql-connector-java-5.1.22-bin.jar:na]
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)[mysql-connector-java-5.1.22-bin.jar:na]
    3. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2408)[mysql-connector-java-5.1.22-bin.jar:na]
    4. com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2253)[mysql-connector-java-5.1.22-bin.jar:na]
    5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2235)[mysql-connector-java-5.1.22-bin.jar:na]
    6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813)[mysql-connector-java-5.1.22-bin.jar:na]
    7. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)[mysql-connector-java-5.1.22-bin.jar:na]
    7 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.7.0_25]
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)[na:1.7.0_25]
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)[na:1.7.0_25]
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)[na:1.7.0_25]
    4 frames
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)[mysql-connector-java-5.1.22-bin.jar:na]
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)[mysql-connector-java-5.1.22-bin.jar:na]
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334)[mysql-connector-java-5.1.22-bin.jar:na]
    3 frames
  6. Commons DBCP
    BasicDataSource.getConnection
    1. org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)[commons-dbcp-jar-1.4.jar:1.4]
    2. org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)[commons-dbcp-jar-1.4.jar:1.4]
    3. org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)[commons-dbcp-jar-1.4.jar:1.4]
    4. org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)[commons-dbcp-jar-1.4.jar:1.4]
    5. org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)[commons-dbcp-jar-1.4.jar:1.4]
    6. org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)[commons-dbcp-jar-1.4.jar:1.4]
    6 frames
  7. OpenJPA Aggregate Jar
    EntityManagerFactoryImpl.createEntityManager
    1. org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:110)[openjpa-bundle-2.2.0.jar:2.2.0]
    2. org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:87)[openjpa-bundle-2.2.0.jar:2.2.0]
    3. org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:91)[openjpa-bundle-2.2.0.jar:2.2.0]
    4. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:603)[openjpa-bundle-2.2.0.jar:2.2.0]
    5. org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1510)[openjpa-bundle-2.2.0.jar:2.2.0]
    6. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:518)[openjpa-bundle-2.2.0.jar:2.2.0]
    7. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:443)[openjpa-bundle-2.2.0.jar:2.2.0]
    8. org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:104)[openjpa-bundle-2.2.0.jar:2.2.0]
    9. org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)[openjpa-bundle-2.2.0.jar:2.2.0]
    10. org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)[openjpa-bundle-2.2.0.jar:2.2.0]
    11. org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:968)[openjpa-bundle-2.2.0.jar:2.2.0]
    12. org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:959)[openjpa-bundle-2.2.0.jar:2.2.0]
    13. org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:337)[openjpa-bundle-2.2.0.jar:2.2.0]
    14. org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:325)[openjpa-bundle-2.2.0.jar:2.2.0]
    15. org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:228)[openjpa-bundle-2.2.0.jar:2.2.0]
    16. org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:212)[openjpa-bundle-2.2.0.jar:2.2.0]
    17. org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)[openjpa-bundle-2.2.0.jar:2.2.0]
    18. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)[openjpa-bundle-2.2.0.jar:2.2.0]
    19. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)[openjpa-bundle-2.2.0.jar:2.2.0]
    20. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60)[openjpa-bundle-2.2.0.jar:2.2.0]
    20 frames
  8. Spring ORM
    JpaTransactionManager.doBegin
    1. org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:445)[org.springframework.orm-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2. org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:366)[org.springframework.orm-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2 frames
  9. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)[org.springframework.transaction-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2. org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)[org.springframework.transaction-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)[org.springframework.transaction-jar-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    3 frames
  10. Spring AOP
    Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2 frames
  11. org.openmeetings.app
    MeetingReminderJob.doIt
    1. org.openmeetings.app.data.basic.Configurationmanagement$$EnhancerByCGLIB$$10f74c88.getConfValue(<generated>)[com.springsource.net.sf.cglib-2.2.0.jar:na]
    2. org.openmeetings.app.data.calendar.management.AppointmentLogic.doScheduledMeetingReminder(AppointmentLogic.java:389)[openmeetings-2.0.0-RELEASE.jar:na]
    3. org.openmeetings.app.quartz.scheduler.MeetingReminderJob.doIt(MeetingReminderJob.java:36)[openmeetings-2.0.0-RELEASE.jar:na]
    3 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_25]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.7.0_25]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.7.0_25]
    4. java.lang.reflect.Method.invoke(Unknown Source)[na:1.7.0_25]
    4 frames
  13. Spring Core
    MethodInvoker.invoke
    1. org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)[spring-core-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    1 frame
  14. Spring Context Support
    QuartzJobBean.execute
    1. org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:311)[spring-context-support-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113)[spring-context-support-3.1.1.RELEASE.jar:3.1.1.RELEASE]
    2 frames
  15. quartz
    SimpleThreadPool$WorkerThread.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:216)[quartz-1.8.5.jar:na]
    2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)[quartz-1.8.5.jar:na]
    2 frames