Exception occurred during processing request: null
来源:互联网 发布:魔方数据恢复 编辑:程序博客网 时间:2024/05/16 12:24
Hibernate:
select
user0_.id as id1_0_,
user0_.username as username2_0_,
user0_.userpwd as userpwd3_0_,
user0_.note as note4_0_
from
User user0_
where
user0_.username=?
and user0_.userpwd=?
2015-4-3 14:36:25 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error严重: Exception occurred during processing request: null
java.lang.NullPointerException
at dxm.com.action.UserAction.login(UserAction.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
从执行输出可以看出 hibernate部分执行了,却报对象空,具体原因是 在action类中,user 对象的get方法注掉了,就就相当于user只是申明了。 对象没法从form 中提交的数据获数据。
ok。
有一点为明白,我的意思是struts+spring框架建项目,为啥还有什么用到hibernate。待发现
0 1
- struts2:Exception occurred during processing request: null
- Exception occurred during processing request: null
- Exception occurred during processing request: null
- struts2:Exception occurred during processing request: null
- 严重: Exception occurred during processing request: null原因解析
- 错误中学习--Exception occurred during processing request: null
- DefaultDispatcherErrorHandler: Exception occurred during processing request
- 使用token 防止struts2刷新重复提交时 Exception occurred during processing request: null
- 关于Exception occurred during processing request: The given object has a null identifier
- 关于Struts2简单的登陆页面遇到的错误error Exception occurred during processing request: null
- Exception occurred during processing request: null 的错误原因以及解决办法
- 严重: Exception occurred during processing request: Unable to read XML
- 严重: An exception or error occurred in the container during the request processing
- Exception occurred during processing request: user is not mapped [from user where username=:username
- 严重: Exception occurred during processing request: org.apache.struts2.json.JSONException: org.hiberna
- 严重: Exception occurred during processing request: Position beyond number of declared ordinal paramet
- Exception occurred during processing request: No Dialect mapping for JDBC type: -1
- Exception occurred during processing request: com.hry.shop.user.action.UserAction.findByName()
- WCF通讯方式之双向通讯
- HDFS dfsclient写文件过程 源码分析
- java 中的 final 变量
- poj Round Numbers 3252(数位dp进阶)
- php redis brpop提示异常
- Exception occurred during processing request: null
- WordPress 建立数据库连接时出错解决方法
- 浅析设计模式之工厂方法模式及一篇相关翻译
- spark1.3.0 on yarn 构建(hive0.12.0)
- liunx环境下程序的编译和链接
- Memcache技术初步认识和基本的CRUD操作
- 优化数据页面(5)——加大字号突出标题行
- Ubuntu下使用解压版Tomcat7
- java socket编程实例