org.apache.openejb.OpenEJBException: org.apache.xbean.recipe.ConstructionException: Error invoking factory method: public static javax.sql.CommonDataSource org.apache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration) throws java.lang.IllegalAccessException,java.lang.InstantiationException,java.io.IOException: Error invoking factory method: public static javax.sql.CommonDataSource org.apache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration) throws java.lang.IllegalAccessException,java.lang.InstantiationException,java.io.IOException

ha-jdbc | smithh032772 | 4 years ago
  1. 0

    Configure HA-JDBC to use/replace Tomcat 7.0.35 JDBC pooling

    ha-jdbc | 4 years ago | smithh032772
    org.apache.openejb.OpenEJBException: org.apache.xbean.recipe.ConstructionException: Error invoking factory method: public static javax.sql.CommonDataSource org.apache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration) throws java.lang.IllegalAccessException,java.lang.InstantiationException,java.io.IOException: Error invoking factory method: public static javax.sql.CommonDataSource org.apache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration) throws java.lang.IllegalAccessException,java.lang.InstantiationException,java.io.IOException
  2. 0

    != null not catching nulls

    Stack Overflow | 2 years ago | Reticality
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [Te-webmaster] Apache Tomcat 7 Error

    vmware.com | 11 months ago
    java.lang.NullPointerException
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.lang.NullPointerException

    No message provided

    at java.util.Hashtable.put()
  2. Java RT
    Hashtable.put
    1. java.util.Hashtable.put(Unknown Source)
    1 frame
  3. net.sf.hajdbc
    DataSource.getConnection
    1. net.sf.hajdbc.management.DefaultMBeanRegistrar.createAttributes(DefaultMBeanRegistrar.java:134)
    2. net.sf.hajdbc.management.DefaultMBeanRegistrar.register(DefaultMBeanRegistrar.java:73)
    3. net.sf.hajdbc.sql.DatabaseClusterImpl.start(DatabaseClusterImpl.java:755)
    4. net.sf.hajdbc.util.concurrent.LifecycleRegistry.get(LifecycleRegistry.java:76)
    5. net.sf.hajdbc.util.concurrent.LifecycleRegistry.get(LifecycleRegistry.java:34)
    6. net.sf.hajdbc.sql.CommonDataSource.getProxy(CommonDataSource.java:86)
    7. net.sf.hajdbc.sql.DataSource.getConnection(DataSource.java:60)
    7 frames
  4. org.apache.tomcat
    ConnectionPool.<init>
    1. org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:224)
    2. org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:180)
    3. org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
    4. org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
    5. org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:486)
    6. org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:144)
    6 frames
  5. OpenEJB :: TomEE :: JDBC
    TomEEDataSourceCreator.pool
    1. org.apache.tomee.jdbc.TomEEDataSourceCreator.pool(TomEEDataSourceCreator.java:65)
    1 frame
  6. OpenEJB :: OSGi :: Core
    DataSourceFactory.create
    1. org.apache.openejb.resource.jdbc.pool.PoolDataSourceCreator.poolManaged(PoolDataSourceCreator.java:72)
    2. org.apache.openejb.resource.jdbc.DataSourceFactory.create(DataSourceFactory.java:115)
    2 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  8. Apache XBean :: Reflect
    AbstractRecipe.create
    1. org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:998)
    2. org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
    3. org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
    4. org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
    5. org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
    5 frames
  9. OpenEJB :: OSGi :: Core
    OpenEJB.init
    1. org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2106)
    2. org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:490)
    3. org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:409)
    4. org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:148)
    5. org.apache.openejb.OpenEJB.init(OpenEJB.java:296)
    5 frames
  10. OpenEJB :: TomEE :: Catalina
    ServerListener.lifecycleEvent
    1. org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:246)
    2. org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:134)
    3. org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:122)
    3 frames
  11. Glassfish Core
    Catalina.load
    1. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    2. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    3. org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
    4. org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
    5. org.apache.catalina.startup.Catalina.load(Catalina.java:640)
    6. org.apache.catalina.startup.Catalina.load(Catalina.java:665)
    6 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  13. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
    2 frames