本文共 15918 字,大约阅读时间需要 53 分钟。
拷贝过来了,供自己学习分享使用
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 stacktrace1.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服务能够自动启动了。
将不定期更新资源,欢迎持续关注
想获得更多的学习知识请关注微信公众号:西北码农或扫下方二维码
转载地址:http://ycxca.baihongyu.com/