- 浏览: 1380982 次
- 性别:
- 来自: 江西
文章分类
- 全部博客 (287)
- oracle (30)
- Java (73)
- MySQL (16)
- Myeclipse/eclipse (12)
- javascript (15)
- JSP/Servlet (7)
- maven (14)
- AJAX (2)
- JQuery (9)
- tomcat (8)
- spring (21)
- Linux (28)
- PHP (9)
- UI (1)
- 编程错误及处理 (38)
- 多线程 (18)
- hibernate (10)
- Web Service (3)
- struts2 (6)
- log4j (3)
- SVN (4)
- DWR (1)
- lucene (1)
- 正则表达式 (4)
- jstl (2)
- SSL (3)
- POI (1)
- 网络编程 (1)
- 算法 (2)
- xml (4)
- 加密解密 (1)
- IO (7)
- jetty (2)
- 存储过程 (1)
- SQL Server (1)
- MongoDB (1)
- mybatis (1)
- ETL (1)
- Zookeeper (1)
- Hadoop (5)
- Redis (1)
- spring cloud (1)
最新评论
-
ron.luo:
牛逼,正解!
maven设定项目编码 -
lichaoqun:
java.sql.SQLException: Can't call commit when autocommit=true -
Xujian0000abcd:
Thanks...
Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the clas -
renyuan2ni:
[i][b][u]引用[list]
[*][img][flas ...
Manual close is not allowed over a Spring managed SqlSession -
851228082:
宋建勇 写道851228082 写道<!-- 文件拷贝时 ...
maven设定项目编码
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
错误信息:
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
发表评论
-
ORA-12505, TNS:listener does not currently know of SID given in connect descript
2017-05-11 18:10 1366数据对接时需要连接对方的Oracle数据库,但程序在运行时出错 ... -
REST API Design备忘
2016-07-12 15:26 640GET /collection:返回资源对象的列表(数组) ... -
MYSQL server has gone away
2016-07-08 20:08 648在使用命令source导入SQL数据时报错如下: 造成此问 ... -
java.io.NotSerializableException: java.util.ArrayList$SubList
2016-03-15 11:36 2866错误信息: 原代码: if (null != dto ... -
java.lang.IllegalStateException: Form too large586563>200000
2015-12-16 19:49 2053错误信息: java.lang.IllegalStateExc ... -
java.lang.IllegalStateException: Form too large586563>200000
2015-12-16 19:49 24错误信息: java.lang.IllegalStateExc ... -
The function size must be used with a prefix when a default namespace is not
2015-07-30 21:39 4233错误信息: 20:23:34.035 %PARSER_ERRO ... -
java.lang.NoSuchMethodError: org.springframework.expression.spel.SpelParserConfi
2015-07-30 09:41 9988错误信息: [WARNING] FAILED remoting ... -
getOutputStream() has already been called for this response
2015-07-24 09:55 2540错误信息: SEVERE: Servlet.service() ... -
spring aop未执行问题记录
2015-07-03 11:54 1437在类com.ipharmacare.plat.service. ... -
struts2传递参数时造成的404问题记录
2015-06-29 20:44 1052今天使用form表单提交数据时提示404错误,但当我直接在浏览 ... -
quorum.QuorumCnxManager: Cannot open channel to 2 at election address
2015-04-02 15:38 8354在进行hbase分布式安装时出现了如下信息: quorum.Q ... -
could only be replicated to 0 nodes, instead of 1
2015-03-28 17:51 2615用三台Linux搭建hadoop环 ... -
Does not contain a valid host:port authority: file:///
2015-03-08 15:15 1705Does not contain a valid host:p ... -
java.sql.SQLException: Can't call commit when autocommit=true
2015-01-30 11:22 4504错误信息: 一月 30, 2015 11:10:16 上午 o ... -
Spring AOP配置不起作用
2015-01-17 14:27 0[url=http://blog.csdn.net/mmm33 ... -
org.hibernate.TransactionException: nested transactions not supported
2014-07-25 14:06 10668使用hibernate4.3.5和spring4.0.3进行数 ... -
Shutting down 'proxoolDataSource' pool immediately [Shutdown Hook]
2014-07-19 23:03 1895错误信息如下: 原因是ProxoolDataSource的m ... -
org.apache.ibatis.binding.BindingException: Parameter 'ids' not found. Available
2014-06-13 16:01 1985MyBatis批量操作报错:Parameter 'xxxLis ... -
Manual close is not allowed over a Spring managed SqlSession
2014-05-28 21:34 26674整合spring与MyBatis时出现如下警告: [org.s ...
相关推荐
1、错误信息 异常:Caused by: java.lang....Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract com.iot.framework.core.response.CommResponse ...
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 exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to ...
如果您已经有一个数据库,您就不必从头开始煞费苦心地创建它——prisma introspect 会照顾到这一点。 Prisma Client 是一个查询构建器,它组合了您的思考方式,并从 Prisma 模式中自动生成了为您的应用量身定制的...
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 ...
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 ...
var matchType = require ( 'introspect-typed' ) . matchType ; matchType ( String , 'yes!' ) ; // => true matchType ( Number , 'no...' ) ; // => false 获取匹配器功能 var matchType = require ( '...
introspect.github.io
DBus-introspect是一个实用工具,用于查看DBus接口的元数据,它使用Bourne Shell脚本编写,可以帮助开发者理解和探索DBus服务提供的接口、方法、信号以及其参数。在深入探讨这个话题之前,我们首先需要了解DBus的...
语言:English 每天为您的一天评分,描述和反思。 您是否希望自己可以回顾过去的生活,知道...**所有数据均使用高级加密标准(AES)进行加密**有用的链接源代码:https://github.com/YashTotale/introspect报告错误:...
对SwiftUI的内省 Introspect允许您获取SwiftUI视图的基础UIKit或AppKit元素。 例如,使用Introspect,您可以访问UITableView来修改分隔符,或者访问UINavigationController来自定义选项卡栏。这个怎么运作Introspect...
是推荐的安装NSDictionary-Introspect 。 只需Podfile添加到您的Podfile : 播客文件 pod 'NSDictionary-Introspect' 用法 要使用此代码,请覆盖 NSObject 的 description 方法,如下所示: - ( NSString *)...
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@2.19.0 , prisma introspect将根据您的数据库约定将其模型命名为1:1。 很好,但是如果您的数据库纯粹是snake_case ,或者如果您的表缺少任何通用约定,那可能会更糟,这会使自动生成的客户端代码使用起来...
从prisma@2.19.0 , prisma introspect将根据您的数据库约定将其模型命名为1:1。 很好,但是如果您的数据库纯粹是snake_case ,或者如果您的表缺少任何通用约定,那可能会更糟,这会使自动生成的客户端代码使用起来...
请勿使用:正在进行的工作 这是对制作一个将内省 npm 缓存的模块的探索。 它在当前形式下不可用。 想法 给定一组模块名称和版本... 创建一个单独的本地可搜索 npm 缓存,您可以从 registry.npmjs.com 和/或本地缓存填充
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...