org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.kie.internal.runtime.StatefulKnowledgeSession]: Factory method 'JPAKnowledgeServiceFactory' threw exception; nested exception is java.lang. IllegalStateException: java.lang.reflect.InvocationTargetException


Solutions on the web

Solution icon of googlegroups
Failed to instantiate [org.kie.internal.runtime.StatefulKnowledgeSession]: Factory method 'JPAKnowledgeServiceFactory' threw exception; nested exception is java.lang. IllegalStateException: java.lang.reflect.InvocationTargetException

Solution icon of googlegroups
via Google Groups by Adrien Guichard, 4 months ago
Failed to instantiate [org.apache.solr.client.solrj.SolrServer]: Factory method 'solrServer' threw exception; nested exception is java.lang.ClassCastException: org.apache.solr.client.solrj.impl.HttpSolrServer cannot be cast to org.apache.solr.client.solrj.SolrServer

Solution icon of github
Failed to instantiate [org.neo4j.ogm.session.SessionFactory]: Factory method 'getSessionFactory' threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 1

Solution icon of stackoverflow
Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is java.lang.UnsupportedClassVersionError: RestOauthUrlMappings : Unsupported major.minor version 52.0

Solution icon of github
Failed to instantiate [org.neo4j.ogm.session.SessionFactory]: Factory method 'getSessionFactory' threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 1

Solution icon of web
via codegur.com by Unknown author, 1 year ago
Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is java.lang.UnsupportedClassVersionError: RestOauthUrlMappings : Unsupported major.minor version 52.0

Solution icon of github
via GitHub by alicehelen
, 1 year ago
Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is java.lang.UnsupportedClassVersionError: RestOauthUrlMappings : Unsupported major.minor version 52.0

Solution icon of stackoverflow
Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'connectionFactory' threw exception; nested exception is javax.naming.NameNotFoundException: The name jms/QueueConnectionFactory is not associated with this context

Solution icon of googlegroups
Failed to instantiate [net.shibboleth.utilities.java.support.xml.BasicParserPool]: Factory method 'parserPool' threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.org.apache.xerces.internal.util.SecurityManager from [Module "deployment.cas.war:main" from Service Module Loader]

Solution icon of github
via GitHub by carlvine500
, 1 year ago
Failed to instantiate [org.redisson.RedissonExt]: Factory method 'create' threw exception; nested exception is java.lang.I llegalStateException: RedissonExt Exception,businessName=PG_TRADING_USER_CART_LOCK,redis nodes(host1:port1,host2:port2...)=[10.xx.56.157:8332, 10.xx.56.157:8302, 10.xx.56.157:8303]

Stack trace

org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.kie.internal.runtime.StatefulKnowledgeSession]: Factory method 
'JPAKnowledgeServiceFactory' threw exception; nested exception is java.lang.
IllegalStateException: java.lang.reflect.InvocationTargetException
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago