After setting up the spring security oauth2 environment, conduct interface test with postman:
Postman returned an error message:
The idea console outputs the following warnings:
WARN 4344 — [nio-8082-exec-1] o.s.s.o.provider.endpoint.TokenEndpoint : Handling error: NestedServletException, Handler dispatch failed; nested exception is java.lang.StackOverflowError
After investigation, it is found that a method in the spring security configuration class securityconfiguration written by myself is wrong and written as: AuthenticationManager. The correct method name should be authenticationmanagerbean.
The complete and correct method is:
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
return super.authenticationManagerBean();
}
Retest after modification and return the correct result:
If you encounter any problems during browsing, please leave me a message in the comment area below.
Read More:
- [Solved] Request processing failed; nested exception is java.lang.NullPointerException
- POI Export Excel Error: HTTP Status 500 – Request processing failed; nested exception is java.lang.NullPointerException
- [Solved] swagger3 Error: org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
- Spark Error: java.lang.StackOverflowError [How to Solve]
- Springboot integrates redis factory method ‘redisconnectionfactory’ threw exception; nested exception is
- JPA @ManyToMany java.lang.StackOverflowError: null [How to Solve]
- Hive ERROR Failed with exception java.io.IOException:java.lang.IllegalArgumentException
- Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: [How to Solve]
- Springboot Run Error: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler
- Request processing failed; nested exception is com.alibaba.fastjson.JSONException: can not cast to J
- [Solved] Non-fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library “libmmkv.so“ not found
- [Solved] Error: exception: java.lang.reflect.InvocationTargetException: null
- Spring Connect Redis Error: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MOVED 12910 172.16.4.99:6379
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- [Solved] Springboot Reflection calls ServiceImpl Error: java.lang.NullPointerException, mapper is null
- [Maven Error] Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
- Win assembleDebug Downloading gradle.zip Error: Exception in thread “main” java.lang.RuntimeException: javax.net.ssl.SSLExce
- Solution to java.lang.IllegalArgumentException: Property’dataSource’ is required
- [How to Solve] java.lang.IllegalArgumentException: Request header is too large