java.lang.UnsupportedOperationException: public abstract java.lang.Object javax.servlet.ServletRequest.getAttribute(java.lang.String) is not supported

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

Solutions on the web

via GitHub by dhajdukis
, 1 year ago
public abstract java.lang.Object javax.servlet.ServletRequest.getAttribute(java.lang.String) is not supported
via Stack Overflow by Mick Knutson
, 4 months ago
public abstract java.lang.String javax.servlet.ServletRequest.getServerName() is not supported
java.lang.UnsupportedOperationException: public abstract java.lang.Object javax.servlet.ServletRequest.getAttribute(java.lang.String) is not supported
at com.sun.proxy.$Proxy357.getAttribute(Unknown Source)
at javax.servlet.ServletRequestWrapper.getAttribute(ServletRequestWrapper.java:120)
at org.springframework.web.util.UrlPathHelper.getContextPath(UrlPathHelper.java:323)
at org.springframework.web.util.UrlPathHelper.getPathWithinApplication(UrlPathHelper.java:224)
at org.springframework.web.util.UrlPathHelper.getPathWithinServletMapping(UrlPathHelper.java:177)
at org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher$DefaultMatcher.matches(MvcRequestMatcher.java:108)
at org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.matches(MvcRequestMatcher.java:61)
at org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource.getAttributes(DefaultFilterInvocationSecurityMetadataSource.java:95)
at org.springframework.security.taglibs.authz.AbstractAuthorizeTag.authorizeUsingUrlCheck(AbstractAuthorizeTag.java:171)
at org.springframework.security.taglibs.authz.AbstractAuthorizeTag.authorize(AbstractAuthorizeTag.java:102)

Users with the same issue

You are the first who have seen this exception.

Write tip

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