johnniang 刚刚试了一下,发现在本地电脑下载的zip文件上传报错,但是用 安装主题的方式上传是成功的
zip报错信息如下:
2019-12-01 08:51:06.784 WARN 13086 --- [ XNIO-1 task-2] r.h.app.service.impl.ThemeServiceImpl : Property file was not found in [/tmp/halo2166038562280755405/hexo-theme-icarus-master/hexo-theme-icarus-master]
2019-12-01 08:51:06.785 INFO 13086 --- [ XNIO-1 task-2] run.halo.app.utils.FileUtils : Deleting [/tmp/halo2166038562280755405]
2019-12-01 08:51:06.816 INFO 13086 --- [ XNIO-1 task-2] run.halo.app.utils.FileUtils : Deleted [/tmp/halo2166038562280755405] successfully
2019-12-01 08:51:06.819 ERROR 13086 --- [ XNIO-1 task-2] r.h.app.core.ControllerExceptionHandler : Captured an exception
run.halo.app.exception.ThemePropertyMissingException: /tmp/halo2166038562280755405/hexo-theme-icarus-master/hexo-theme-icarus-master 娌℃湁璇存槑鏂囦欢
at run.halo.app.service.impl.ThemeServiceImpl.lambda$getThemePropertyPath$9(ThemeServiceImpl.java:778) ~[classes!/:1.1.1]
at java.util.Optional.orElseThrow(Optional.java:290) ~[na:1.8.0_191]
at run.halo.app.service.impl.ThemeServiceImpl.getThemePropertyPath(ThemeServiceImpl.java:778) ~[classes!/:1.1.1]
at run.halo.app.service.impl.ThemeServiceImpl.getPropertyOfNullable(ThemeServiceImpl.java:784) ~[classes!/:1.1.1]
at run.halo.app.service.impl.ThemeServiceImpl.getProperty(ThemeServiceImpl.java:829) ~[classes!/:1.1.1]
at run.halo.app.service.impl.ThemeServiceImpl.add(ThemeServiceImpl.java:443) ~[classes!/:1.1.1]
at run.halo.app.service.impl.ThemeServiceImpl.upload(ThemeServiceImpl.java:420) ~[classes!/:1.1.1]
at run.halo.app.controller.admin.api.ThemeController.uploadTheme(ThemeController.java:146) ~[classes!/:1.1.1]
at run.halo.app.controller.admin.api.ThemeController$$FastClassBySpringCGLIB$$e8e9d45c.invoke(<generated>) ~[classes!/:1.1.1]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at run.halo.app.core.ControllerLogAop.controller(ControllerLogAop.java:41) ~[classes!/:1.1.1]
at sun.reflect.GeneratedMethodAccessor196.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) ~[spring-aop-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at run.halo.app.controller.admin.api.ThemeController$$EnhancerBySpringCGLIB$$99b481d3.uploadTheme(<generated>) ~[classes!/:1.1.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]