问题描述:

环境:tomcat8+jdk1.8+centos7.

Failed to instantiate [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0

85拍拍的程序在本地部署没问题,在linux上部署之后,启动报出异常,如下图。实例化DefaultManageableImageCaptchaService失败,该类是spring生成验证码的插件。

解决方法:

第一步:在applicationcontext.xml中找到DefaultManageableImageCaptchaService,将其注释,如下图。

第二步:找到上图中imageCaptchaService被引用的类,将其引用注释掉。如下图。

总结:当启动异常时,看日志只关注了前几行,将重心关注在了shiro的配置上,殊不知该异常是由日志下半部分的DefaultManageableImageCaptchaService 无法实例化引起的连锁反应。所以异常出现时还是要仔细看日志。

部署程序出现Failed to instantiate com.octo.captcha.service.image.DefaultManageableImageCaptchaService...相关推荐

  1. Failed to instantiate file__from module__The specified list does

    Hello, I have a problem creating a site collection from my onet.xml. I guess the list "Pages&qu ...

  2. Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the desi

    Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the desi ...

  3. Failed to instantiate [org.springframework.test.context.web.ServletTestExecute

    有时候 启动springBoot 会报错,test时有时也是, 类似 Failed to instantiate [org.springframework.test.context.web.Servl ...

  4. 异常 Failed to instantiate [java.util.List]: Specified class is an interface

    异常 Failed to instantiate [java.util.List]: Specified class is an interface 参考文章: (1)异常 Failed to ins ...

  5. 探秘varian:优雅的发布部署程序

    上一篇文章<记一次诡异的故障排查经历>中有介绍到我们的部署程序varian,文章发布后有小伙伴对varian很感兴趣,今天就简单的介绍一下我们的varian,揭开她神秘的面纱~ 什么是va ...

  6. Jenkins 部署项目出现 Failed to connect to repository : Command git ls-remote -h http://gitlab. 128

    Jenkins 部署项目出现 : Failed to connect to repository : Command "git ls-remote -h https://gitlab.com ...

  7. 天翼云服务器部署程序不能外网被访问问题

    一.背景 在客户的天翼云服务上部署程序,部署成功之后,也添加安全协议和入站规则,还是不能被外网访问. 二.原因 我部署的程序是默认的80端口,而天翼的云服务的端口:80,8080,443,8443:都 ...

  8. 在天翼云服务器部署程序不能被外网访问的问题

    一.背景 在客户的天翼云服务上部署程序,部署成功之后,发现它的公网IP不能被外网访问,刚开始认为是没有把部署网站设置默认的网址端口80,最后发现并不是这个原因. 二.原因 1. 云服务要添加安全协议 ...

  9. 【springboot错误】 Failed to instantiate [org.springframework.transaction.interceptor.BeanFactoryTransac

    在起来的一个项目中,使用原有的配置,进行启动,发现一直有一个错误循环打印,都是fegin类: getTypeForFactoryBean:1516] : Bean creation exception ...

  10. springboot整合redis后整合es,报错Failed to instantiate [org.elasticsearch.client.transport.TransportClient]

    之前springboot项目整合了redis,现在整个es,启动项目后 发现报这个错误 [ERROR]Failed to instantiate [org.elasticsearch.client.t ...

最新文章

  1. 什么是生存分析(survival analysis)?
  2. 硕博士申请--阿德莱德大学 AI组介绍(含组员/顶会论文等)
  3. Android:ListView常见错位之CheckBox错位
  4. MySQL查询对NULL的处理
  5. 【Java线程】线程同步—synchronized Lock
  6. Linux安装JDK完整步骤
  7. linux 添加定时器,linux 添加定时任务
  8. Tensorflow:安装和配置
  9. 国内太极AI智能交易系统
  10. 【密码学基础】05 有限域
  11. Windows删除服务
  12. Java高并发编程实战6,通过AQS源码分析lock()锁机制
  13. 三星note10 android q,【极光ROM】-【三星NOTE10/NOTE10+/5G N97XX-9825】-【V8.0 Android-Q-TJ4】...
  14. JQuery 如何使用插件如何安装插件(详细讲解)
  15. 数据结构与算法碎碎念之运用递归处理问题
  16. iOS中常用的几种延时加载/执行的处理办法
  17. Android 12 行为变更,对应用产生的影响
  18. c语言结构体求分数和,C语言 定义一个表示分数的结构体,并求两个分数相加之和...
  19. C++调用两次析构函数原因
  20. multi-head GAT

热门文章

  1. C++ 工厂模式 总结分析
  2. Kali安装中文输入法
  3. arnold和redshift渲染器
  4. javaweb问题集锦: HikariPool-1 - Connection is not available, request timed out after 60001ms.
  5. 赛尔号服务器维护时间2月13,赛尔号2月13日更新福利活动汇总 重生之翼王者归来大暗黑天刻印放送...
  6. 基于SmartQQ协议的QQ自动回复机器人-1
  7. 电脑主板各部件详细图解
  8. IMU与Gyro及其它相关
  9. 解决docker+openvpn搭建完成后客户端能连接,但是无法访问互联网或其他机器
  10. 计算机组装流程详解,笔记本电脑组装全过程图文详解