org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource.jee': Invocation of init method failed; nested exception is org.springframework.jndi.TypeMismatchNamingException: Object of type [class weblogic.jdbc.common.internal.RmiDataSource_1031_WLStub] available at JNDI location [XXXDS] is not assignable to [javax.sql.DataSource]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via spring.io by Unknown author

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

,
via atlassian.com by Unknown author

Upgrade to Confluence 3.5.5 or install the patch as explained in the details.

Solutions on the web

via Stack Overflow by Hima
, 1 year ago
Error creating bean with name 'dataSource.jee': Invocation of init method failed; nested exception is org.springframework.jndi.TypeMismatchNamingException: Object of type [class weblogic.jdbc.common.internal.RmiDataSource_1031_WLStub] available at JNDI location [XXXDS] is not assignable to [javax.sql.DataSource]
via GitHub by sebastianmontero
, 2 years ago
Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
via Stack Overflow by Amar
, 1 year ago
Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
via baidu.com by Unknown author, 2 years ago
Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration.
via cnblogs.com by Unknown author, 2 years ago
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]
via Stack Overflow by Seongwon-Choi
, 1 month ago
Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.aop.support.AopUtils.selectInvocableMethod(Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/reflect/Method;
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource.jee': Invocation of init method failed; nested exception is org.springframework.jndi.TypeMismatchNamingException: Object of type [class weblogic.jdbc.common.internal.RmiDataSource_1031_WLStub] available at JNDI location [XXXDS] is not assignable to [javax.sql.DataSource]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)

Users with the same issue

Once, 1 month ago
4 times, 1 month ago
2 times, 2 months ago
Once, 2 months ago
40 times, 10 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.