开发者社区> 问答> 正文

上传文件报错

java.lang.RuntimeException: Unsupported algorithm: HmacSHA1
at com.aliyun.common.auth.HmacSHA1Signature.sign(HmacSHA1Signature.java:80)
at com.aliyun.common.auth.HmacSHA1Signature.computeSignature(HmacSHA1Signature.java:43)
at com.aliyun.openservices.oss.internal.OSSRequestSigner.sign(OSSRequestSigner.java:37)
at com.aliyun.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:150)
at com.aliyun.common.comm.ServiceClient.sendRequest(ServiceClient.java:136)
at com.aliyun.openservices.oss.internal.OSSOperation.send(OSSOperation.java:59)
at com.aliyun.openservices.oss.internal.OSSObjectOperation.putObject(OSSObjectOperation.java:76)
at com.aliyun.openservices.oss.OSSClient.putObject(OSSClient.java:283)
at com.ali.ad.util.FileOperate.putObject(FileOperate.java:728)
at com.ali.ad.web.action.AdAction.adSave(AdAction.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.dlk.sweb.mvc.ControllerServlet.executeAction(ControllerServlet.java:354)
at com.dlk.sweb.mvc.ControllerServlet.process(ControllerServlet.java:182)
at com.dlk.sweb.mvc.ControllerServlet.doPost(ControllerServlet.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ali.ad.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760)
at java.lang.Thread.run(Thread.java:662)
我用了两台电脑测试配置一样,JDK一样.为什么一个能上传成功,一个报错

展开
收起
马上成功 2014-05-27 15:51:32 9499 0
2 条回答
写回答
取消 提交回答
  • 回 1楼阿里云服务的帖子
    解决方法在哪里,帖子已经被删除了
    2017-05-02 16:14:23
    赞同 展开评论 打赏
  • 分享阿里云支持与服务团队最佳实践、经典案例与故障排查。
    回 楼主(马上成功) 的帖子
    楼主好
    建议您点击此链接 http://help.aliyun.com/view/13438814.html  查看一下, 是否对您有所帮助,谢谢!

    -------------------------

    回 2楼(长岛冰茶2) 的帖子
    亲~建议你通过下面两个方式尝试一下
    1、如果是自己实现的hmacsha1算法 建议他换成直接用sdk
    2、升级jdk版本看下
    如果仍有报错,可以通过工单提交给我们的工程师,为您准确定位一下问题~~~
    2014-05-28 10:28:54
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载