Sun. Reflect. Nativemethodaccessorimpl. Invoke0 (Native Method) Sun. Reflect. Nativemethodaccessorimpl. Invoke(Nativemethodaccessorimpl. Java: the) Sun. Reflect. Delegatingmethodaccessorimpl. Invoke(Delegatingmethodaccessorimpl. Java: -) Java. Lang. Reflect. Method. Invoke(Method. Java:597) org. Springframework. AOP. Support. Aoputils. Invokejoinpointusingreflection(aoputils. Java:307) org. Springframework. AOP. Framework. Reflectivemethodinvocation. Invokejoinpoint(reflectivemethodinvocation. Java:182) org. Springframework. AOP. Framework. Reflectivemethodinvocation. Proceed(reflectivemethodinvocation. Java:149) org. Springframework. Transaction. Interceptor. Transactioninterceptor. Invoke(Transactioninterceptor. Java:106) org. Springframework. AOP. Framework. Reflectivemethodinvocation. Proceed(reflectivemethodinvocation. Java:171) org. Springframework. AOP. Framework. Jdkdynamicaopproxy. Invoke(Jdkdynamicaopproxy. Java:204) $Proxy 22. Getallnoticelist(Unknown Source)
Yesterday afternoon to find the bug, this error code, Baidu Google a bit, probably can know what caused the error, but some errors are very fine, such as this, so record down, hope not to repeat again.
First paste on the previous Baidu,
This error is generally type mismatch, what type of specific, to see what data you are, the data from the database is garbled, but the database shows the normal utf-8, because of the use of nested query, nested query using the Chinese string concatenation. Then to Sparta, in fact, this error is easy to avoid, because the test is used when the local database appears, with the server database nested query will not be garbled. It should be a MySQL setup problem, but it can be solved by adding the code to the SQL statement.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
[B cannot is cast to java.lang.String