摘要:
http://pwu-developer.blogspot.com/2010/01/nullpointerexception.html Maven is great build tool making it easy to fetch all the library dependencies for 阅读全文
摘要:
CXF 的 wsdl2java.bat 生产的代码,拷贝到目录,进行调研 web service接口时,抛出错误: Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.service.factory. 阅读全文
摘要:
CXF调用web service报错:java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLReader.readWSDL 原因,wsdl jar报冲突,系统中有一个 wsdl4j-1.5.1.jar 和一个 CXF引入的 wsdl4j-1.6.x.jar, 阅读全文
摘要:
value = URLDecoder.decode(request.getParameter(paraName), "UTF-8"); 前端用了 encodeURI 来编码参数,后端用 URLDecoder 解码,报错: java.lang.IllegalArgumentException: URL 阅读全文
摘要:
ajax 提交时,默认采用的是 get提交方式,数据是放在头部的,数据量超过了限制,所以报错。 改成 post提交,将数据放到 body 中。解决问题。 其他解决方法: the proper solution is to add the following property under http-l 阅读全文
摘要:
在某场景中一句简单的js: $("#changeOption").text("增加"); 在 IE8 下面报错:'意外地调用了方法或属性访问' 改成:$("#changeOption").html("增加"); 报同样的错。 改成:document.getElementById('changeOpt 阅读全文
摘要:
最近项目中,遇到一个报错: java.lang.OutOfMemoryError: unable to create new native thread 报错的场景是:一个消息的群发,群里总共有50多个人,一群发 tomcat 就崩溃了,查看日志报上面的错误。 这个错误的基本情况是,没有内存来创建新 阅读全文
摘要:
Log4j报错: log4j:ERROR Failed to rename [/log/xxx.log] to [/log/xxx.log.2016-11-23.log] google了一下发现是个bug: https://bz.apache.org/bugzilla/show_bug.cgi?id 阅读全文
摘要:
直接上代码: 拦截方法:com.xxxx.wx.mapper.MymessageMapper.insert(Mymessage message) 插入消息记录之后,马上推送消息。 配置: spring配置文件中加入扫描: <context:component-scan base-package="c 阅读全文
摘要:
解决方法: http://stackoverflow.com/questions/10482563/aop-java-lang-illegalargumentexception-error-at-0-cant-find-referenced-poi updating the AspectJ libr 阅读全文