今天在打包项目时出现这个报错,日常编译并没有问题,不知是为什么。
CloudVisitApply syncData = CloudVisitApply.builder()
.visitorName(user.getName())
.visitorCompanyName(cloudCompany.getName())
.idType(user.getIdType())
.idNumber(user.getIdNumber())
.visitorMobile(user.getMobile())
.visitorImageBase64(imageBase64)
.userUid(cloudUser.getUid())
.visitorId(cloudVisitApply.getVisitorId())
.visitorFaceId(cloudVisitApply.getVisitorFaceId())
.carNumber(cloudVisitApply.getCarNumber())
.visitType(cloudVisitApply.getVisitType())
.visitDescription(cloudVisitApply.getVisitDescription())
.status("2")
.visitDate(cloudVisitApply.getVisitDate())
.visitTimeStart(cloudVisitApply.getVisitTimeStart())
.visitTimeEnd(cloudVisitApply.getVisitTimeEnd())
.applyTime(cloudVisitApply.getApplyTime())
.build();
//异步推送到消息队列
RabbitMessage msg = new RabbitMessage(EXCHANGE, ROUTE_KEY + "." + cloudCompany.getClientCompanyUid(), Json.toJson(syncData));//打包项目提示这里报错
rabbitProducer.sendMessage(msg);
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/admin/IdeaProjects/git/visitor-cloud/wk-app/wk-web/src/main/java/cn/wizzer/app/visitor/modules/services/impl/CloudVisitApplyServiceImpl.java:[119,130] 不兼容的类型: java.lang.String无法转换为org.nutz.lang.util.NutMap
[ERROR] /Users/admin/IdeaProjects/git/visitor-cloud/wk-app/wk-web/src/main/java/cn/wizzer/app/visitor/modules/services/impl/CloudVisitApplyServiceImpl.java:[162,132] 不兼容的类型: java.lang.String无法转换为org.nutz.lang.util.NutMap
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] wk-app ............................................. SUCCESS [ 0.010 s]
[INFO] wk-web ............................................. FAILURE [ 16.879 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.211 s
[INFO] Finished at: 2018-07-31T11:22:34+08:00
[INFO] Final Memory: 27M/385M