`

Failed to introspect annotations: interface com.xxx

阅读更多
在使用maven打包发布项目时发现在tomcat容器中正常启动!后来需要DEUG调试程序,在eclipse中使用了插件在Jetty中启动报错,当时纳闷了一下,why!?

错误信息:
2016-07-16 16:25:08 ERROR org.springframework.web.context.ContextLoader[307] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroSecurityFilter' defined in URL [file:/E:/ipharmacare/git/ipharmacare_platform/platform-service/target/classes/ctx-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in URL [file:/E:/ipharmacare/git/ipharmacare_platform/platform-service/target/classes/ctx-shiro.xml]: Cannot resolve reference to bean 'jdbcAuthenticationRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdbcAuthenticationRealm': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ipharmacare.platform.auth.service.AccountManager com.ipharmacare.platform.auth.service.AuthorizationRealm.accountManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ipharmacare.platform.auth.dao.UserMapper com.ipharmacare.platform.auth.service.AccountManager.userDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userMapper': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalStateException: Failed to introspect annotations: interface com.ipharmacare.platform.auth.dao.UserMapper
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
.
.
.


查看了jetty容器启动过程输出的日志,发现它在加载一个依赖项目时,spring版本和其它项目的版本不一致,发现后将其版本改成统一版本,重新启动,正常了!

所以,在使用maven构建项目时,应该建立父子项目,所有子项目的jar包都应交给父项目管理,即能保证jar包统一,同时方便升级!

以下问题也是版本(xerces)不统一造成:
java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
分享到:
评论

相关推荐

    Java异常之—-Caused by: java.lang.IllegalStateException: Method has too many Body parameters

    1、错误信息 异常:Caused by: java.lang....Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract com.iot.framework.core.response.CommResponse ...

    spring-boot-02-config.zip

    1. 配置文件 application.properties application.yml 2. 配置文件的作用:修改SpringBoot自动配置的默认值 3.... 格式:k:(空格)v 表示一对键值对(空格必须有),大小写敏感 以空格的缩进来控制层级...

    Failed to convert value of type ‘java.lang.String’ to required type ‘java.util.Date’; nested except

    消息 Failed to convert value of type 'java.lang.String' to required type 'java.util.Date'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to ...

    Prisma:用于 Node.js 和 TypeScript 的下一代 ORM-开源

    如果您已经有一个数据库,您就不必从头开始煞费苦心地创建它——prisma introspect 会照顾到这一点。 Prisma Client 是一个查询构建器,它组合了您的思考方式,并从 Prisma 模式中自动生成了为您的应用量身定制的...

    【放大招】Advanced Apple Debugging & Reverse Engineering v2.0

    The Power of Python: Use LLDB’s Python module to create powerful custom debugging commands to introspect and augment existing programs. Nothing is Secret: Learn how to use DTrace, a dynamic tracing ...

    Advanced Apple Debugging & Reverse Engineering

    The Power of Python: Use LLDB's Python module to create powerful custom debugging commands to introspect and augment existing programs. Nothing is Secret: Learn how to use DTrace, a dynamic tracing ...

    introspect-typed

    var matchType = require ( 'introspect-typed' ) . matchType ; matchType ( String , 'yes!' ) ; // => true matchType ( Number , 'no...' ) ; // => false 获取匹配器功能 var matchType = require ( '...

    introspect.github.io

    introspect.github.io

    dbus-introspect:Bourne Shell脚本反省DBus

    DBus-introspect是一个实用工具,用于查看DBus接口的元数据,它使用Bourne Shell脚本编写,可以帮助开发者理解和探索DBus服务提供的接口、方法、信号以及其参数。在深入探讨这个话题之前,我们首先需要了解DBus的...

    Introspect-crx插件

    语言:English 每天为您的一天评分,描述和反思。 您是否希望自己可以回顾过去的生活,知道...**所有数据均使用高级加密标准(AES)进行加密**有用的链接源代码:https://github.com/YashTotale/introspect报告错误:...

    SwiftUI-Introspect:自检SwiftUI的底层UIKit组件

    对SwiftUI的内省 Introspect允许您获取SwiftUI视图的基础UIKit或AppKit元素。 例如,使用Introspect,您可以访问UITableView来修改分隔符,或者访问UINavigationController来自定义选项卡栏。这个怎么运作Introspect...

    NSDictionary-Introspect:Objective-C 运行时属性自省

    是推荐的安装NSDictionary-Introspect 。 只需Podfile添加到您的Podfile : 播客文件 pod 'NSDictionary-Introspect' 用法 要使用此代码,请覆盖 NSObject 的 description 方法,如下所示: - ( NSString *)...

    GraphQL Java

    One very important property of GraphQL is that it is statically typed: the server knows exactly the shape of every object you can query and any client can actually "introspect" the server and ask for...

    prisma-case:给出内省的schema.prisma合理的命名约定

    从prisma@2.19.0 , prisma introspect将根据您的数据库约定将其模型命名为1:1。 很好,但是如果您的数据库纯粹是snake_case ,或者如果您的表缺少任何通用约定,那可能会更糟,这会使自动生成的客户端代码使用起来...

    prisma-case-format:给出内省的schema.prisma合理的命名约定

    从prisma@2.19.0 , prisma introspect将根据您的数据库约定将其模型命名为1:1。 很好,但是如果您的数据库纯粹是snake_case ,或者如果您的表缺少任何通用约定,那可能会更糟,这会使自动生成的客户端代码使用起来...

    npm-cache-introspect:内省你的本地 npm 缓存

    请勿使用:正在进行的工作 这是对制作一个将内省 npm 缓存的模块的探索。 它在当前形式下不可用。 想法 给定一组模块名称和版本... 创建一个单独的本地可搜索 npm 缓存,您可以从 registry.npmjs.com 和/或本地缓存填充

    为 Ibatis 2.3.4 构建增强的 Apache Ibator 实体类生成工具

    Ibator will introspect a database table (or many tables) and will generate iBATIS artifacts that can be used to access the table(s). This abates some of the initial nuisance of setting up objects and...

Global site tag (gtag.js) - Google Analytics