Problem phenomena:
After the framework uses SSO (Spring Security OAuth2.0), the Token has been produced. When using the Token to call the interface in Postman, the console appears URI is not absolute error
Analysis of the problem:
Use breakpoints to discover that the URI received in createRequest is empty when the request is created. The first reaction is that there is a problem with the configuration. After checking the YML file, no problem is found
In this file, see
After the framework uses SSO (Spring Security OAuth2.0), the Token has been produced. When using the Token to call the interface in Postman, the console appears URI is not absolute error
Analysis of the problem:
Use breakpoints to discover that the URI received in createRequest is empty when the request is created. The first reaction is that there is a problem with the configuration. After checking the YML file, no problem is found
In this file, see
@Bean
protected JwtAccessTokenConverter jwtTokenConverter() {
JwtAccessTokenConverter converter = new JwtAccessTokenConverter();
converter.setSigningKey("test");
return converter;
}
After the new step is commented out, add a symmetric key to the corresponding resource service, and use the PostMan call to succeed magically.
Actual reasons for follow-up research…
Read More:
- java.lang.IllegalArgumentException : URI scheme is not “file” error resolution
- java.lang.IllegalArgumentException: Receiver not registered:
- java.lang.IllegalArgumentException: column ‘_id’ does not exist
- java.lang.IllegalArgumentException: Index for header ‘XXX‘ is 1 but CSVRecord only has 1 value
- java.lang.IllegalArgumentException : could not get next sequenced ID for sequence name: Visitor solution
- java.lang.IllegalArgumentException : urlcoder exception resolution
- java.lang.IllegalArgumentException: Address 127.0.0.1:5672:5672 seems to contain an unquoted IPv6
- Error java.lang.IllegalArgumentException: Validation failed for query for method public abstract
- Springboot startup error: java.lang.IllegalArgumentException : Property ‘sqlSessionFactory’ or ‘sqlSessionTempla
- java.lang.IllegalArgumentException: error at ::0 can‘t find referenced pointcut anyMethod
- JMeter running error response code: non HTTP response code: java.lang.illegalargumentexception find and solve
- NS_ERROR_DOM_BAD_URI: Access to restricted URI denied
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- Spring nested exception is java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey
- Request processing failed;nested exception is java.lang.*
- Initialization of bean failed; nested exception is java.lang.StackOverflowError
- Caused by: java.lang.IllegalStateException: Ambiguou There is already ‘XXXXXXController‘ bean method
- exception is java.lang.LinkageError: loader constraint violation: loader
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH