[B cannot is cast to java.lang.String

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.