org.apache.openjpa.persistence.PersistenceException: *Cannot create PoolableConnectionFactory (Must specify at least one slave host to connect to for master/slave replication load-balancing functionality)*

openjpa-users | Abhishek Bafna | 12 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    mysql master/slave connection issue

    openjpa-users | 12 months ago | Abhishek Bafna
    org.apache.openjpa.persistence.PersistenceException: *Cannot create PoolableConnectionFactory (Must specify at least one slave host to connect to for master/slave replication load-balancing functionality)*
  2. 0

    mysql master/slave connection issue

    openjpa-users | 12 months ago | Abhishek Bafna
    org.apache.openjpa.persistence.PersistenceException: *Cannot create PoolableConnectionFactory (Must specify at least one slave host to connect to for master/slave replication load-balancing functionality)*
  3. 0

    Error when creating EntityManager in JPA2

    Stack Overflow | 6 years ago | stuff22
    org.apache.openjpa.persistence.PersistenceException: java.lang.String incompatible with javax.sql.DataSource
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.apache.openjpa.lib.jdbc.ReportingSQLException, MySQL, OpenJPA, Geronimo

    Stack Overflow | 6 years ago | AR3Y35
    org.apache.openjpa.persistence.PersistenceException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE = innodb' at line 1 {stmnt 1243851750 CREATE TABLE ADMIN_USER (admin_id BIGINT NOT NULL AUTO_INCREMENT, first_name VARCHAR(255), last_name VARCHAR(255), user_name VARCHAR(255), PRIMARY KEY (admin_id)) TYPE = innodb} [code=1064, state=42000]
  6. 0

    ServiceMix / Blueprint / JPA Integration

    Stack Overflow | 4 years ago | scubadev
    org.apache.openjpa.persistence.PersistenceException: [javax.sql.DataSource]

  1. MoYapro 2 times, last 9 months ago
2 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. org.apache.openjpa.persistence.PersistenceException

    *Cannot create PoolableConnectionFactory (Must specify at least one slave host to connect to for master/slave replication load-balancing functionality)*

    at org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary()
  2. OpenJPA Aggregate Jar
    EntityManagerFactoryImpl.createEntityManager
    1. org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:102)
    2. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:603)
    3. org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1518)
    4. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:531)
    5. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456)
    6. org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:120)
    7. org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
    8. org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
    9. org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:967)
    10. org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:958)
    11. org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:644)
    12. org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:203)
    13. org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
    14. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
    15. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)
    16. org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60)
    16 frames
  3. org.apache.oozie
    Services.loadServices
    1. org.apache.oozie.service.JPAService.getEntityManager(JPAService.java:500)
    2. org.apache.oozie.service.JPAService.init(JPAService.java:201)
    3. org.apache.oozie.service.Services.setServiceInternal(Services.java:386)
    4. org.apache.oozie.service.Services.setService(Services.java:372)
    5. org.apache.oozie.service.Services.loadServices(Services.java:305)
    5 frames