总结错误由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“错误总结”。
错误分析:启动tomcat错误
异常:the port already use , jvm_bin
错误原因: 端口被占用
错误改正: 1.修改conf/server.xml文件 修改下列端口或关闭占用相应端口的程序。
connectionTimeout=“20000”redirectPort=“8443” />
错误分析:cmd启动tomcat错误
异常:The CATALINE_HOME enviroment variable is not defined correctly,This enviroment variable is needed to run this program
错误原因: 服务名与tomcat环境变量不一致(服务名与tomcat环境变量名应一致)错误改正: 1.把TOMCAT_HOMR 改为 CATALINE_HOME
错误分析: seion工厂配置错误
resolve reference to bean 'seionFactory' while setting bean property'seionFactory';
clapath:conf/hibernate.cfg.xml
cla org.springframework.web.util.Log4jConfigListener java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter:
错误分析:连接池错误
异常:Cannot create PoolableConnectionFactory(Unknown database 'text')
错误分析:缺少spring参数错误
异常: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource
[/WEB-INF/applicationContext.xml] org.xml.sax.SAXParseException:XML
错误分析:缺少Log4j 参数错误
Exception sending context initialized event
org.springframework.web.util.Log4jConfigListener to listener instance of cla
错误分析:Ztree异步加载错误
异常:Uncaught ReferenceError: zTreeOnAsyncSucce is not defined
浏览器: zTree init 失败
错误原因:找不到 seting配置数据中的callback 中的方法 或filter中方法
错误改正:删除无用的配置数据
错误分析:Tomcat启动错误
异常:Exception starting filter struts2Unable to load configuration.-[unknown location] 浏览器异常: zTree init 失败
错误原因:jar包有冲突, 应该是XML解析包有冲突.检查发布后的WEB-INF/lib有两个XML解析包:xml-apis.jar和xerces-2.6.2.jar 这种错误真正原因不是JDK 6和Struts 2冲突, 而是MyEclipse Hibernate 类库中多了两个包: xml-apis.jar和xerces-2.6.2.jar,这两个包的功能和JDK的冲突了。
解决办法: 1.删除发布后目录的 WEB-INF/lib/ 下的xerces-2.6.2.jar这个文件;2.或者使用JDK1.5来启动Tomcat 6.错误分析:Windows端口不能识别
信息: Port busy 5 java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
错误原因:Tomcat中的端口有不符合端口要求的,端口可能被改为默认5
解决办法: 修改端口号
错误分析:Hibernate 配置错误
异常:org.springframework.orm.hibernate3.HibernateSystemException: ids for this cla must be manually aigned before calling save()org.springframework.orm.hibernate3.HibernateJdbcException:
exception on Hibernate data acce
解决办法:对应 id改为自动增长 JDBC如果id不为自动增长 id值不能为空
错误分析:Hibernate 配置错误
异常: Could not read
org/leopard/model/file/File.hbm.xml
Caused by:
错误原因: hibernate映射文件配置格式错误 mappings from resource:
解决办法: 检查对应hibernate映射文件格式是否错误
错误分析:文件上传错误
异常: : the request was rejected because its size(33647288)exceeds the configured maximum(2097152)
错误原因:上传文件大于最大文件大小
解决办法:
解决办法: 在执行sql语句之前
Seion.clean()
getHiberNate().clean;
spring配置 AOP
异常 no matching editors or conversion strategy found
解决方案 加入 roxy-target-cla=“true”
java.lang.reflect.InvocationTargetException
a different object with the same identifier value was already aociated with the seion: [org.leopard.model.user.User#1];nested exception is : a different object with the same identifier value was already aociated with the seion:
[org.leopard.model.user.User#1]