教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 学前教育 >

常见的MyEclipse错误

来源:网络收集 时间:2026-08-19
导读: 一、Exception in thread \ >>这个错误的意思就是:数据库的用户名或者密码错误 检查你的数据库用户名和密 二、Exception in thread \ >>这个错误表示:没有导入数据库驱动包,检查是否导入了驱动包 在工程名上右键---->选最后一项------332 logon denied 码

一、Exception in thread \ >>这个错误的意思就是:数据库的用户名或者密码错误 检查你的数据库用户名和密 二、Exception in thread \

>>这个错误表示:没有导入数据库驱动包,检查是否导入了驱动包 在工程名上右键---->选最后一项------332

logon denied 码

三、java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection

>>这个错误表示:你的数据库服务没有打开.

四、Exception in thread \标识符无效

>>>标示符无效---这个错误的意思是:java程序中的sql语句出错了

五、The method Sel(int) is undefined for the type HumanDao

六、java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

七java.sql.SQLException: Io 异常: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=16

原因一:数据库的服务没有打开-----打开数据库的服务 原因二:jdbc:oracle.....有错误

原因:没有导入驱动包------导入驱动包:重新部署项目 >>>表示这个方法没有定义,如果你确定你写了这个方法

但是就是说没有定义原因是:重新部署项目。

八、java.net.BindException: Address already in use: JVM_Bind14:02 2013/5/13

这个错误的意思就是:你已经开启了tomcat 但是不是由myeclipse启动 方法一:进入机房的tomcat安装目录:bin----右键点击tomcat6w.exe

点击stop按钮。如果这里tomcat没有启动查看方法二、

方法二、重启myeclipse

九、java.lang.ClassNotFoundException: servlet.Goods_Sel_Servlet1

这个错误的意思就是:服务器找不到servlet包下面的

Goods_Sel_Servlet这个类,你就要起查看servlet包下面

是不是有这个类,类名要和web.xml中的类名一致!!

十、java.lang.IllegalArgumentException: Invalid Goods_Sel_Servlet in servlet mapping

这个错误的意思就是:在servlet的配置出错 解决方法:在web.xml文件找到

Goods_Sel_Servlet 改为:

/Goods_Sel_Servlet

十一、java.lang.NumberFormatException: null

上面第一个异常的意思是:把null的数据转换为整数出错 int page = Integer.parseInt(spage); spage=null;

java.lang.NumberFormatException: “ ”

上面第一个异常的意思是:把“”的数据转换为整数出错 int page = Integer.parseInt(spage); spage=“”; 十二,ognl.NoSuchPropertyException: action.HouseAction.sMap

没有找到属性异常

十三,java.lang.IllegalStateException

非法参数状态异常

十四:启动报错Line:209-com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'audao' defined in file

[E:\\Y2\\Struts2.1\\.metadata\\.me_tcat\\webapps\\paimai\\WEB-INF\\classes\\applicationContext_common.xml]: Cannot resolve reference to bean

'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file

[E:\\Y2\\Struts2.1\\.metadata\\.me_tcat\\webapps\\paimai\\WEB-INF\\classes\\applicationContext_common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: entity.House

Web.xml中sping没有配置

十五 Ibatid错误 dao的实现类中的参数错误

Exception in thread \com.ibatis.sqlmap.client.SqlMapException: There is no statement named in this SqlMap.

//Xml里面配置错误,把resultMap改成resultClass

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hunamAction' defined in ServletContext resource [/WEB-INF/config/applicationContexts/applicationContext-action.xml]: Cannot resolve reference to bean 'hfbiz' while setting bean property 'hfBiz'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hfbiz' defined in ServletContext resource [/WEB-INF/config/applicationContexts/applicationContext-biz.xml]: Cannot resolve reference to bean 'hfdao' while setting bean property 'hfDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hfdao' defined in ServletContext resource [/WEB-INF/config/applicationContexts/applicationContext-dao.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/config/applicationContexts/applicationContext-common.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/config/SqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:

java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/select'. Cause: com.ibatis.sqlmap.client.SqlMapException: There is no result map named humanfile in this SqlMap.

十六 java.lang.reflect.InvocationTargetException

类型转换异常

十七java.lang.NoClassDefFoundError: org/apache/commons/collections/map/MultiKeyMap 十八

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transferAction' defined in ServletContext resource [/WEB-INF/config/applicationContexts/applicationContext-action.xml]: Cannot resolve reference to bean 'tranferbiz' while setting bean property 'transferBiz'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tranferbiz' is defined

//Xml 里面配置错误,action 中biz 名与biz 中的biz不匹配 十九

java …… 此处隐藏:3040字,全部文档内容请下载后查看。喜欢就下载吧 ……

常见的MyEclipse错误.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/592150.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)