You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload file function could not work with the latest act and act-storage.
Error trace:
Exception in thread "XNIO-1 task-1" java.lang.NoSuchMethodError: act.util.UploadFileStorageService.getFile(Ljava/lang/String;)Ljava/io/File;
at act.util.UploadFileStorageService._store(UploadFileStorageService.java:82)
at act.util.UploadFileStorageService.store(UploadFileStorageService.java:73)
at act.data.ApacheMultipartParser.parse(ApacheMultipartParser.java:57)
at act.app.ActionContext.bodyParams(ActionContext.java:415)
at act.app.ActionContext.getBody(ActionContext.java:402)
at act.app.ActionContext.paramVal(ActionContext.java:384)
at act.inject.param.StringValueResolverValueLoader.load(StringValueResolverValueLoader.java:42)
at act.inject.param.JsonParamValueLoader.load(JsonParamValueLoader.java:67)
at act.inject.param.ScopedParamValueLoader.load(ScopedParamValueLoader.java:49)
at act.inject.param.ParamValueLoaderService.loadMethodParams(ParamValueLoaderService.java:182)
at act.handler.builtin.controller.impl.ReflectedHandlerInvoker.params(ReflectedHandlerInvoker.java:720)
at act.handler.builtin.controller.impl.ReflectedHandlerInvoker.handle(ReflectedHandlerInvoker.java:311)
at act.handler.builtin.controller.ControllerAction.handle(ControllerAction.java:53)
at act.handler.builtin.controller.RequestHandlerProxy._handle(RequestHandlerProxy.java:501)
at act.handler.builtin.controller.RequestHandlerProxy.handle(RequestHandlerProxy.java:206)
at act.handler.DelegateRequestHandler.handle(DelegateRequestHandler.java:47)
at act.route.Router$ContextualHandler.handle(Router.java:1341)
at act.xio.NetworkHandler$3.run(NetworkHandler.java:150)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Reproduce:
Update act and act-storage to the target version of demo project upload
Activity
greenlaw110 commentedon Dec 6, 2017
@leeaee can you try
act-storage-0.12.0-BETA-1?leeaee commentedon Dec 6, 2017
act-storage-0.12.0-BETA-1still has same issue.greenlaw110 commentedon Oct 25, 2018
@leeaee are you able to provide a project that reproduce this issue?