# # Cause:java.lang.reflect.UndeclaredThrowableException

Source: Internet
Author: User

# # # Cause:java.lang.reflect.UndeclaredThrowableException caused by: Org.apache.ibatis.exceptions.PersistenceException: # # # Error querying database. cause:java.lang.reflect.undeclaredthrowableexception### the error may existinch file[E:\codeBase\top713\superrescue-service\target\classes\mybatis\qc\techserviceeffiserviceentitymapper.xml]### the error may involve com.jn.ssr.superrescue.web.serviceeffi.dao.techserviceeffiserviceentitymapper.findtecheffi### the error occurred  whileexecuting a query caused by:net.sf.jsqlparser.parser.ParseException:Encountered" "(" "(""At line2, column8. Was expecting one of:<EOF>" as" ..." Do" ..." any" ..."KEY" ..."PERCENT" ..."END"...

MyBatis error, the execution of SQL in Navicat can be

Then write a simple SQL in <select></select>, initiate the sentiment, SQL can execute, explain mapper mapping and resultmap and Parmatertype and so on no error

Delete the fields of a SQL field and then execute it to determine which field is wrong and finally find out

SUM (o.service_type!='TC' as Repair_number,

This field, as if the MyBatis does not support the format of SUM (column name)

Finally, modify this field to:

  (Selectcountfromwhere service_type!=and=  as Repair_number,

You can do it.

# # Cause:java.lang.reflect.UndeclaredThrowableException

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.