Macros

给我一支烟!请所有烦恼都能过往如云烟!

导航

文章分类 -  错误诊断

LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 && CVT1100: 重复的资源 解决方法
摘要:LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 && CVT1100: 重复的资源 解决方法细内容请看微软官方说明:http://support.microsoft.com/kb/320216/zh-cn这里贴上我的解决方法(vs2005环境):设置工程属性->配置属性-> 清单工具->输入和输出->嵌入清单,选择[否],确定后重新生成即可。 阅读全文

posted @ 2007-07-05 14:03 Macros 阅读(1225) 评论(0) 推荐(0)

Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition
摘要:错误代码: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly... 阅读全文

posted @ 2006-07-01 02:05 Macros 阅读(2862) 评论(1) 推荐(0)

编译错误:Could not find the file aknexlist.rsg
摘要:当你编译的时候产生的资源文件的一个列表文件,首先你要先用abld build wins udeb 创建在模拟器上运行的app,这时reg文件就产生了,然后再发布到手机上制作顺序bldmake bldfilesabld build wins udebabld build thumb urelmakesis yourappname.sis 阅读全文

posted @ 2006-05-26 19:06 Macros 阅读(811) 评论(0) 推荐(0)

uk.ltd.getahead.dwr.impl.ExecuteQuery - Method execution failed
摘要:错误代码:uk.ltd.getahead.dwr.impl.ExecuteQuery - Method execution failed: java.lang.NullPointerException at tudu.domain.dao.impl.UserDAOHibernate.getUser(UserDAOHibernate.java:23) ... 阅读全文

posted @ 2006-02-20 12:41 Macros 阅读(1491) 评论(1) 推荐(0)

在eclipse环境里在tapestry的HTML模板里写中文.当浏览html页面时中文变成乱码!!
摘要:tapestry的HTML模板里写中文.当浏览html页面时中文变成乱码.解决方法: 这是因为我在eclipse的window--->preferences--->tomcat--->jvm setting的Boot Classpath里加入了rt.jar包造成的.我也不知道是什么原因.我把这个JAR包去了后中文显示就正常了.如果那位朋友知道原因.希望告诉我一下.呵呵..谢.. 阅读全文

posted @ 2006-02-11 15:11 Macros 阅读(546) 评论(0) 推荐(0)

tomcat不能运行conf目录里的xml工程配置文件的问题!!! + dwr配置问题
摘要:环境:tomcat5.5.15错误:我在给工程配置执行时所要的xml文件时.发现我在tomcat中的conf目录下的xml不能被执行.提示: org.apache.catalina.startup.HostConfig checkResources Undeploying context [/dwr]原因: conf目录下的xml文件的名称一定要和工程的名称相同.否则就不能正常运行... 阅读全文

posted @ 2006-02-10 14:38 Macros 阅读(1379) 评论(0) 推荐(0)

net.sf.hibernate.MappingException: Bad identifier type: net.sf.hibernate.type.ComponentType
摘要:at net.sf.hibernate.persister.AbstractEntityPersister.(AbstractEntityPersister.java:669) at net.sf.hibernate.persister.EntityPersister.(EntityPersister.java:690) at net.sf.hibernate.persister.Persist... 阅读全文

posted @ 2005-11-23 10:44 Macros 阅读(899) 评论(0) 推荐(0)

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
摘要:错误代码: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'.错误原因: 由于程序在执行时不能创建连接池.解决方法 1.在Tomcat 5.0.30中 打开tomcat/conf/server.xml... 阅读全文

posted @ 2005-10-10 19:58 Macros 阅读(10082) 评论(7) 推荐(0)

Caused by: java.lang.ClassNotFoundException: net.sf.ehcache.hibernate.Provider
摘要:说起来真的好郁闷哦.我把工程里面的包放在了最外面..而WEB-INF下却没有,所以才引起找不到包.真是超级郁闷............ 阅读全文

posted @ 2005-09-28 12:25 Macros 阅读(2747) 评论(0) 推荐(0)

javax.naming.NamingException: Context is read only
摘要:错误消息: 11:39:03,593 INFO SessionFactoryObjectFactory:86 - Factory name: java:/hibernate/HibernateFactory 11:39:03,593 INFO NamingHelper:26 - JNDI InitialContext properties:{} 11:39:03,609 I... 阅读全文

posted @ 2005-09-28 12:02 Macros 阅读(2305) 评论(0) 推荐(0)

警告: Could not obtain connection metadata
摘要:错误消息: 警告: Could not obtain connection metadata No suitable driver错误原因: jdbc:mysql://localhost:3306/hibernate_test 不在同一行就会出错...真是不理解呀..解决... 阅读全文

posted @ 2005-09-23 10:40 Macros 阅读(6130) 评论(2) 推荐(0)

Could not configure datastore from input stream org.dom4j.DocumentException:
摘要:错误消息: Could not configure datastore from input stream org.dom4j.DocumentException:hibernate sourceforge.net Nested exception 错误原因: 由于可能是由于hbm.xml里有问题,特别是DOCTYPE 可能是hbm.x... 阅读全文

posted @ 2005-09-22 19:57 Macros 阅读(1591) 评论(0) 推荐(0)

使用Ant时 产生版本冲突
摘要:错误消息: Invalid implementation version between Ant core and Ant optional tasks. core : 1.6.1 optional: 1.6.2原因: 是由于机器上安装了其它的带ant的开发工具,在classpath的设置使得ant先找到其它旧版本的jar,导致ant认为 实现版... 阅读全文

posted @ 2005-09-22 19:25 Macros 阅读(495) 评论(0) 推荐(0)

类的实例化问题
摘要:我做了一个例子是关于在十秒钟内一个Tuxedo服务调用多少?由于我只在程序刚开始的时候实例化了一次,所以.开始的秒数和结束的秒数.总是一样..后来才明白过来.如果要不断的取得秒数就必须每循环一次就应该实例化一次..哎....我太菜了...让我很郁闷...为什么一开始就没想到呢???? Calendar sample; Calendar sample1; // TODO Auto-g... 阅读全文

posted @ 2005-09-20 12:05 Macros 阅读(160) 评论(0) 推荐(0)

UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'
摘要:错误消息:UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'错误原因: 不能找到所要加载的xml文件.见:http://www.tek-tips.com/viewthread.cfm?qid=1081579&page... 阅读全文

posted @ 2005-08-18 14:11 Macros 阅读(2650) 评论(2) 推荐(0)