Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload function could not work correctly #4

Open
leeaee opened this issue Dec 1, 2017 · 3 comments
Open

Upload function could not work correctly #4

leeaee opened this issue Dec 1, 2017 · 3 comments

Comments

@leeaee
Copy link

leeaee commented Dec 1, 2017

<act.version>1.5.3</act.version>
<act-morphia.version>1.2.1</act-morphia.version>
<act-storage.version>0.11.0</act-storage.version>
<osgl-storage.version>1.2.0</osgl-storage.version>

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

@greenlaw110
Copy link
Collaborator

@leeaee can you try act-storage-0.12.0-BETA-1?

@leeaee
Copy link
Author

leeaee commented Dec 6, 2017

act-storage-0.12.0-BETA-1 still has same issue.

@greenlaw110
Copy link
Collaborator

@leeaee are you able to provide a project that reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants