java.lang.IllegalStateException

No thread-bound request: use RequestContextFilter

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web112

  • via Unknown by Erik Pilz,
  • via Unknown by Erik Pilz,
  • Stack trace

    • java.lang.IllegalStateException: No thread-bound request: use RequestContextFilter at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:62) at org.springframework.web.context.request.SessionScope.get(SessionScope.java:80) at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:62) at org.springframework.web.context.request.SessionScope.get(SessionScope.java:80) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:276) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:850) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:624) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:411)

    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

    ivanszkypeterivanszkypeter
    2 times, last one
    batwalrus76batwalrus76
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Andreas HäberAndreas Häber
    Once,
    serious2monkeysserious2monkeys
    6 times, last one
    19 more bugmates