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)
The bug that I was looking for yesterday afternoon. This error code, Baidu Google a bit. Probably can know what causes the mistake. But some of the mistakes are very thin. For example, this. So write it down and hope not to do it again.
First paste on the previous Baidu.
This error is usually a type mismatch. What type of detail, depends on what data you are, query data from the database is garbled. But the database shows the normal utf-8, because of the use of nested queries, nested queries using the Chinese string concatenation. And then in Sparta, in fact, this error is very easy to avoid, because the test time with the local database only appears, with the server database nested query will not garbled. It should be a MySQL setup issue. However, this can be solved by adding code to the SQL statement.
[B cannot is cast to java.lang.String