部署程序出现Failed to instantiate com.octo.captcha.service.image.DefaultManageableImageCaptchaService...
问题描述:
环境: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...相关推荐
- 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 ...
- 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 ...
- Failed to instantiate [org.springframework.test.context.web.ServletTestExecute
有时候 启动springBoot 会报错,test时有时也是, 类似 Failed to instantiate [org.springframework.test.context.web.Servl ...
- 异常 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 ...
- 探秘varian:优雅的发布部署程序
上一篇文章<记一次诡异的故障排查经历>中有介绍到我们的部署程序varian,文章发布后有小伙伴对varian很感兴趣,今天就简单的介绍一下我们的varian,揭开她神秘的面纱~ 什么是va ...
- 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 ...
- 天翼云服务器部署程序不能外网被访问问题
一.背景 在客户的天翼云服务上部署程序,部署成功之后,也添加安全协议和入站规则,还是不能被外网访问. 二.原因 我部署的程序是默认的80端口,而天翼的云服务的端口:80,8080,443,8443:都 ...
- 在天翼云服务器部署程序不能被外网访问的问题
一.背景 在客户的天翼云服务上部署程序,部署成功之后,发现它的公网IP不能被外网访问,刚开始认为是没有把部署网站设置默认的网址端口80,最后发现并不是这个原因. 二.原因 1. 云服务要添加安全协议 ...
- 【springboot错误】 Failed to instantiate [org.springframework.transaction.interceptor.BeanFactoryTransac
在起来的一个项目中,使用原有的配置,进行启动,发现一直有一个错误循环打印,都是fegin类: getTypeForFactoryBean:1516] : Bean creation exception ...
- springboot整合redis后整合es,报错Failed to instantiate [org.elasticsearch.client.transport.TransportClient]
之前springboot项目整合了redis,现在整个es,启动项目后 发现报这个错误 [ERROR]Failed to instantiate [org.elasticsearch.client.t ...
最新文章
- 什么是生存分析(survival analysis)?
- 硕博士申请--阿德莱德大学 AI组介绍(含组员/顶会论文等)
- Android:ListView常见错位之CheckBox错位
- MySQL查询对NULL的处理
- 【Java线程】线程同步—synchronized Lock
- Linux安装JDK完整步骤
- linux 添加定时器,linux 添加定时任务
- Tensorflow:安装和配置
- 国内太极AI智能交易系统
- 【密码学基础】05 有限域
- Windows删除服务
- Java高并发编程实战6,通过AQS源码分析lock()锁机制
- 三星note10 android q,【极光ROM】-【三星NOTE10/NOTE10+/5G N97XX-9825】-【V8.0 Android-Q-TJ4】...
- JQuery 如何使用插件如何安装插件(详细讲解)
- 数据结构与算法碎碎念之运用递归处理问题
- iOS中常用的几种延时加载/执行的处理办法
- Android 12 行为变更,对应用产生的影响
- c语言结构体求分数和,C语言 定义一个表示分数的结构体,并求两个分数相加之和...
- C++调用两次析构函数原因
- multi-head GAT
热门文章
- C++ 工厂模式 总结分析
- Kali安装中文输入法
- arnold和redshift渲染器
- javaweb问题集锦: HikariPool-1 - Connection is not available, request timed out after 60001ms.
- 赛尔号服务器维护时间2月13,赛尔号2月13日更新福利活动汇总 重生之翼王者归来大暗黑天刻印放送...
- 基于SmartQQ协议的QQ自动回复机器人-1
- 电脑主板各部件详细图解
- IMU与Gyro及其它相关
- 解决docker+openvpn搭建完成后客户端能连接,但是无法访问互联网或其他机器
- 计算机组装流程详解,笔记本电脑组装全过程图文详解