at org.noear.solon.SolonApp.tryHandle(SolonApp.java:467)
at org.noear.solon.boot.smarthttp.http.SmHttpContextHandler.handleDo(SmHttpContextHandler.java:125)
at org.noear.solon.boot.smarthttp.http.SmHttpContextHandler.handle0(SmHttpContextHandler.java:103)
at org.noear.solon.boot.smarthttp.http.SmHttpContextHandler.lambda$handle$0(SmHttpContextHandler.java:88)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:775)
Caused by: java.lang.invoke.LambdaConversionException:
Invalid receiver type class org.noear.solon.core.handle.UploadedFile;
not a subtype of implementation receiver type class org.noear.solon.core.handle.DownloadedFile
at java.lang.invoke.AbstractValidatingLambdaMetafactory.validateMetafactoryArgs(AbstractValidatingLambdaMetafactory.java:240)
at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:303)
at java.lang.invoke.CallSite.makeSite(CallSite.java:302)
... 52 more
按照文档配置了 solon 环境,但在上传文件的时候报错。
solon-2.9.3
用 minioClient 测试了地址和 bucket,是正常可以访问的。
测试项目地址:https://gitee.com/gridsoft/x-file-storage-solon-test