org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'myDefault'

Hibernate JIRA | Johan Steiner | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Using Hibernate AnnotationConfiguration with Proxool and having hibernate.hbm2ddl.auto set to "update" leads to: org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'myDefault' at org.logicalcobwebs.proxool.configuration.XMLConfigurator.endElement(XMLConfigurator.java:198) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:87) at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:107) at org.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnectionProvider.java:120) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80) at org.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:46) at org.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:37) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055) The problem is that the ProxoolConnectionProvider is configured twice. First via the code in AnnotationConfiguration(Configuration).buildSessionFactory() line: 1054 Thread [main] (Suspended (breakpoint at line 120 in ProxoolConnectionProvider)) ProxoolConnectionProvider.configure(Properties) line: 120 ConnectionProviderFactory.newConnectionProvider(Properties) line: 80 SettingsFactory.createConnectionProvider(Properties) line: 349 SettingsFactory.buildSettings(Properties) line: 58 AnnotationConfiguration(Configuration).buildSettings() line: 1509 AnnotationConfiguration(Configuration).buildSessionFactory() line: 1054 LocalSessionFactoryBean.newSessionFactory(Configuration) line: 758 LocalSessionFactoryBean.afterPropertiesSet() line: 685 DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).invokeInitMethods(String, Object, RootBeanDefinition) line: 937 DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String, RootBeanDefinition, Object[]) line: 334 DefaultListableBeanFactory(AbstractBeanFactory).getBean(String, Class, Object[]) line: 222 DefaultListableBeanFactory(AbstractBeanFactory).getBean(String) line: 146 DefaultListableBeanFactory.preInstantiateSingletons() line: 271 ClassPathXmlApplicationContext(AbstractApplicationContext).refresh() line: 310 ClassPathXmlApplicationContext.<init>(String[], boolean) line: 80 ClassPathXmlApplicationContext.<init>(String[]) line: 65 And then via the code in AnnotationConfiguration(Configuration).buildSessionFactory() line: 1055 Thread [main] (Suspended (breakpoint at line 120 in ProxoolConnectionProvider)) ProxoolConnectionProvider.configure(Properties) line: 120 ConnectionProviderFactory.newConnectionProvider(Properties) line: 80 SchemaUpdate.<init>(Configuration, Properties) line: 46 SchemaUpdate.<init>(Configuration) line: 37 SessionFactoryImpl.<init>(Configuration, Mapping, Settings, SessionEventListenerConfig) line: 263 AnnotationConfiguration(Configuration).buildSessionFactory() line: 1055 LocalSessionFactoryBean.newSessionFactory(Configuration) line: 758 LocalSessionFactoryBean.afterPropertiesSet() line: 685 DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).invokeInitMethods(String, Object, RootBeanDefinition) line: 937 DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String, RootBeanDefinition, Object[]) line: 334 DefaultListableBeanFactory(AbstractBeanFactory).getBean(String, Class, Object[]) line: 222 DefaultListableBeanFactory(AbstractBeanFactory).getBean(String) line: 146 DefaultListableBeanFactory.preInstantiateSingletons() line: 271 ClassPathXmlApplicationContext(AbstractApplicationContext).refresh() line: 310 ClassPathXmlApplicationContext.<init>(String[], boolean) line: 80 ClassPathXmlApplicationContext.<init>(String[]) line: 65

    Hibernate JIRA | 1 decade ago | Johan Steiner
    org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'myDefault'
  2. 0

    Using Hibernate AnnotationConfiguration with Proxool and having hibernate.hbm2ddl.auto set to "update" leads to: org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'myDefault' at org.logicalcobwebs.proxool.configuration.XMLConfigurator.endElement(XMLConfigurator.java:198) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:87) at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:107) at org.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnectionProvider.java:120) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80) at org.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:46) at org.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:37) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055) The problem is that the ProxoolConnectionProvider is configured twice. First via the code in AnnotationConfiguration(Configuration).buildSessionFactory() line: 1054 Thread [main] (Suspended (breakpoint at line 120 in ProxoolConnectionProvider)) ProxoolConnectionProvider.configure(Properties) line: 120 ConnectionProviderFactory.newConnectionProvider(Properties) line: 80 SettingsFactory.createConnectionProvider(Properties) line: 349 SettingsFactory.buildSettings(Properties) line: 58 AnnotationConfiguration(Configuration).buildSettings() line: 1509 AnnotationConfiguration(Configuration).buildSessionFactory() line: 1054 LocalSessionFactoryBean.newSessionFactory(Configuration) line: 758 LocalSessionFactoryBean.afterPropertiesSet() line: 685 DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).invokeInitMethods(String, Object, RootBeanDefinition) line: 937 DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String, RootBeanDefinition, Object[]) line: 334 DefaultListableBeanFactory(AbstractBeanFactory).getBean(String, Class, Object[]) line: 222 DefaultListableBeanFactory(AbstractBeanFactory).getBean(String) line: 146 DefaultListableBeanFactory.preInstantiateSingletons() line: 271 ClassPathXmlApplicationContext(AbstractApplicationContext).refresh() line: 310 ClassPathXmlApplicationContext.<init>(String[], boolean) line: 80 ClassPathXmlApplicationContext.<init>(String[]) line: 65 And then via the code in AnnotationConfiguration(Configuration).buildSessionFactory() line: 1055 Thread [main] (Suspended (breakpoint at line 120 in ProxoolConnectionProvider)) ProxoolConnectionProvider.configure(Properties) line: 120 ConnectionProviderFactory.newConnectionProvider(Properties) line: 80 SchemaUpdate.<init>(Configuration, Properties) line: 46 SchemaUpdate.<init>(Configuration) line: 37 SessionFactoryImpl.<init>(Configuration, Mapping, Settings, SessionEventListenerConfig) line: 263 AnnotationConfiguration(Configuration).buildSessionFactory() line: 1055 LocalSessionFactoryBean.newSessionFactory(Configuration) line: 758 LocalSessionFactoryBean.afterPropertiesSet() line: 685 DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).invokeInitMethods(String, Object, RootBeanDefinition) line: 937 DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String, RootBeanDefinition, Object[]) line: 334 DefaultListableBeanFactory(AbstractBeanFactory).getBean(String, Class, Object[]) line: 222 DefaultListableBeanFactory(AbstractBeanFactory).getBean(String) line: 146 DefaultListableBeanFactory.preInstantiateSingletons() line: 271 ClassPathXmlApplicationContext(AbstractApplicationContext).refresh() line: 310 ClassPathXmlApplicationContext.<init>(String[], boolean) line: 80 ClassPathXmlApplicationContext.<init>(String[]) line: 65

    Hibernate JIRA | 1 decade ago | Johan Steiner
    org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'myDefault'
  3. 0

    Proxool: Proxy JDBC Connection Pool / Mailing Lists

    sourceforge.net | 7 months ago
    org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'MySQL-Pool'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Proxool: Proxy JDBC Connection Pool / Mailing Lists

    sourceforge.net | 7 months ago
    org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'MySQL-Pool'
  6. 0

    Couldn't load class com.timesten.jdbc.TimesTenDriver

    Oracle Community | 3 years ago | ilkinesrefli
    org.logicalcobwebs.proxool.ProxoolException: Couldn't load class com.timesten.jdbc.TimesTenDriver

    Root Cause Analysis

    1. org.logicalcobwebs.proxool.ProxoolException

      Attempt to register duplicate pool called 'myDefault'

      at org.logicalcobwebs.proxool.configuration.XMLConfigurator.endElement()
    2. org.logicalcobwebs.proxool
      XMLConfigurator.endElement
      1. org.logicalcobwebs.proxool.configuration.XMLConfigurator.endElement(XMLConfigurator.java:198)
      1 frame
    3. Java RT
      SAXParser.parse
      1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
      2. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      3. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      5. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      6. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      7. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      8. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      9. javax.xml.parsers.SAXParser.parse(Unknown Source)
      9 frames
    4. org.logicalcobwebs.proxool
      JAXPConfigurator.configure
      1. org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:87)
      2. org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:107)
      2 frames
    5. Hibernate
      ConnectionProviderFactory.newConnectionProvider
      1. org.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnectionProvider.java:120)
      2. org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
      2 frames
    6. Hibernate
      SchemaUpdate.<init>
      1. org.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:46)
      2. org.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:37)
      2 frames
    7. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263)
      1 frame
    8. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055)
      1 frame