eclipse错误及解决方法

本文涉及的产品
云数据库 RDS SQL Server,独享型 2核4GB
简介: 拷贝过来了,供自己学习分享使用1.不跳转。把struts.xml中/orders-index.jsp的SUCCESS改为success2.严重: Servlet.service() for servlet default threw exceptionjava.sql.SQLException: ORA-00932: inconsistent datatypes: expected DATE got NUMBER。

拷贝过来了,供自己学习分享使用

1.不跳转。把struts.xml中/orders-index.jsp
的SUCCESS改为success
2.严重: Servlet.service() for servlet default threw exception
java.sql.SQLException: ORA-00932: inconsistent datatypes: expected DATE got NUMBER。
3.严重: Servlet.service() for servlet default threw exception
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [cn.com.goldmind.crm.test.Action.BookTypeAction$$EnhancerByCGLIB$$20332272] to required type [cn.com.goldmind.crm.test.Entity.BookType] for property 'bookType'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [cn.com.goldmind.crm.test.Action.BookTypeAction$$EnhancerByCGLIB$$20332272] to required type [cn.com.goldmind.crm.test.Entity.BookType] for property 'bookType': no matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [cn.com.goldmind.crm.test.Action.BookTypeAction$$EnhancerByCGLIB$$20332272] to required type [cn.com.goldmind.crm.test.Entity.BookType] for property 'bookType': no matching editors or conversion strategy found
-=-----------------------------------------
>多了一个>,错误了,sqlmap必须match sql*|select*|insert*|.........
-------------------
找不到pageNum.value。因为form的name与iframe的name重名了
-----------------------
Attribute "parame
rterClass" must be declared for element type "insert". 类的路径和名称单词拼错了
5.There is no READABLE pro
perty named 'amount ' in class 'gmt.boss.channel.ChannelCharge.Entity.Margin.MarginEntity'
Caused by: 只是因为#amount #后多了个空格呀

7.Could not initialize class. Cause: java.lang.ClassNotFoundE
xception: gmt.boss.channel.ChannelCharge.Entity.Margin.MaginEntity
--------------------
<2008-11-24 上午10时18分35秒 CST>
ssion data.
java.io.NotSerializableException: org.apache.commons.dbcp.BasicDataSource
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
Truncated. see log file for complete stacktrace

-----------------------------------------------
Cause: com.ibatis.sqlmap.client.SqlMapException: Error in XmlSqlMapC
lientBuilder. Alias name conflict occurred. The alias 'channeldetailed' is already mappe
d to the value 'null'.

------------------

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.

02008-8-20 8:01:15 org.apache.struts.action.RequestProcessor processException
警告: Unhandled Exception thrown: class java.lang.NullPointerException
2008-8-20 8:01:15 org.apache.catalina.core.ApplicationContext log
信息: java.lang.NullPointerException
sqlServer没开,晕

严重: Exception loading sessions from persistent storage
java.io.InvalidClassException: com.form.ApplicationForm; local class incompatible: stream classdesc serialVersionUID = -542564554742344487, local class serialVersionUID = 5322011595094940979

警: Unhandled Exception thrown: class java.io.FileNotFoundException
2008-8-20 9:42:04 org.apache.catalina.core.ApplicationContext log
信息: D:\ex\.metadata\.plugins\com.genuitec.eclipse.easie.tomcat.myeclipse\tomcat\webapps\Praxis\upload (拒绝访问。)
GBK
上传文件那块的问题,当上传文件为空时就出现这样的问题

严重: Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.vo.OperationApplicationformVo
GBK
0java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]将数据类型 nvarchar 转换为 numeric 时出错。
把数据库中的numeric改为varchar就可以了

警告: Cannot serialize session attribute ApplicationForm for session 37B0300C3E6AA8B4075ADE8C42116032
java.io.NotSerializableException: com.vo.OperationApplicationformVo
重启服务器时出的,不影响程序,可能是因为sesseion中有值没关闭的原因

严重: Invalid path /newOperation/newOperation was requested
超联接到NewOperationAction时出的,办理新业务即可

200-8-18 21:54:14 org.apache.catalina.core.ApplicationContext log
信息: /newOperation/attachFile.jsp(62,4) The end tag "</logic:notEmpty" is unbalanced
Jsp页面有错误

2008-8-18 21:56:22 org.apache.struts.action.RequestProcessor processMapping
严重: Invalid path /newOperation/action was requested
GBK
和上上个问题一样

严重: Servlet action threw unload() exception
javax.servlet.ServletException: Servlet.destroy() for servlet action threw exception
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Document root element "sqlMapConfig", must match DOCTYPE root "null".
Caused by: java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Document root element "sqlMapConfig", must match DOCTYPE root "null".
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [gmt.boss.com.goldmind.qdgl.ChannelClearArrearage.Action.ArrearCompanyData.ArrearCompanyApplyAction] for bean with name 'scopedTarget.clearArrearageCompanyApply' defined in ServletContext resource [/WEB-INF/applicationContext_test.xml]; nested exception is java.lang.ClassNotFoundException: gmt.boss.com.goldmind.qdgl.ChannelClearArrearage.Action.ArrearCompanyData.ArrearCompanyApplyAction
Caused by: java.lang.ClassNotFoundException: gmt.boss.com.goldmind.qdgl.ChannelClearArrearage.Action.ArrearCompanyData.ArrearCompanyApplyAction

警告: Unhandled Exception thrown: class java.io.FileNotFoundException
2008-8-21 6:35:30 org.apache.catalina.core.ApplicationContext log
信息: D:\ProgramFile\Tomcat 6.0\webapps\Praxis\upload\eclipceError.doc (系统找不到指定的路径。)
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: cn.wy.entity.TblFwxx
Caused by: org.hibernate.MappingException: Association references unmapped class: cn.wy.entity.TblFwxx
applicationContext.xml没配

严重: Servlet.service() for servlet default threw exception
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IssuanceinfoLogicDAO' is defined
BaseAction.java文件中return (IssuanceinfoLogicDAO)webApplicationContext.getBean("issuanceinfoLogicDAO");
issuanceinfoLogicDAO(logicDao中)对应application中的bean

严重: Servlet.service() for servlet default threw exception
java.lang.NoSuchMethodException: com.highcom.action.InformationIssuance.getOneInfo()
at java.lang.Class.getMethod(Unknown Source)
Action的方法中不能有参数

严重: Servlet.service() for servlet default threw exception
java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.highcom.bean.issuanceInfo.Issuanceinfo
at com.highcom.dao.IssuanceinfoDAO.getInfo(IssuanceinfoDAO.java:41)


严重: Servlet.service() for servlet default threw exception
org.apache.jasper.JasperException: /InformationIssuance/upd_information.jsp(23,64) equal symbol expected

" id="loginUrl">

获取的是值,不是对象
Action不能传对象

严重: Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/jsp/informationissuance/info_005findex_jsp (wrong name: org/apache/jsp/InformationIssuance/info_005findex_jsp)
applicationContext.xml文件没改

Servlet.service() for servlet default threw exception
java.lang.NullPointerException
at com.highcom.action.informationissuance.InformationIssuance.execute(InformationIssuance.java:19)
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logicDAO' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'issuanceinfoDAO' while setting bean property 'issuanceinfoDAO'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.highcom.dao.infomationissuance.IssuanceinfoDAO] for bean with name 'issuanceinfoDAO' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.highcom.dao.infomationissuance.IssuanceinfoDAO
applilcationContext.xml中单词拼错了

严重: Servlet.service() for servlet default threw exception
java.lang.NoSuchMethodException: com.highcom.action.informationissuance.InformationIssuance.create()
Struts2的action中,方法没有参数,我在create()中加了参数

严重: Servlet.service() for servlet default threw exception
org.hibernate.PropertyValueException: not-null property references a null or transient value: com.highcom.bean.Issuanceinfo.infoContent
at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
严重: Couldn't find a destroy method named 'close' on bean with name 'sessionFactory'
2008-9-22 10:26:34 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logicDAO' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'railwayInfoDAO' while setting bean property 'railwayInfoDAO'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'railwayInfoDAO' is defined
railwayInfoDAO,railwayInfoAciton中没有内容

严重: Servlet.service() for servlet default threw exception
org.hibernate.hql.ast.QuerySyntaxException: station is not mapped [from station station ,stage stage where station.signs = '1' and station.stageByIntoStation.stageId = stage.stageId]
Station原来HQL语句中也分大小写

严重: Servlet.service() for servlet default threw exception
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [cn.com.goldmind.crm.test.Action.BookTypeAction$$EnhancerByCGLIB$$20332272] to required type [cn.com.goldmind.crm.test.Entity.BookType] for property 'bookType'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [cn.com.goldmind.crm.test.Action.BookTypeAction$$EnhancerByCGLIB$$20332272] to required type [cn.com.goldmind.crm.test.Entity.BookType] for property 'bookType': no matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [cn.com.goldmind.crm.test.Action.BookTypeAction$$EnhancerByCGLIB$$20332272] to required type [cn.com.goldmind.crm.test.Entity.BookType] for property 'bookType': no matching editors or conversion strategy found
applicatcionContext_text.xml中的
   class="cn.com.goldmind.crm.test.Action.BookTypeAction"
   scope="session">
  

   bookType和实体类重名了,改了就好

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. Cause: 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: org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.
Caused by: java.lang.RuntimeException: Error occurred. Cause: 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: org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.


2008-11-06 14:29:01 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2008-11-06 14:29:01 [org.springframework.jdbc.support.SQLErrorCodesFactory]-[INFO] SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
什么都好使,也没有什么错误,就是无法插入到数据库
没有错误是因为你Try Catch了..。去掉后是java.sql.SQLException missing comma(逗号)错误.。是因为sql语句中多了一个单词

Caused by: 
org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
少包cglib。。还有两种317k的可以,错误少

Root cause of ServletException.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.clearArrearageCompanyApply': Scope 'session' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request? If you are actually operating within a web request and still receive this message,your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:33)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.getTarget(Cglib2AopProxy.java:662)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:612)
Truncated. see log file for complete stacktrace
java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request? If you are actually operating within a web request and still receive this message,your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:102)
at org.springframework.web.context.request.SessionScope.get(SessionScope.java:88)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:283)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:33)
Truncated. see log file for complete stacktrace

1.result 'null' not found,原因是中少了type="redirect-action"

2.要放在

-----------------------------------------------------------------

最近在使用Eclipse的debug功能时,出现了一个莫名其妙的错误:Cannot find a free socket for the debugger。

在网上找了好久都没有找到解答。大部分人说是防火墙没有关闭的问题。可我防火墙已经关闭了还是有这样的问题。看来jdt的源码,找到了抛出Cannot find a free socket for the debugger这个错误信息的原因是由于没有找到空闲的socket。后来发现了系统服务中ICS服务没有启动,手动启动该服务也不行。于是进入命令行:

>netsh winsock reset

执行完上述命令后,重启电脑,ICS服务能够自动启动了。

将不定期更新资源,欢迎持续关注


想获得更多的学习知识请关注微信公众号:西北码农或扫下方二维码

相关实践学习
使用SQL语句管理索引
本次实验主要介绍如何在RDS-SQLServer数据库中,使用SQL语句管理索引。
SQL Server on Linux入门教程
SQL Server数据库一直只提供Windows下的版本。2016年微软宣布推出可运行在Linux系统下的SQL Server数据库,该版本目前还是早期预览版本。本课程主要介绍SQLServer On Linux的基本知识。 相关的阿里云产品:云数据库RDS&nbsp;SQL Server版 RDS SQL Server不仅拥有高可用架构和任意时间点的数据恢复功能,强力支撑各种企业应用,同时也包含了微软的License费用,减少额外支出。 了解产品详情:&nbsp;https://www.aliyun.com/product/rds/sqlserver
目录
相关文章
|
C语言 Android开发 Windows
解决windows下eclipse创建project时没有include导致出现“unresolved inclusion: &lt;stdio.h&gt;”错误的方法
解决windows下eclipse创建project时没有include导致出现“unresolved inclusion: &lt;stdio.h&gt;”错误的方法
解决windows下eclipse创建project时没有include导致出现“unresolved inclusion: &lt;stdio.h&gt;”错误的方法
|
Java Maven Android开发
Eclipse使用Maven创建Web时错误:Could not resolve archetype
转载自:http://blog.csdn.net/afgasdg/article/details/12757433
203 0
Eclipse使用Maven创建Web时错误:Could not resolve archetype
|
Java Maven Android开发
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
512 0
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
|
IDE Java 程序员
Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总
Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总
704 0
Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总
|
11月前
|
Java Android开发 Windows
Eclipse启动时发生An internal error occurred during: “Initializing Java Tooling“.错误的解决方法
Eclipse启动时发生An internal error occurred during: “Initializing Java Tooling“.错误的解决方法
|
Android开发
eclipse中汉字对齐错误
eclipse中汉字对齐错误
62 0
|
应用服务中间件 Apache Android开发
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server。
225 0
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server
|
Java Android开发
在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile
在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile
96 0
在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile
10S
|
Java Maven Android开发
Eclipse maven jar包自动引用版本错误
Eclipse maven jar包自动引用版本错误解决
10S
416 0
Eclipse maven jar包自动引用版本错误
|
Java Android开发
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决方法
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决
465 0
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决方法