java.lang.IllegalArgumentException: argument type mismatch

IDEA reports java.lang.IllegalArgumentException: argument type mismatch error when running the SpringBoot project Operating environment: JDK8 + Mysql8.0 Specific error message java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_261] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_261] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_261] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_261] at org.apache.ibatis.reflection.invoker.MethodInvoker.invoke(MethodInvoker.java:44) ~[mybatis-3.5.6.jar:3.5.6] at org.apache.ibatis.reflection.wrapper.BeanWrapper.setBeanProperty(BeanWrapper.java:180) ~[mybatis-3.5.6.jar:3.5.6] at org.apache.ibatis.reflection.wrapper.BeanWrapper.set(BeanWrapper.java:59) ~[mybatis-3.5.6.jar:3.5.6] at org.apache.ibatis.reflection.MetaObject.setValue(MetaObject.java:140) ~[mybatis-3.5.6.jar:3.5.6] at com.baomidou.mybatisplus.core.MybatisParameterHandler.populateKeys(MybatisParameterHandler.java:131) ~[mybatis-plus-core-3.4.1.jar:3.4.1] at com.baomidou.mybatisplus.core.MybatisParameterHandler.process(MybatisParameterHandler.java:112) ~[mybatis-plus-core-3.4.1.jar:3.4.1] […]

Caused by: java.lang.IllegalArgumentException: error Type referred to is not an annotation type: com

Caused by: java.lang.IllegalArgumentException: error Type referred to is not an annotation type: com$scorpios$secondkill$aop$ServiceLock wrong content error analysis Solution Error content Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled. 2023-05-21 18:36:04.817 ERROR 13908 — [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘objectMapperConfigurer’ defined in […]

Cause: java.lang.IllegalArgumentException: argument type mismatch

1. Problem description A user corresponds to multiple roles. When using mybatis to perform three-table association query on users, user role intermediate tables, and role tables, an error occurs: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.example.de mo. entity.User with invalid types (Long,String,String,String,long,String,LocalDateTime,LocalDateTime,List) or values (1,dfasdf,pdai,[email protected],1212121213,afsdfsaf,2021-09- 08T17:09:15,2021-09-08T17:09:15,admin). […]

java.lang.IllegalArgumentException: the length of secret key must be greater than or equal to 32 bytes

2023-03-31 01:41:02,127 WARN [WatchFileCenter] start close 2023-03-31 01:41:02,129 WARN [WatchFileCenter] start to shutdown this watcher which is watch : F:\Document_Nacos\\ acos-server- 2.2.1\\ acos\conf 2023-03-31 01:41:02,134 WARN [WatchFileCenter] already closed 2023-03-31 01:41:02,136 WARN [NotifyCenter] Start destroying Publisher 2023-03-31 01:41:02,139 WARN [NotifyCenter] Destruction of the end 2023-03-31 01:41:02,141 ERROR Nacos failed to start, please see F:\Document_Nacos\\ acos-server-2.2.1\\ […]

[IDEA startup error java.lang.IllegalArgumentException: Could not resolve placeholder ‘airs.appkey’ in value “]

The error is as follows: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘arisController’: Unsatisfied dependency expressed through field ‘arisIframeService’; nested exception is org.springframework.beans.farrory.BeanCreationException: bean with name ‘arisIframeService’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘airs.appkey’ in value “${airs.appkey}” at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) […]

java.lang.IllegalArgumentException: error Type referred to is not an annotation type: com$xxl$job$c

1. Preface I thought it was a simple version dependency upgrade, but it couldn’t start after the upgrade upgraded version spring-cloud version Hoxton.SR12 spring-cloud-alibaba version 2.2.9.RELEASE springboot version 2.3.12.RELEASE Error Message java.lang.IllegalArgumentException: error Type referred to is not an annotation type: com x x l xxl xxljob c o r e core corehandler a no […]

Java running error [Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘airs.appkey’]

The error is as follows, org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘arisController’: Unsatisfied dependency expressed through field ‘arisIframeService’; nested exception is org.springframework.beans.factory.rea beanCreationException: Error c arisIframeService’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘airs.appkey’ in value “${airs.appkey}” at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) […]

java.lang.IllegalArgumentException: Cannot pass null or empty values to constructor at org.springf

java.lang.IllegalArgumentException: Cannot pass null or empty values to constructor at org.springframework.security.core.userdetails.User.(User.java:113) at org.springframework.security.core.userdetails.User$UserBuilder.build(User.java:535) at com.example.mz.spingsecurity_jwt_deepstudy.SpingsecurityJwtDeepstudyApplicationTests.testcreateJwtToken(SpingsecurityJwtDeepstudyApplicationTests.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:124) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:74) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:202) at […]

[Solved] nacos registry, gateway register failed java.lang.IllegalArgumentException: no server available

When I tried the project of the Grain Mall today, I registered the gateway gateway to nacos and reported an error, and the service could not be registered. The error is as follows: After searching the information, I found that there is a problem with the configuration of nacos How to write in application.properties: #spring.cloud.nacos.config.server-addr=127.0.0.1:8848 […]

[Solved] Cause: java.lang.IllegalArgumentException: invalid comparison: java.util.Date and java.lang.String

bug log: Error using SQL execution in mybatis mapper.xml. Error output: Cause: java.lang.IllegalArgumentException: invalid comparison: java.util.Date and java.lang.String nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: java.lang.IllegalArgumentException: invalid comparison: java.util.Date and java.lang.String ### The error may exist in class path resource [com/score/analysis/mapper/ScoreMapper.xml] ### The error may involve com.score.mapper.ScoreMapper.updateScore ### The error occurred while executing […]