遇到的异常:
java.lang.ClassNotFoundException: org.apache.commons.codec.DecoderException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at org.apache.commons.httpclient.HttpMethodBase.<init>(Unknown Source)
at org.apache.commons.httpclient.methods.ExpectContinueMethod.<init>(Unknown Source)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.<init>(Unknown Source)
at org.apache.commons.httpclient.methods.PostMethod.<init>(Unknown Source)
at org.becit.process.SMSHttpClient.getPostMethod(SMSHttpClient.java:132)
at org.becit.process.SMSHttpClient.sendSMS(SMSHttpClient.java:39)
at org.compiere.util.EMail.sendHtmlEmailWith73(EMail.java:114)
at org.compiere.model.MCRMLead.afterSave(MCRMLead.java:158)
at org.compiere.model.PO.saveFinish(PO.java:2055)
at org.compiere.model.PO.saveNew(PO.java:2611)
at org.compiere.model.PO.save(PO.java:1977)
at org.compiere.model.MUser.createLead(MUser.java:1229)
解决办法:
前往:http://commons.apache.org/proper/commons-codec/download_codec.cgi
选中途中的下载到本地,提取里面的jar包:(如图所示)
将commons-codec-1.14.jar安装到项目中,ok
本人亲测没问题!
来源:oschina
链接:https://my.oschina.net/u/4403897/blog/4183287