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

  1. ,

    You need to set the type property in your bean XML file. <property name="targetType" value="some value" />

Solutions on the web

via Spring JIRA by Hugh Hamill, 1 year ago
Could not find current request via RequestContextHolder. Is this being called from a Spring MVC handler?
via Spring JIRA by Hugh Hamill, 1 year ago
Could not find current request via RequestContextHolder. Is this being called from a Spring MVC handler?
via GitHub by nickgrealy
, 2 years ago
via Stack Overflow by Romell
, 1 year ago
Could not find current request via RequestContextHolder. Is this being called from a Spring MVC handler?
via Stack Overflow by Don Branson
, 2 years ago
Could not find current request via RequestContextHolder. Is this being called from a Spring MVC handler?
via Stack Overflow by Adrian Reyes
, 2 years ago
java.lang.IllegalStateException: Could not find current request via RequestContextHolder. Is this being called from a Spring MVC handler? at org.springframework.util.Assert.state(Assert.java:392)[spring-core-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.hateoas.mvc.ControllerLinkBuilder.getCurrentRequest(ControllerLinkBuilder.java:242)[spring-hateoas-0.19.0.RELEASE.jar:na] at org.springframework.hateoas.mvc.ControllerLinkBuilder.getBuilder(ControllerLinkBuilder.java:189)[spring-hateoas-0.19.0.RELEASE.jar:na] at org.springframework.hateoas.mvc.ControllerLinkBuilderFactory.linkTo(ControllerLinkBuilderFactory.java:121)[spring-hateoas-0.19.0.RELEASE.jar:na] at org.springframework.hateoas.mvc.ControllerLinkBuilder.linkTo(ControllerLinkBuilder.java:138)[spring-hateoas-0.19.0.RELEASE.jar:na]