Skip to content
Advertisement

StackOverFlowError on instance LoggerFactory.getLogger on a SessionBean

Environment:

  • Jboss 7.2
  • Java 11

I am getting java.lang.StackOverFlowError on the instance of LoggerFactory.getLogger but I have no clue why is that. It is getting org.jboss.logmanner instead of org.slf4j, does it sound right?

Error log

JavaScript

SecurityBean

JavaScript

pom.xml dependencies that could be related

JavaScript

Effecctive pom.xml

JavaScript

Advertisement

Answer

I don’t kwow why the log doesn’t show any problem with jsf beans but the problem was that have circular dependencies to each other with injections @ManagedProperty. So the only I have to do is to make them independent.

SecurityBean

JavaScript

SessionBean

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement