![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误日志
iteye_20054
这个作者很懒,什么都没留下…
展开
-
js 写if语句时候的错误
这里的写法很严格...if(){}else if(){}else{}原创 2011-05-20 13:03:40 · 409 阅读 · 0 评论 -
hibernate解决延迟加载 [main] ERROR org.hibernate.LazyInitializationException - could n
[code="java"] [main] ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session public Users findById(Long id){ Session session =HibernateSessionFactory.ge...原创 2011-01-10 21:13:17 · 89 阅读 · 0 评论 -
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
Spring ApplicationContext.xml中报 class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> 错误时缺少 -->BuildPath-->Library-->MyEclipse中 Spring2.0 AOP Libraries Spring2.0 core Libraries ...原创 2011-01-21 22:52:08 · 128 阅读 · 0 评论 -
事物没有提交
此处差一个点原创 2011-01-22 11:07:44 · 113 阅读 · 0 评论 -
id to load is required for loading
[code="java"] id to load is required for loading 由于update时没有传到值 在action中 [code="java"] private Long id; public Long getId() { return id; } public void setId(Long id) { this.i...原创 2011-01-22 22:07:53 · 194 阅读 · 0 评论 -
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init
多了一个包 asm原创 2011-01-23 16:45:49 · 81 阅读 · 0 评论 -
The server encountered an internal error () that prevented it from fulfilling th
spring的applicationContext.xml 改之前无法删除数据 [code="xml"] [/code] 把del*改成delete* 改之后 [code="xml"] [/code]...原创 2011-01-23 20:09:01 · 195 阅读 · 0 评论 -
struts2验证问题
[code="xml"] 起名不对 应该对应上SaveAction.java |对应 继承前一个 SaveAction-validation.xml user |对应 User-user-validation.xml ...原创 2011-01-24 20:00:45 · 87 阅读 · 0 评论 -
struts2验证信息重复出现
[code="xml"] 解决的方法:把applicationContext.xml里action的scope配置成prototype,这是一种方法,因为每次提交都不是同一个的action实例。 结果是: 问题解决了! [/code]...原创 2011-01-24 20:01:56 · 83 阅读 · 0 评论 -
Parameters: Invalid chunk ignored.
[quote] 警告:Parameters:Invalid chunk ignored 原因:在链接参数中存在一定的问题和业务逻辑没关系,比如说在一个链接http://url?param1=value1&redundance=rValue, 其中redundance变量没有在业务逻辑中使用。 解决方法: 方法1:在业务逻辑中使用所有传入的值; 方法2:去除冗余参数; 还有...原创 2011-04-02 14:21:44 · 90 阅读 · 0 评论 -
Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
Cannot load JDBC driver class 'com.mysql.jdbc.Driver' 将driver包放到lib下原创 2011-04-08 10:22:37 · 81 阅读 · 0 评论 -
update语句
[code="java"] /** * 编辑学员信息 * 姓名 常用邮箱 email 性别sex 婚恋状态 marry 生日birthday 血型blood 家乡 居住地 QQ MSN * * @param int * @return Boolean */ public boolean updateSpacefieldByUid(S...原创 2011-04-27 10:17:32 · 129 阅读 · 0 评论 -
错误Caused by: Action class [com.zyl.action.LoginAction] does not have a public no
Caused by: Action class [com.zyl.action.LoginAction] does not have a public no-arg constructor - action - file:/C:/Tomcat%206.0/webapps/IndependenceDay/WEB-INF/classes/struts.xml:5:65 Action中没有空的...原创 2011-01-06 18:43:21 · 103 阅读 · 0 评论 -
错误Caused by: Action class [com.zyl.action.LoginAction] does not have a public no
Caused by: Action class [com.zyl.action.LoginAction] does not have a public no-arg constructor - action - file:/C:/Tomcat%206.0/webapps/IndependenceDay/WEB-INF/classes/struts.xml:5:65 Action中没有构造...原创 2011-01-06 18:22:57 · 144 阅读 · 0 评论 -
No suitable driver found for jdbc[转]
一是:连接URL格式出现了问题(Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/XX","root","XXXX") 二是:驱动字符串出错(com.mysql.jdbc.Driver) 三是Classpath中没有加入合适的mysql_jdbc驱动 经过我的仔细检查,这...原创 2011-07-05 10:25:23 · 126 阅读 · 0 评论 -
Access restriction: The type BASE64Decoder is not accessible due to restr[转]
在Eclipse中编写用java代码时用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示: Access restriction : The type BASE64Decoder is not accessible due to restriction on required library C:\Program files\j...原创 2011-07-05 11:24:47 · 115 阅读 · 0 评论 -
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space 可以尝试办法: A.修改Tomcat/bin/catalina.bat,添加如下内容 set JAVA_OPTS=-Xms256m -Xmx512m -Djava.awt.headless=true [-XX:MaxPermSize=128M] B.eclipse->windows->prefere...原创 2011-07-29 16:56:32 · 82 阅读 · 0 评论 -
java 错误 “Unable to instantiate default tuplizer....”
今天写junit小测试,出现了这个错误“Unable to instantiate default tuplizer....”, 到网上查了下,原来是我的hbm.xml文件中的属性写错了,与实体中的属性不一致。 总结下: 1.检查hbm.xml的配置文件是否与实体类的一致。 2.检查hibernate.cfg.xml文件中配置的hbm.xml文件是否存在,或者是否路径正确。...原创 2010-12-27 15:40:51 · 129 阅读 · 0 评论 -
错误Cannot make a static reference to the non-static method findAllUsers()
今天写junit小测试,出现了这个错误"Cannot make a static reference to the non-static method findAllUsers() from the type DAO"原创 2010-12-28 17:50:09 · 283 阅读 · 0 评论 -
错误:org.hibernate.PropertyValueException: not-null property references a null o
junit 错误 org.hibernate.PropertyValueException: not-null property references a null or transient value: com.zyl.po.Card.cardnum at org.hibernate.engine.Nullability.checkNullability(Nullability.j...原创 2010-12-29 18:10:31 · 153 阅读 · 0 评论 -
tomcat内存不足 permGen 永久空间内存错误
permGen 永久空间内存错误 tomcat内存不足 tomcat6.0 jdk 中加 -XX:PermSize=128m -XX:MaxPermSize=256m 14:09 2011-1-2 或者该MyEclipse中的myeclipse.ini文件 C:\MyEclipse 8.5\myeclipse.ini 将 -XX:MaxPermSize=256m -XX:Re...原创 2011-01-02 14:22:17 · 74 阅读 · 0 评论 -
错误The operator != is undefined for the argument type(s) long, null
此处报错 if (users.getUsersid() != null) The operator != is undefined for the argument type(s) long, null 通过Ctrl+左键找到错误源 private long usersid; public long getUsersid() { return this.usersid;...原创 2011-01-02 18:34:39 · 3628 阅读 · 0 评论 -
很早以前的错误
E:\beta1>javac -d ../U Teacher.java eclipse 导入工程 java system.library 项目-右键-build path-configure build path-libraries,查看一下引用的类库路径。因为你的项目是导入的,所以原来的类 库引用的路径不一定跟你的机器一样。要修改一下路径,引用的类没有的就上网找。 >echo %...原创 2011-01-02 18:37:33 · 95 阅读 · 0 评论 -
w3c测试 http://w3school.com.cn/quiz
CSS 测验 结果:13/20 您的回答: 1.CSS 指的是? 您的回答:Cascading Style Sheets 2.在以下的 HTML 中,哪个是正确引用外部样式表的方法? 您的回答:<link rel="stylesheet" type="text/css" href="mystyle.css"> 3.在 HTML 文档中,引用外部样式表的正确位置是? 您的...原创 2011-01-05 14:09:34 · 455 阅读 · 0 评论 -
js和Html w3c测试 http://w3school.com.cn/
JS 测验 结果:12/20 您的回答: 1.我们可以在下列哪个 HTML 元素中放置 Javascript 代码? 您的回答:<script> 2.写 "Hello World" 的正确 Javascript 语法是? 您的回答:document.write("Hello World") 3.插入 Javacript 的正确位置是? 您的回答:<bod...原创 2011-01-05 14:15:21 · 248 阅读 · 0 评论 -
java.util.ConcurrentModificationException异常
java.util.ConcurrentModificationException异常 java.util.SubList.checkForComodification(AbstractList.java:752) java.util.SubList.listIterator(AbstractList.java:682) java.util.AbstractList...原创 2011-05-17 13:44:51 · 78 阅读 · 0 评论