- 浏览: 58611 次
- 性别:
- 来自: 北京
最新评论
-
pure1202:
3、回到New -Select a Wizard 窗口-> ...
axis2 Eclipse插件 突然失效 -
pure1202:
nixjojo 写道Axis2 Service Archive ...
axis2 Eclipse插件 突然失效 -
nixjojo:
Axis2 Service Archiver经常出问题,你点一 ...
axis2 Eclipse插件 突然失效 -
pure1202:
被转移位置,见:http://www.iteye.com/pr ...
jbpm读取流程定义文件异常 -
pure1202:
sunfengcheng 写道
[url]http://www ...
买什么电脑好?周末了,各位有时间就来提提意见啦
版本:SpringSide3.2.2
数据库:MySql5.0
异常1:
解决:
ArticleAction中page属性没有get方法:
异常2:
解决:
------分割线------数据库已修改为oracle10g
异常3
解决:
错误代码:
articleDao未注入:
加入@Autowired即可
这次真的大粗心了
异常4
解决:
pojo类中我定义了属性jobStatus,
解析时解析为了JOB_STATUS,修改属性为jobstatus就ok了。
异常5
解决:
IdEntity类中id生成方式修改为:
@GeneratedValue(strategy = GenerationType.SEQUENCE)
异常6
解决:
异常7
解决:
数据库:MySql5.0
异常1:
ognl.OgnlException: target is null for setProperty(null, "pageNo", [Ljava.lang.String;@18a80d4) at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2219) at ognl.ASTProperty.setValueBody(ASTProperty.java:127) at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
解决:
ArticleAction中page属性没有get方法:
public Page<Article> getPage() { return page; }
异常2:
org.hibernate.QueryException: could not resolve property: SUBJECT of: com.ht.entity.security.Article at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:67) at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:61)
解决:
<input type="text" name="filter_LIKES_subject" value="${param['filter_LIKES_subject']}" size="9"/> jsp页面属性名name(filter_LIKES_?)?处要与类中定义的一致。
------分割线------数据库已修改为oracle10g
异常3
2010-03-22 19:34:59,281 [http-8080-3] ERROR [500.jsp] - java.lang.NullPointerException at com.ht.sys.service.security.SecurityEntityManager.searchArticle(SecurityEntityManager.java:144) at com.ht.sys.service.security.SecurityEntityManager$$FastClassByCGLIB$$bf90a3ab.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
解决:
错误代码:
@Transactional(readOnly = true) public Page<Article> searchArticle(final Page<Article> page, final List<PropertyFilter> filters) { return articleDao.findPage(page, filters); }
articleDao未注入:
@Autowired private ArticleDao articleDao;
加入@Autowired即可
这次真的大粗心了
异常4
org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) ......~~...~ Caused by: java.sql.SQLException: ORA-00904: "THIS_"."JOB_STATUS": 标识符无效 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
解决:
pojo类中我定义了属性jobStatus,
解析时解析为了JOB_STATUS,修改属性为jobstatus就ok了。
异常5
ConstraintViolationException: could not insert: [com.ht.sys.entity.security.Recruitment] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) ...... Caused by: java.sql.SQLException: ORA-01400: 无法将 NULL 插入... at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
解决:
IdEntity类中id生成方式修改为:
@GeneratedValue(strategy = GenerationType.SEQUENCE)
异常6
[http-8080-2] ERROR [500.jsp] - The list() is not defined in action class com.opensymphony.xwork2.ActionSupport java.lang.IllegalArgumentException: The list() is not defined in action class com.opensymphony.xwork2.ActionSupport at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:454) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)
解决:
Action类,类与表大小写不一致等等
异常7
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainList': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.OrderedFilterBeanDefinitionDecorator$OrderedFilterDecorator] while setting bean property 'filters' with key [10]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'filterSecurityInterceptor' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterSecurityInterceptor' defined in file [/data/cds/tomcat/webapps/cds/WEB-INF/classes/applicationContext-security.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Unsupported configuration attributes: [浏览角色, 修改用户, 浏览用户, 修改角色] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
解决:
初始化资源方法: public LinkedHashMap<String, String> getRequestMap() throws Exception {//NOSONAR List<Resource> resourceList = securityEntityManager.getUrlResourceWithAuthorities(); LinkedHashMap<String, String> requestMap = new LinkedHashMap<String, String>(resourceList.size()); for (Resource resource : resourceList) { requestMap.put(resource.getValue(), resource.getAuthNames()); } return requestMap; } 中的此方法: resource.getAuthNames(): return ReflectionUtils.convertElementPropertyToString(authorityList, "displayName", ","); displayName修改为name
发表评论
-
javascript
2011-04-21 15:21 7301、parseInt parseInt语法:parseInt ... -
jquery
2011-03-24 12:40 1708$("input[type=radio][name= ... -
Hql
2011-03-15 17:02 806count & distinct SELECT c ... -
struts2 convention-plugin
2011-03-10 00:36 1217异常信息1: org.springframework.ao ... -
Map
2011-01-25 15:05 911HashMap是一个最常用的Map,它根据键的hashCod ... -
Hibernate缓存
2010-09-28 13:53 886Hibernate缓存配置 ________________ ... -
aaaa
2010-09-06 11:59 948String str1 = HtmlUtils.htmlE ... -
Eclipse一些小技巧
2010-03-17 15:12 883记录~~~ 1、Eclipse下导入相关jar包源码: Ec ... -
Java 注释技术
2010-03-12 14:23 1068原文链接: http://www.javapassion.co ... -
Restful风格架构
2010-03-03 16:40 2972Restful 的含义不是一句话讲的完的,简单说就是依 ... -
axis2 Eclipse插件 突然失效
2010-01-13 19:58 3107好不容易在eclipse中配置好axis2插件,如图: 今 ... -
about RMI
2009-12-14 10:47 764经过测试后的步骤。记录下. steps as follows: ... -
iReport NullPointerException—JRPropertiesMap.getProperty
2009-08-27 15:52 2029设计和编译报表用的iReport 版本是3.1.1的, jsp ... -
myeclipse 中velocity插件安装
2009-06-04 14:06 1612velocity插件安装:经测试(目前)能使用 路径:http ... -
The type java.lang.Object cannot be resolved.It is
2009-05-18 10:30 1580谢谢无为之为 引用 1、The type java.lang. ... -
proxool官方下载地址 & URL
2009-05-14 11:27 5641很多地方下载都有限制:需要积分什么乱七八糟的都有。。。。。。 ... -
jbpm读取流程定义文件异常
2009-04-27 16:47 1945下面是一个赛跑的小流程。这里我已经把流程持久化到数据库中。 为 ... -
jbpm工作流 报销流程问题
2009-04-20 20:42 1175哪位同仁跑过jbpm的流程 现在我遇到问题了,异常信息出在这 ... -
怎样求2个日期间隔的工作日数?解决
2009-04-08 18:09 1230还有很多要完善的地方,还有简单的实现没?希望各位帮我提提意见。 ... -
怎样求2个日期间隔的工作日数?
2009-04-08 02:09 1147已知:上班时间为9:00,下班时间表7:30,中午休息1个小时 ...
相关推荐
springside 的一个应用实例,java web的开发末班
springside-3.2.2源码springside-3.2.2源码
springside
springside3整理的开发过程笔记,希望能帮到大家
SpringSide4.0 Reference Manual 自己整理的官方文档,PDF格式,方便查阅,所有连接都已整理。
springside4
springside3.0.zip
SpringSide文档.chm。
pom.xml配置 ...mvn install:install-file -DgroupId=org.springside -DartifactId=springside-core -Dversion=4.2.2.GA -Dfile=./springside-core-4.2.2.GA.jar -Dpackaging=jar -DgeneratePom=true
springside开发全面讲解 springside集成了多项技术,不适合入门者学习,因此本资料也尽量从最简单最基础的讲起。
分享 江南白衣的 springside4 非常强大的Javaee 框架。 官网:http://www.springside.org.cn/ 代码:https://github.com/springside/springside4
springside3.3.4 使用方法 ssh整合 最流行的web框架 使用说明
springside示例quickstart的eclipse工程
Springside4 学习整理 Shiro 服务端验证
SpringSide
springside-core-4.3.0.jar 最新版springside-core的jar包
介绍springside3.0的应用,让读者更易于上手。
SpringSide是以Spring Framework为核心的,Pragmatic风格的JavaEE应用参考示例,是JavaEE世界中的主流技术选型,最佳实践的总结与演示。
最近公司要求高maven+springside管理项目,凑合学,总结了一下