
我的Exception
hucile
这个作者很懒,什么都没留下…
展开
-
NotFoundClass
出现此异常,一般是没有导入jar包!!!原创 2011-11-18 02:41:21 · 137 阅读 · 0 评论 -
plsql连接其他电脑Oracle
在G:\oracle\product\10.2.0\db_1\network\ADMIN下找到tnsnames.ora文件tnsnames.ora元内容:# tnsnames.ora Network Configuration File: G:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora# Generated by Ora原创 2012-08-25 15:38:41 · 719 阅读 · 0 评论 -
java.io.FileNotFoundException: class path resource [XXXXX.xml] cannot be opened
没有找到XXXXX.xml,首先确定你项目里有这个文件吗,如果没有请添加,或者你已经存在bean配置文件,只是名字不是beans.xml,请改正名字。此外还要注意最好把bans.xml加入到classpath里,就是放到你的包里。最简单的是放在src下就行。如果在eclipse里面,具体操作:右键项目---->properties--->Java Build Path--->sourc转载 2012-10-09 14:36:13 · 4751 阅读 · 0 评论 -
数据库中varchar(500)是什么意思?
数据库中某个字段定义为varchar(500),其中的500是指可以存放500个字符,不论汉字还是字母,还是500字节大小,可以存放250个汉字或500个字母? 答:500是指500个char,一个char一个字节,一个汉字两个字节,ascii的英文字母一个一个字节。var是可变的意思,就是说如果存了250个字节数据,就只占250个字节,而不是不论存多少数据都分配500字节转载 2012-10-10 14:38:08 · 1284 阅读 · 0 评论 -
According to TLD, tag bean:write must be empty, but is not
如果在使用Struts标签的时候,没有标签的结束标记,会发生异常。例如,如果/>写成了则发生异常如下所示:org.apache.jasper.JasperException: /middle.jsp(45,37) According to TLD, tag bean:write must be empty, but is not org.apache.jaspe转载 2012-10-11 14:51:37 · 340 阅读 · 0 评论 -
No getter method for property htymc of bean org.apache.struts.taglib.html.BEAN
2012-10-17 16:16:45 org.apache.catalina.core.ApplicationDispatcher invoke严重: Servlet.service() for servlet jsp threw exceptionjavax.servlet.jsp.JspException: No getter method for property htymc of原创 2012-10-17 16:24:15 · 906 阅读 · 0 评论 -
myeclipse设置提示功能
1、 点击window2、 点击preferences3、 点击java4、 点击Editor5、 点击Content Assist6、 点击选中Enable auto activation7、 在Auto activation triggers for Java中输入需要提示的字符原创 2012-10-19 21:44:11 · 331 阅读 · 0 评论 -
myeclipse提示设置
1、点击window2、点击preferences3、点击java4、点击editor5、Content Assist6、在选中Enable auto activation7、在Auto activation triggers for Java 中输入需要提醒的字符。原创 2012-10-19 21:29:38 · 137 阅读 · 0 评论 -
SSH(Strut+Spring+Hibernate)——先过滤后实现删除功能
过滤删除未回复的个人任务 后台查询:/** * 获得本用户个人任务 */ publicListFindGrrw1(final String username,finalint from,finalint sum, final String rwbt,final String rwrq ,final Stri原创 2012-10-30 11:08:46 · 779 阅读 · 0 评论 -
Error configuring application listener of class org.springframework.web.context.ContextL
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLo原创 2012-10-30 14:47:04 · 2171 阅读 · 0 评论 -
javascript:history.go()和History.back()的区别
后退+刷新在C# Web程序中,如为页面按钮写返回上一页代码this.RegisterClientScriptBlock("E", "history.go(-2);");其中,history.go(-2),要写为-2,因在按钮事件触发前,已刷新一次页面,所以应是-2。Response.Write("history.go(-2);");此处也要写为“-2”。跟直接写脚本的有所不同。h转载 2012-10-30 17:28:08 · 228 阅读 · 0 评论 -
动态(异步模式)校验登录名是否存在
一、js校验方法-getUser function getUser(ele){ var username = ele.value; if("" == username){ alert("登录名不能为空!"); return; } //1 定义请求url var url = "/basicdata/gyshtyCheckUse原创 2012-10-29 10:20:04 · 503 阅读 · 0 评论 -
关于myeclipse服务重启问题
编写新的服务类方法后需要重新启动服务。原创 2012-10-19 22:11:44 · 285 阅读 · 0 评论 -
由给定日期取得前几个月日期
Integer i = 0; Integer j = 0; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar calendarStart = new GregorianCalendar(); Calendar calendarEnd = new GregorianC原创 2012-10-24 20:42:00 · 457 阅读 · 0 评论 -
对比出EXCEL两列数据不相同的数据
问题: 两列数据不相同的数据,A列有5000多条,B列有3000条。求B列在A列没有的2000条数据 解决: 把B列的数据改成红色,再全部剪切到A列的最下面在B1格面里输入 =IF(COUNTIF($A$1:$A$4999,A1)>1,"重复","不重复")然后双击B1右下角的黑点,看A列红色字体旁边是重复的就是在上面有的,不重复的就是没有的。转载 2012-11-01 10:49:45 · 452 阅读 · 0 评论 -
由给定时间设置成前几个月
String qdsj='2011-09-13'; Integer i = 0; Integer j = 0; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar calendarStart = new GregorianCalendar(); Cale原创 2012-10-24 20:37:10 · 136 阅读 · 0 评论 -
更新数据库表记录
方法1:使用plsql,选择表-点击编辑数据,修改数据后,点击对号并提交。方法2:执行sql语句select * from CTGHXX t for update点击表下方编辑数据(图表为小锁),修改数据后,点击对号并提交。可以解决特殊类型数据输入,如解决手动输入number类的数字输入。原创 2012-09-05 22:49:40 · 487 阅读 · 0 评论 -
查看本机Mac地址
使用cmd命令输入cmdC:\WINDOWS\system32>ipconfig/allWindows IP Configuration Host Name . . . . . . . . . . . . : MICROSOF-199928 Primary Dns Suffix . . . . . . . : Node Type原创 2012-08-27 10:40:18 · 593 阅读 · 0 评论 -
关于校验
使用@RequiredStringValidator(message = "用户名怎么能为空???????????",trim=false) public void setUsername(String username) { this.username = username; } 对用户名进行校验时 若for原创 2011-11-21 21:57:14 · 247 阅读 · 0 评论 -
String-Exception
String 中出现java.io.FileNotFoundException :class path resource[applicationContext.xml]cannot be opened because it does not exist异常说明application.xml没有找到 解决方法 查看applicationContext.xml名字是否一致查看app原创 2011-11-21 21:58:33 · 137 阅读 · 0 评论 -
Spring和jdbc的整合-Excetion
log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).log4j:WARN Please initialize the log4j system properly.Exception in thread "m原创 2011-11-22 22:44:18 · 203 阅读 · 0 评论 -
Java找不到JDK
解决办法:需要创建一个快捷键,然后右击选择属性.将目标栏中输入JDK下的bin目录,例如,C:program~1\Java\JDK1.5.0\bin\javaw.exe注意:有可能文件名字过长不识别报错。须将文件由programFiles所写成program~1.原创 2011-12-28 11:20:50 · 312 阅读 · 0 评论 -
Tomcat启动时间过长报错
出现Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.错误原因:启动tomcat需要的时间比45秒大了,Eclipse会判原创 2011-12-28 11:33:34 · 1194 阅读 · 0 评论 -
The selected server is enabled,but is not configured properly
Theselected server is enabled,but is not configured properly.Deployment to it will not be permitted until the problem is corrected.Please navigate to the server preference pages and verify the field原创 2012-01-10 10:47:13 · 3987 阅读 · 1 评论 -
The MyEclipse executable launcher was unable to locate its companion shared library
The MyEclipse executable launcher was unable to locate its companion shared library:MyEclipse的可执行文件启动无法找到其同伴共享库原创 2012-01-10 09:15:44 · 2894 阅读 · 0 评论 -
XXX could not be redeployed because it could not be completely removed in the undeployment phase
XXX could not be redeployed because it could not be completely removed in the undeployment phase. the most common cuase of this problem is attempting to redeploy while the server is running,which has原创 2012-02-08 15:38:22 · 209 阅读 · 0 评论 -
新建一个package后无法显示
在myeclipse中新建一个package的包,在工程中无法显示原因:myeclipse的过滤系统将空文件给过滤掉了,但是在原工程中已经存在这个包,只是无法在myeclipse中无法显示。解决办法:点击工程右上方的menu倒三角选择menu下拉菜单的emptypackage去掉前方的勾即可。原创 2012-02-08 15:31:01 · 498 阅读 · 0 评论 -
实体类不能被发现
org.hibernate.MappingException: entity class not found原因:hibernate配置文件没有配好,导致书写的类名与配置文件中的类名不一致。解决:重新修改配置文件或者修改类名,使类名与配置文件中的类名一致。原创 2012-02-14 15:09:54 · 304 阅读 · 0 评论 -
利用plsql如何导入*.dmp
创建新的ADP_13 密码:ADP_13 在PLSQL工具利用system登录(密码:system)在选择框中选择users回车 找到user目录右击选择drop删除原来用户,右击new新建用户用户名和密码一致(注意:不能使用复制粘贴,一定要自己手动输入)选择Role privileges 在Role中选择下拉框选中dba 在dab行中在Grantable列项打对勾选择应原创 2012-02-22 10:40:02 · 1549 阅读 · 0 评论 -
A Java Runtime Envirment (JRE) or Java Development Kit (JDK) must be available in order to run Wdt.
报错: A Java Runtime Envirment (JRE) or Java Development Kit (JDK) must be available in order to run Wdt. No Java virtual machine was found after searching the following locations: c:\..........\ja原创 2012-03-12 11:45:21 · 941 阅读 · 0 评论 -
Could not find the main class. Program will exit.
问题:Could not find the main class. Program will exit. 点击确定按钮后弹出 ‘starting Tomcat v6.0 Server at localhost' has encountered a problem. Server Tomcat v6.0 Server at localhost was unable to start with原创 2012-04-06 11:19:27 · 877 阅读 · 0 评论 -
jquery 选择器复合属性选择器 by cubeking
返回值:Array[selector1][selector2][selectorN]概述复合属性选择器,需要同时满足多个条件时使用。参数selector1Selector属性选择器selector2Selector另一个属性选择器,用以进一步缩小范围selectorNSelector任意多个属性选择器示例描述:找到所有转载 2012-04-18 09:54:15 · 1166 阅读 · 0 评论 -
测试访问部署访问url
在使用tomcat开发中会遇到访问url测试页面。例如,http://IP:port/xxx/pt/filesvc/fileserver/index.jsp.IP:localhostport:查看server.xml中后面的路径就到tomcat\wepapps下寻找对应的工程,对应的jsp即可,例如D://------Tomcat原创 2012-04-18 15:58:16 · 474 阅读 · 0 评论 -
NoClassDefFoundError: javax/faces/FacesException
Error configuring application listener of class com.sun.faces.config.ConfigureListenerjava.lang.NoClassDefFoundError: javax/faces/FacesException at java.lang.Class.getDeclaredConstructors0(Native转载 2012-10-25 10:11:58 · 1731 阅读 · 1 评论