org.apache.cxf.interceptor.Fault: Could not initialize class org.springframework.jdbc.core.Statement
2014-06-24 16:53
633 查看
环境是spring JDBC + spring jpa + spring security
现在以上这种情况,肯定是jar冲突有缘故
目前security最高版本为3.2.4,引用的spring 也是3.2.4,而引用的spring-data-jpa是1.3.0的,在引用版本的问题上,spring引用了3.2.8,导致在运行的时候报如下错误:
StatementCreatorUtils初始化时下面代码时:
其中引用了:
不存在
spring core中SpringProperties不存在,3.2.7以上才有
所以把spring-core相关的JAR改为3.2.8就OK了
现在以上这种情况,肯定是jar冲突有缘故
目前security最高版本为3.2.4,引用的spring 也是3.2.4,而引用的spring-data-jpa是1.3.0的,在引用版本的问题上,spring引用了3.2.8,导致在运行的时候报如下错误:
org.apache.cxf.interceptor.Fault: Could not initialize class org.springframework.jdbc.core.StatementCreatorUtils
StatementCreatorUtils初始化时下面代码时:
static final boolean shouldIgnoreGetParameterType = SpringProperties.getFlag(IGNORE_GETPARAMETERTYPE_PROPERTY_NAME);
其中引用了:
import org.springframework.core.SpringProperties;
不存在
spring core中SpringProperties不存在,3.2.7以上才有
所以把spring-core相关的JAR改为3.2.8就OK了
相关文章推荐
- org.apache.cxf.binding.soap.SoapFault: Could not initialize class
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons
- Junit 抛出错误 java.lang.NoClassDefFoundError: Could not initialize class org.springframework.test.conte
- org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 8,888: Cannot assign requeste
- java.lang.NoClassDefFoundError: Could not initialize class org.springframework.beans.factory.BeanCre
- NoClassDefFoundError: Could not initialize class org.springframework.web.client.RestTemplate
- org.apache.cxf.interceptor.Fault:Could not send Message
- org.apache.cxf.interceptor.Fault: Could not send Message.(CXF客户端访问服务器端出错)
- cxf未开启服务端时产生的报错org.apache.cxf.interceptor.Fault: Could not send Message.
- java.lang.NoClassDefFoundError: Could not initialize class org.springframework.beans.factory.BeanCre
- ield 'ClassID' doesn't have a default value 2015-09-14 13:37:25,015 ERROR [org.apache.struts2.dispatcher.Dispatcher] - Exception occurred during processing request: could not execute statement org.hibernate.exception.GenericJDBCException: could not execut
- springmvc+fileuploader上传报错 Could not instantiate bean class [org.springframework.web.multipart.Multi
- Oracle数据源:org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection;
- springmvc上传文件报错org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.multipart.MultipartFile]
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection
- spring 项目tomcat 8.0.2 发布报错:Could not initialize class org.hibernate.validator.engine.ConfigurationImpl
- org.apache.cxf.interceptor.Fault: The given SOAPAction ... does not match an operation
- org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.
- org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch
- log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory). WARN Please initialize the log4j