- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个依赖于 Renjin + Forecast 包的解决方案,该包可以在本地运行,也可以在亚马逊的典型 EC2 服务器上运行。但是,当在弹性 beanstalk 环境上部署相同的解决方案时,我在初始化预测包时收到以下错误:
private InstanciaRenjin() throws Exception {
RenjinScriptEngineFactory factory = new RenjinScriptEngineFactory();
engine = factory.getScriptEngine();
engine.eval("rm(list = ls())");
engine.eval("library(forecast)");
engine.eval("library(hts)");
engine.eval("library(rpart)");
}
当在本地/常规 EC2 服务器上调用 engine.eval("library(forecast)");
行时,库将被加载并运行得很好。但是,在通过 64 位 Amazon Linux/2.7.5 为 Java 8 配置的 Elastic Beanstalk 上,我收到以下错误:
org.renjin.eval.EvalException: IOException while loading package org.renjin.cran:forecast: IOException while loading package org.renjin.cran:tseries: IOException while loading package org.renjin.cran:quantmod: IOException while loading package org.renjin.cran:TTR: IOException while loading package org.renjin.cran:curl: Could not replicate "file:///var/app/current/application.jar!/BOOT-INF/lib/renjin-core-0.9.2692.jar" as it does not exist.
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:224) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryGetNamespace(NamespaceRegistry.java:182) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:144) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:112) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.Packages.library(Packages.java:39) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.R$primitive$library.doApply(R$primitive$library.java:73) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.R$primitive$library.apply(R$primitive$library.java:34) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.special.InternalFunction.apply(InternalFunction.java:45) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:38) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:198) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.sexp.Closure.doApply(Closure.java:98) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.ClosureDispatcher.apply(ClosureDispatcher.java:80) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.ClosureDispatcher.applyClosure(ClosureDispatcher.java:51) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.sexp.Closure.apply(Closure.java:83) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateExpressionVector(Context.java:390) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:280) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:168) ~[renjin-script-engine-0.9.2692.jar!/:na]
at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:127) ~[renjin-script-engine-0.9.2692.jar!/:na]
at com.opsfactor.planning.support.utility.InstanciaRenjin.<init>(InstanciaRenjin.java:47) ~[support-0.1.0.jar!/:na]
at com.opsfactor.planning.support.utility.InstanciaRenjin.getInstance(InstanciaRenjin.java:32) ~[support-0.1.0.jar!/:na]
at com.opsfactor.planning.routines.planning.demand.DemandPlanning.geraDemandPlanDFUAgregado(DemandPlanning.java:45) ~[routines-0.1.0.jar!/:na]
at com.opsfactor.planning.services.planning.DemandPlanningService.geraDemandPlanDFUAgregadoComForecast(DemandPlanningService.java:276) ~[services-0.1.0.jar!/:0.1.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:871) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:777) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:870) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:855) [spring-webmvc-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177) [spring-security-web-5.0.0.RC1.jar!/:5.0.0.RC1]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.1.RELEASE.jar!/:5.0.1.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_181]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.23.jar!/:8.5.23]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]
Caused by: org.renjin.eval.EvalException: IOException while loading package org.renjin.cran:tseries: IOException while loading package org.renjin.cran:quantmod: IOException while loading package org.renjin.cran:TTR: IOException while loading package org.renjin.cran:curl: Could not replicate "file:///var/app/current/application.jar!/BOOT-INF/lib/renjin-core-0.9.2692.jar" as it does not exist.
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:224) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryGetNamespace(NamespaceRegistry.java:182) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:144) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:112) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.Namespace.initImports(Namespace.java:202) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:208) ~[renjin-core-0.9.2692.jar!/:na]
... 116 common frames omitted
Caused by: org.renjin.eval.EvalException: IOException while loading package org.renjin.cran:quantmod: IOException while loading package org.renjin.cran:TTR: IOException while loading package org.renjin.cran:curl: Could not replicate "file:///var/app/current/application.jar!/BOOT-INF/lib/renjin-core-0.9.2692.jar" as it does not exist.
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:224) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryGetNamespace(NamespaceRegistry.java:182) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:144) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:112) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.Namespace.initImports(Namespace.java:202) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:208) ~[renjin-core-0.9.2692.jar!/:na]
... 121 common frames omitted
Caused by: org.renjin.eval.EvalException: IOException while loading package org.renjin.cran:TTR: IOException while loading package org.renjin.cran:curl: Could not replicate "file:///var/app/current/application.jar!/BOOT-INF/lib/renjin-core-0.9.2692.jar" as it does not exist.
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:224) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryGetNamespace(NamespaceRegistry.java:182) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:144) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:112) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.Namespace.initImports(Namespace.java:202) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:208) ~[renjin-core-0.9.2692.jar!/:na]
... 126 common frames omitted
Caused by: org.renjin.eval.EvalException: IOException while loading package org.renjin.cran:curl: Could not replicate "file:///var/app/current/application.jar!/BOOT-INF/lib/renjin-core-0.9.2692.jar" as it does not exist.
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:224) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryGetNamespace(NamespaceRegistry.java:182) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:144) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.getNamespace(NamespaceRegistry.java:112) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.Namespace.initImports(Namespace.java:202) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:208) ~[renjin-core-0.9.2692.jar!/:na]
... 131 common frames omitted
Caused by: org.renjin.eval.EvalException: Could not replicate "file:///var/app/current/application.jar!/BOOT-INF/lib/renjin-core-0.9.2692.jar" as it does not exist.
at org.renjin.primitives.R$primitive$file$exists.apply(R$primitive$file$exists.java:46) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.special.InternalFunction.apply(InternalFunction.java:45) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:198) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.sexp.Closure.doApply(Closure.java:98) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.ClosureDispatcher.apply(ClosureDispatcher.java:80) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.ClosureDispatcher.applyClosure(ClosureDispatcher.java:51) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.sexp.Closure.apply(Closure.java:83) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.Comparison.and(Comparison.java:82) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.R$primitive$$amp$amp.doApply(R$primitive$$amp$amp.java:68) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.R$primitive$$amp$amp.apply(R$primitive$$amp$amp.java:29) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.special.IfFunction.apply(IfFunction.java:34) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:38) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:198) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.sexp.Closure.doApply(Closure.java:98) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.ClosureDispatcher.apply(ClosureDispatcher.java:80) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.ClosureDispatcher.applyClosure(ClosureDispatcher.java:51) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.sexp.Closure.apply(Closure.java:83) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluateCall(Context.java:407) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:282) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.evaluate(Context.java:264) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.packaging.NamespaceRegistry.tryLoad(NamespaceRegistry.java:214) ~[renjin-core-0.9.2692.jar!/:na]
... 136 common frames omitted
Caused by: org.apache.commons.vfs2.FileSystemException: Could not replicate "file:///var/app/current/application.jar!/BOOT-INF/lib/renjin-core-0.9.2692.jar" as it does not exist.
at org.apache.commons.vfs2.provider.AbstractFileSystem.replicateFile(AbstractFileSystem.java:418) ~[commons-vfs2-2.0.jar!/:2.0]
at org.renjin.eval.vfs.FastJarFileSystem.<init>(FastJarFileSystem.java:55) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.vfs.FastJarFileProvider.doCreateFileSystem(FastJarFileProvider.java:68) ~[renjin-core-0.9.2692.jar!/:na]
at org.apache.commons.vfs2.provider.AbstractLayeredFileProvider.createFileSystem(AbstractLayeredFileProvider.java:89) ~[commons-vfs2-2.0.jar!/:2.0]
at org.apache.commons.vfs2.provider.AbstractLayeredFileProvider.findFile(AbstractLayeredFileProvider.java:63) ~[commons-vfs2-2.0.jar!/:2.0]
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:693) ~[commons-vfs2-2.0.jar!/:2.0]
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:649) ~[commons-vfs2-2.0.jar!/:2.0]
at org.renjin.eval.Session.resolveFile(Session.java:323) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.eval.Context.resolveFile(Context.java:459) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.files.Files.fileExists(Files.java:245) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.R$primitive$file$exists.doApply(R$primitive$file$exists.java:86) ~[renjin-core-0.9.2692.jar!/:na]
at org.renjin.primitives.R$primitive$file$exists.apply(R$primitive$file$exists.java:35) ~[renjin-core-0.9.2692.jar!/:na]
... 171 common frames omitted
应用程序正在以 Jar 的形式部署。我们为错误消息中引用的 R 包(tseries、ttr、quantmod、curl)添加了额外的依赖项,但没有效果:
<dependency>
<groupId>org.renjin</groupId>
<artifactId>renjin-script-engine</artifactId>
<version>RELEASE</version>
</dependency>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>forecast</artifactId>
<version>8.4-b25</version>
</dependency>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>hts</artifactId>
<version>5.1.5-b5</version>
</dependency>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>rpart</artifactId>
<version>4.1-13-b18</version>
</dependency>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>tseries</artifactId>
<version>0.10-45-b13</version>
</dependency>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>quantmod</artifactId>
<version>0.4-13-b23</version>
</dependency>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>TTR</artifactId>
<version>0.23-3-b18</version>
</dependency>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>curl</artifactId>
<version>2.7-renjin-b8</version>
</dependency>
<!-- FIM RENJIN E PACOTES R -->
</dependencies>
<repositories>
<repository>
<id>bedatadriven</id>
<name>bedatadriven public repo</name>
<url>https://nexus.bedatadriven.com/content/groups/public/</url>
</repository>
</repositories>
jar 文件包含具有正确版本的所有必需库(renjin 和 R 包)。可能会发生什么?
最佳答案
这看起来像是 Renjin 中的一个错误,与沙盒环境中访问包资源的方式有关。
我正在这里修复:
https://github.com/bedatadriven/renjin/tree/servlet-resources
包含修复程序的版本应该很快就会发布。
关于java - Elastic Beanstalk 上的 Renjin 'IOException while loading package',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52893201/
我正在尝试将我的应用程序上载到Elastic Beanstalk,但是在节点预gyp安装--fallback-to-build上,npm安装失败。我尝试了各种版本的节点,但无济于事。似乎正在尝试获取一
每当我在 Elastic Beanstalk 中创建新环境时,我都会手动配置自定义 AMI ID、SNS 通知等,但我想自动完成,即,将设置(自定义 AMI ID、SNS、 key 对等)保存到一个配
我已使用以下方法连接到 Elastic Beanstalk: eb ssh XXXXXX --profile=xx 现在我想将一个文件复制到我的本地机器上,我该怎么做? 最佳答案 找出与 scp 一起
对于典型的 Java Web 应用程序,使用 Elastic Beanstalk 相对于手动创建 EC2 实例、设置 tomcat 服务器和部署等有哪些优势?负载平衡、监控和自动缩放是唯一的优势吗?
我有两个Elastic Search版本,一个是 7.3 ,另一个是 7.1 。我正在将flattened数据类型用于 Elastic Search 7.3 ,并且我也想在 Elastic Searc
我是 Elastic 和 spring-data-elastic 的新手。我一直在此处和网络的其他区域进行搜索,但到目前为止尚未找到我的问题的答案。我希望 SO 能够提供帮助。 我正在为我的Users
我有一个运行 PHP 的弹性 beanstalk 环境。在我的项目中,我有一个 .ebextensions 文件夹和一个名为“15-memorymonitor.config”的文件,其中包含以下内容;
我有 “更新”:Dockerrun.aws.json 中的“真” 当我更新 ECR 中的图像时,它应该自动更新 EC2 iontance 中的图像和容器。 但是当我在推送新图像后通过 ssh 进入实例
我有一个定义 Elastic Beanstalk 应用程序的 CloudFormation 模板。 我想扩展这个应用程序,即我希望端口 80 上的监听器重定向到 HTTPS。 AWS::Elastic
我在使用自定义 .ebextensions 文件部署 EB 实例时遇到问题。这是该文件中的相关部分: container_commands: 01_migrate: command: 'p
我已经使用带负载均衡器的 Elastic Beanstalk 创建了一个环境,并在各自的配置中分配了所有健康检查值 我也为ELB设置了应用健康检查url 但是当我检查自动缩放组配置时,健康检查类型是
我想使用 OpenTelemetry 将跟踪/指标数据导出到 Elastic Search,但我更愿意避免使用 Elastic APM。是否可以?opentelemetry 贡献 repo显然暗示这是
我正在尝试部署我的 角申请通过GitHub Actions到 Elastic Beanstalk 。我正在使用这个 GitHub actions用于部署到 ELB。 我的问题是,部署失败,因为 ELB
我已阅读有关 Deploying Versions with Zero Downtime 的 AWS 文档,又名 CNAME 交换。 如 yegor256在 this answer 中有解释: The
我们在我们的一个应用程序服务器上安装了 Elastic 5.6.10 和 HibernateSearch ORM 5.11.4.Final,现在我们计划通过我们的一个微服务(spring boot,但
我正在使用 AWS Elastic beanstalk 并希望为不同的环境配置不同的 ENV 变量。我发现的唯一方法是使用 ebextensions,但如果我将同一个数据包部署到多个环境,则无法覆盖在
我有一个应用程序,其中包含 nodejs 和 php 代码。 nodejs 用于运行应用程序所需的几个脚本。我如何使用 aws Elastic beanstalk 部署此类应用程序? 最佳答案 有两种
我打算将 MP4(1920x1080,比特率可能因 mp4 而异)转换为 HLS(不同类型的分辨率)。 不同类型的分辨率,我正在寻找 1080p = 1920x1080 720p = 1280x720
我不断收到以下消息。但是在我的 nginx 日志中没有任何内容表明返回的请求状态为 5xx。此外,应用程序似乎按预期工作。我可能会得到这些的任何指示? 留言: Environment health h
我们如何使用 bitbucket 管道更新 aws elastic beanstalk 上的 asp.net 核心网站? 最佳答案 我知道这是迟到的答案,但几天前我做了同样的事情,所以这里是我是如何做
我是一名优秀的程序员,十分优秀!