Sharepoint 2013-Error occurred in deployment step ‘Add Solution’

10 篇文章 0 订阅
3 篇文章 0 订阅

Error

Error occurred in deployment step ‘Add Solution’: A feature with ID *************************** has already been installed in this farm.  Use the force attribute to explicitly re-install the feature

 

Reason

The same solution/feature has been already Installed in the Farm or the site collection.

 

Resolution

Find the Feature with the given Id in the solution. Open the feature in Visual Studio.

From the Property tab, Change the property “Always force Install” to “True”.

 

Hope it helps you.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]:报错:2019-11-01 09:31:20.005 \[pool-2-thread-1\] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task. 引用\[2\]:因为@Scheduled注解执行级别高于spring @Resource资源注入的级别,所以在服务启动时会优先进行调度操作,但这个时候spring还没有将容器中注入bean但是你实现定时调度又需要,所以导致自动注入失败。 引用\[3\]:示例: @Component @Lazy(value = false) public class AlertTask { @Autowired IOTDeviceService iOTDeviceService; /** * @Description 定时获取数据更新本地数据 * @param * @throws * @Return void * @Date 2019-11-01 09:15:17 * @Author WangKun **/ @Scheduled(cron = "0/5 * * * * ?")//每两分钟执行一次0 */2 * * * ? public void getEquipmentDataAlert() throws Exception { iOTDeviceService.findxx(); } 问题: - Unexpected error occurred in scheduled task 回答: 当在定时任务中发生"Unexpected error occurred in scheduled task"错误时,可能是由于定时任务的执行级别高于Spring的资源注入级别导致的。在服务启动时,定时任务会优先执行,但此时Spring尚未完成容器中的bean注入,因此自动注入失败。\[2\]为了解决这个问题,可以使用@Lazy注解来延迟加载bean,确保在定时任务执行之前,相关的依赖已经被注入。另外,还需要确保定时任务的方法上使用了@Scheduled注解,并设置了正确的cron表达式来指定任务的执行时间。\[3\] #### 引用[.reference_title] - *1* *3* [Unexpected error occurred in scheduled task](https://blog.csdn.net/WangKun_0612/article/details/102851520)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [异常 :Unexpected error occurred in scheduled task 。 Spring Boot定时任务调度注解@scheduled](https://blog.csdn.net/UpjQ16/article/details/129757623)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值