Spring添加mybatis出现加载异常
来源:互联网 发布:windows平板推荐 2016 编辑:程序博客网 时间:2024/05/01 14:45
十一月 13, 2014 2:47:48 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [project-evaluation] in context with path [/project-evaluation] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at com.greatdreams.projectevaluation.dao.imp.NewsDaoMybatis.selectAllNews(NewsDaoMybatis.java:27)
at com.greatdreams.projectevaluation.controller.IndexController.index(IndexController.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)
严重: Servlet.service() for servlet [project-evaluation] in context with path [/project-evaluation] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at com.greatdreams.projectevaluation.dao.imp.NewsDaoMybatis.selectAllNews(NewsDaoMybatis.java:27)
at com.greatdreams.projectevaluation.controller.IndexController.index(IndexController.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
.......
spring框架在利用反射重构bean时,因为遇到了问题,所以在调用bean的方法时,出现的错误。
这个错误仅仅是因为我在AdminDao.java中用到的AdminMapper对象结果忘记了自动装载,导致了以上一系列的错误。
0 0
- Spring添加mybatis出现加载异常
- spring和mybatis整合加载jdbc.properties异常
- maven下 spring+springmvc+mybatis整合,映射文件加载异常
- Spring+dubbo+mybatis出现NoSuchMethodError和MutablePropertyValues.add异常
- spring+shiro+mybatis整合时候的出现:UnsatisfiedDependencyException的异常
- 整合Spring+mybatis+dubbo出现NoSuchMethodError和MutablePropertyValues.add异常
- mybatis和spring整合出现的sql异常
- Spring myBatis数据库连接异常
- 添加数据表出现异常
- 测试mybatis是出现异常
- spring加mybatis(Maven构建项目)简单篇---旨在探究spring配置方法和spring项目出现的异常分析
- spring @Autowired加载bean异常
- spring常出现的异常
- 使用Mybatis出现的一个异常bug
- mybatis出现java.lang.reflect.UndeclaredThrowableException异常
- 异常org.mybatis.spring.transaction.SpringManagedTransactionFactory.newTransaction
- 异常org.mybatis.spring.transaction.SpringManagedTransactionFactory.newTransaction
- spring和mybatis整合-MalformedParameterizedTypeException异常
- Android之广播(Broadcast)
- 数据库基础--MySQL中的约束
- taobao
- android图形系统之Paint(画笔)类详解
- c#开发Mongo笔记第九篇
- Spring添加mybatis出现加载异常
- mtk kk版本上面app模块编译命令的改变
- 第二章 2.3节
- 从洽洽欧洲维权案看商标海外维权
- C++ 简易Socket实例 【转】
- 第12周项目1(2)阅读有全局变量的程序并输出结果
- 4G卡手机升级清除了微信数据如何恢复
- source not found when debugging
- 第十二周项目1观察静态变量