[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)

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

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.