SPRINGAOP Agent Error problem

Source: Internet
Author: User
Tags log log

1  Public classBasedatasyncpushjobImplementsstatefuljob{2 3     /*** Log*/4     Private Static FinalLog log = Logfactory.getlog (basedatasyncpushjob.class);5     6 @Autowired7     PrivateIjobmappingservice Jobmappingservice;8 @Autowired9     PrivateIbasedatasyncpushservice Basedatasyncpushservice;Ten      One @Override A      Public voidExecute (Jobexecutioncontext context)throwsjobexecutionexception { -         //local server IP value -         Try { the             ////local server IP value -String hostaddress =Httpclientutil.getlocalip (); -             //Print Log -Log.info ("Tianjin UNPA basic information synchronization started:"); +Jobmappingentity jobmappingentity=Jobmappingservice.querybyipandjobtype (hostaddress, jobconstant.job_type_tianfang_push); -             //non-null checksum for jobmappingentity +             if(NULL==jobmappingentity) { A                 return; at             } -             //Print Log -Log.info ("Get Object jobmappingentity:" +jobmappingentity.tostring ()); -             /** - * Call the service sent by Tianjin Postal Administration -              */ in basedatasyncpushservice.executepushemp (jobmappingentity); - basedatasyncpushservice.executepushexpressvehicle (jobmappingentity); to basedatasyncpushservice.executepushsalesdepartment (jobmappingentity); +             //Print Log -Log.info ("Tianjin UNPA basic information synchronization completed"); the}Catch(Exception e) { *             //Printing Stack information $Log.error ("Tianjin UNPA basic information synchronous throw anomaly", e);Panax Notoginseng             //run out of exception -             Throw Newjobexecutionexception (e); the         } +     } A}

Spring Error:

1[16/12/24 09:05:27:917] ERROR job. Basedatasyncpushjob: Tianjin Postal Administration basic information synchronous throw anomaly2 org.mybatis.spring.MyBatisSystemException:nested exception is Org.apache.ibatis.builder.xml.IncompleteStatementException:Could not find result map Com.deppon.dpap.module.tianfangpush.server.entity.BaseDataSyncPushEntity.baseDataSyncPush3At Org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible (Mybatisexceptiontranslator.java : 73)4At Org.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke (sqlsessiontemplate.java:346)5 At Com.sun.proxy. $Proxy 20.selectList (Unknown Source)6At Org.mybatis.spring.SqlSessionTemplate.selectList (sqlsessiontemplate.java:189)7At Com.deppon.dpap.module.monitor.server.dao.impl.JobMappingDao.queryByJobMappingEntity (jobmappingdao.java:98)8At Com.deppon.dpap.module.monitor.server.service.impl.JobMappingService.queryByIPAndJobtype ( jobmappingservice.java:102)9At Com.deppon.dpap.module.tianfangpush.server.job.BaseDataSyncPushJob.execute (basedatasyncpushjob.java:39)TenAt Org.quartz.core.JobRunShell.run (jobrunshell.java:223) OneAt Org.quartz.simpl.simplethreadpool$workerthread.run (simplethreadpool.java:549) A caused by:org.apache.ibatis.builder.xml.IncompleteStatementException:Could not find result map Com.deppon.dpap.module.tianfangpush.server.entity.BaseDataSyncPushEntity.baseDataSyncPush -At Org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap (mapperbuilderassistant.java:283) -At Org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement (mapperbuilderassistant.java:221) theAt Org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode (xmlstatementbuilder.java:66) -At Org.apache.ibatis.session.Configuration.buildAllStatements (configuration.java:497) -At Org.apache.ibatis.session.Configuration.getMappedStatement (configuration.java:434) -At Org.apache.ibatis.session.Configuration.getMappedStatement (configuration.java:428) +At Org.apache.ibatis.session.defaults.DefaultSqlSession.selectList (defaultsqlsession.java:77) -At Org.apache.ibatis.session.defaults.DefaultSqlSession.selectList (defaultsqlsession.java:72) + At sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) AAt Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57) atAt Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) -At Java.lang.reflect.Method.invoke (method.java:606) -At Org.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke (sqlsessiontemplate.java:338) -... 7 More -caused By:java.lang.IllegalArgumentException:Result Maps collection does not contain value forCom.deppon.dpap.module.tianfangpush.server.entity.BaseDataSyncPushEntity.baseDataSyncPush -At Org.apache.ibatis.session.configuration$strictmap.get (configuration.java:594) inAt Org.apache.ibatis.session.Configuration.getResultMap (configuration.java:370) -At Org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap (mapperbuilderassistant.java:281) to... More


The reason is not
Jobmappingentity  jobmappingentity=jobmappingservice.querybyipandjobtype (hostaddress, JobConstant.JOB_ Type_tianfang_push);

This line, but because the whole class of production agent in the process of error,

The check found is:

Basedatasyncpushservice.executepushemp (jobmappingentity); basedatasyncpushservice.executepushexpressvehicle (jobmappingentity); basedatasyncpushservice.executepushsalesdepartment (jobmappingentity);
This three line mybaties file Resultmap caused by a write error

SPRINGAOP Agent Error problem

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.