java.lang.ClassNotFoundException: org.apache.commons.codec.DecoderException 异常

感情迁移 提交于 2021-01-27 03:09:04

遇到的异常:

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

 本人亲测没问题!

  

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!