weixin_43522534
2019-01-08 16:49 浏览 2.2k
已采纳

说是找不到实体类,但是是有的,有没有大佬

2019-01-08 16:34:30.883[DubboServerHandler-192.168.176.14:20802-thread-8] ERROR com.alibaba.dubbo.rpc.filter.ExceptionFilter 87 invoke - [DUBBO] Got unchecked and undeclared exception which called by 192.168.176.14. service: com.tydic.crm.api.business.interfaces.LogOpenNumberErrApi, method: logOpenNumberErrApi, exception: java.lang.RuntimeException: Can't find DataService: com.tydic.crm.db.po.LogOpenNumberErrPO, dubbo version: 2.5.3, current host: 192.168.176.14 java.lang.RuntimeException: Can't find DataService: com.tydic.crm.db.po.LogOpenNumberErrPO
at com.tydic.uda.service.factory.DefaultDataServiceFactory.getDataService(DefaultDataServiceFactory.java:178) ~[uda-1.3.1.2.jar:?]
at com.tydic.uda.service.factory.DefaultDataServiceFactory.getDataService(DefaultDataServiceFactory.java:187) ~[uda-1.3.1.2.jar:?]
at com.tydic.uda.service.support.DataServiceProxy.getDataService(DataServiceProxy.java:34) ~[uda-1.3.1.2.jar:?]
at com.tydic.uda.service.support.DataServiceProxy.query(DataServiceProxy.java:67) ~[uda-1.3.1.2.jar:?]
at com.tydic.crm.db.impl.LogOpenNumberErrServImpl.queryLogOpenNumberErrByRecover(LogOpenNumberErrServImpl.java:30) ~[crm_db.jar:?]
at com.tydic.crm.core.innet.impl.OperateLogOpenNUmberErrCoreServImpl.selectLogOpenNUmberErr(OperateLogOpenNUmberErrCoreServImpl.java:29) ~[crm_innet_core.jar:?]
at com.tydic.crm.core.innet.impl.OperateLogOpenNUmberErrCoreServImpl$$FastClassBySpringCGLIB$$2a2b258c.invoke() ~[crm_innet_core.jar:?]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) ~[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) ~[spring-tx-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) ~[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at com.tydic.crm.core.innet.impl.OperateLogOpenNUmberErrCoreServImpl$$EnhancerBySpringCGLIB$$e20fe48e.selectLogOpenNUmberErr() ~[crm_innet_core.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_141]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_141]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_141]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_141]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) ~[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]

             public JSONObject logOpenNumberErrApi() throws PubOutputDTO {
    Log4jUtil.logInfo("开户失败补偿调用", this.getClass());

    List<LogOpenNumberErrPO> list = logOpenNumberErrServ.queryLogOpenNumberErrByRecover("0");//出错报的是这一行
       JSONObject jsonObject = null;

    for (LogOpenNumberErrPO logList : list) {
        logger.info("查询LogOpenNumberErr结束,出参为"+logList);
        String errPoint = logList.getErr_point();
        logger.info("错误标志位Err_point,为"+errPoint);
        JSONObject jsonObjectInput = JSONObject.fromObject(logList.getInput_message());
        JSONObject jsonObjectOutput = JSONObject.fromObject(logList.getOutput_message());

        try{
            logger.info("开户重入服务入参jsonObjectInput:"+jsonObjectInput+"jsonObjectOutput:"+jsonObjectOutput);
            logOpenNumberErrCoreServ.LogOpenNumberErrCoreTrans(jsonObjectInput,  jsonObjectOutput, logList);
        }catch (PubOutputDTO e) {
            jsonObject = JSONObject.fromObject(e.toMap());
            logger.error("开户重入服务异常出参json形式:" + jsonObject.toString());
       }

   }
    return jsonObject;

}

            //这个是查询的实现
             @Override
public List<LogOpenNumberErrPO> queryLogOpenNumberErrByRecover(String recover) {
    return SERVICE.query(Condition.build("queryLogOpenNumberErrByRecover")
            .filter("recover", recover)
    );
}

            这个是xml里面的查询方法

              <query name="queryLogOpenNumberErrByRecover">
        SELECT
        LOG_OPEN_ID, ERR_POINT, ERR_MESSAGE, INPUT_MESSAGE, CREATE_DATE, UPDATE_DATE,RECOVER,REMARK,OUTPUT_MESSAGE
        FROM  LOG_OPEN_NUMBER_ERR WHERE RECOVER =  #{filter.recover}
    </query>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

3条回答 默认 最新

  • 已采纳
    weixin_43522534 String name = "还重复"; 2019-01-09 11:31

    已解决,问题原因太傻了,文件后没有跟.xml

    点赞 评论 复制链接分享
  • qq_29777207 张音乐 2019-01-08 23:53

    你不贴代码怎么看出来

    点赞 评论 复制链接分享
  • qq_37129624 ghq-yes 2019-01-09 09:53

    应该是配置实体类对应数据库的时候写的有问题吧,把那一段拿出来看下

    点赞 评论 复制链接分享

相关推荐