SSH开发异常解决方案
SSH开发错误解决方案
[Parameters] Parameters: Invalid chunk ignored
改错误为在action中尝试访问没有定义的bean attribute,在访问前应添加空值判断语句:
if (bType.getId() != null || bType.getId().equals("null"))
Hibernage 错误:
ERROR [org.hibernate.proxy.BasicLazyInitializer] - <CGLIB Enhancement failed: com.llz.empolder.model.Hroomer> java.lang.ExceptionInInitializerError at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:116) at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
解决方法:
Spring 和 Hibernate 共用的一些 jar 文件发生了版本冲突,
删除
asm-2.2.3.jar
asm.jar
asm-attrs.jar
asm-commons-2.2.3.jar
asm-util-2.2.3.jar
还有记得删除服务器上的工程在重新发布。。
org.jdom.Document is not available so the jdom converter will not load
2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info 信息: DWR Version 2.0.5 starting. 2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info 信息: - Servlet Engine: Apache Tomcat/6.0.10 2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info 信息: - Java Version: 1.6.0_02 2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info 信息: - Java Vendor: Sun Microsystems Inc. 2009-8-16 10:18:40 org.directwebremoting.util.CommonsLoggingOutput info 信息: Probably not an issue: org.jdom.Document is not available so the jdom converter will not load. This is only an problem if you wanted to use it. 2009-8-16 10:18:40 org.directwebremoting.util.CommonsLoggingOutput info 信息: Probably not an issue: org.jdom.Element is not available so the jdom converter will not load. This is only an problem if you wanted to use it. 问题解决方案:在网上下了个xalan.jar 导入工程 虽然信息没消失 但是dwr 却可以用了、、、 原因:(转的) 网上很容易找到一篇关于fckeditor的java文件上传扩展的帖子。但是,实践的时候经常会有人遇到servlet error的报错。如果有log,或正在debug,可以看到报错信息:java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:821) at com.fredck.FCKeditor.connector.ConnectorServlet.doGet(ConnectorServlet.java:151) 找不到TreeWalker这个类。 原本这个类是包含在xalan.jar中的,但是xalan-j2.7.0版的发布包中,将serializer包中的类单独打包成serializer.jar,不再包含在xalan.jar中,所以才会即使添加了xalan.jar也无法找到该类,添加后即可解决问题。 网上的相关资料: > You need to include serializer.jar file also. This file includes the > serializer. In the Xalan Java 2.7 release, serializer code is included in > this jar file. The release 2.6 has serializer code included in the > xalan.jar file. :我的总结是:一般来说fckeditor出现问题首先web.xml里面是否配置正确,然后看是目录否权限问题 第三可能是xalan.jar不存在。 解决方法:到 http://apache.justdn.org/xml/xalan-j/binaries/下载 xalan-j_2_7_0-bin-2jars.zip,解压后把 xalan.jar,serializer.jar拷贝到应用的lib目录下就可以解决了。 注意需要serializer.jar文件 还有xalan.jar的没有也有可能影响dwr的ajax无法使用问题 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/Leiffort/archive/2009/08/16/4451131.aspx
AOP+Spring时发现AOP不起作用,提示信息是:
Bean 'org.springframework.aop.config.internalAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
即使更改了Jar已经类调用方式也不行,后来在<aop:config> 加了一段参数:proxy-target-class="true",问题搞定了。