- 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/
我有一个广泛使用德语变音符号的文件。我编写了一个脚本来处理该文件,该文件在 native R (RStudio) 中正常工作。不幸的是,在使用 Renjin 时,所有元音变音都被设置为文件字符串中的未
我之前寻求过解决方案,但显然无济于事,因为 renjin 仍处于实验阶段......但也许有人可以将我收到的错误消息翻译成简单的英语? 也许然后我可以确定我是否可以合理地希望在合理的时间内解决这个问题
我是 Renjin 的新手。我正在尝试在 Java 应用程序中使用 Renjin。我正在尝试开发显示 here 的示例. 我正在使用 gradle 进行编译,正如 renjin 的 web page
我正在使用 renjin,我正在尝试使用我在 java 代码中生成的值和 r 代码,例如: int x = 7; try { engine.eval("tmp<-c(x, 4)"); en
我是Renjin的新手,但在java方面经验丰富。我的 R 编码技能正在慢慢提高,我可以在 RStudio 中运行以下脚本 data("iris") dev.new() png(filename =
我正在使用 Renjin 来评估我的 Java 程序中的 R 公式。基本上,用户在文本字段中输入 R 公式,我希望 R/Renjin 为我进行解析,并返回该表达式中的变量列表。假设如果用户输入 a*b
尝试更新我们的 Maven 依赖项最近发现了一个问题。 抛出很多错误,类似于:Error download org.renjin.cran:BH:1.62.0-1-b8 这些依赖项似乎已从存储库中删除
我正在尝试使用 Java 程序运行 solnp。为了测试它是否有效,我尝试运行 benchmarkids() 函数。但我无法解决对包的引用。我已经检查了 Rsolnp 包 http://package
我最近发现了 renjin,它非常擅长使 R 在 java 中易于使用。但是,我对 R 的主要用途(数据可视化)以及将 R 图放入我的 swing 应用程序时遇到了一些问题。我的目标是简单地允许用户从
我附上了 Renjin Engine 所面临问题的屏幕截图。请看下图。我无法加载 Renjin 引擎 调试输出也附在图片中。你能帮我调试一下吗? 最佳答案 您需要添加 Google's Guava l
我正在运行一个 scala 应用程序,我想使用 Renjin 调用一个 R 文件,并将值从 scala 传递到 R 文件。当我从 scala 加载 R 文件时,我收到关于找不到 laply 包的错误。
我目前正在使用 Ro.getElementAsDouble(index) (代码如下)将 Ro 中的值一一提取到 LogNormArray (双[])。但我担心副本会浪费内存。我是一个java新手,所
我附上了 Renjin Engine 所面临问题的屏幕截图。请看下图。我无法加载 Renjin 引擎 调试输出也附在图片中。你能帮我调试一下吗? 最佳答案 您需要添加 Google's Guava l
我有一个依赖于 Renjin + Forecast 包的解决方案,该包可以在本地运行,也可以在亚马逊的典型 EC2 服务器上运行。但是,当在弹性 beanstalk 环境上部署相同的解决方案时,我在初
我创建了一个 R 脚本“script.R” df org.renjin renjin-script-engine 0.7.0-RC7 或者最新的快照 org.
我正在尝试在 Wildfly 9 上运行 R Renjin 脚本引擎。 当我运行我的 Java/Renjin 应用程序(该应用程序在本地执行上运行良好)时,通过在 Wildfly 上将其用作 EJB-
我想通过我正在使用的Renjin将R连接到postgresql engine.eval("library(RPostgreSQL)"); 出现以下错误 org.springframework.web.
假设我在 R 中创建了一个函数,例如 bin <- function(arg1, arg2, arg3) { //some code here } 我正在使用 Renjin 在 JVM 上运行 R。在
我正在尝试使用 Renjin从 Java 程序中存在的数据构建模型。我有一个ArrayList POJO 对象列表,其中每个属性都是 String ,一个double ,或 int 。如果我打电话to
我正在尝试使用 Renjin 在 Java 和 R 之间 move 数据,反之亦然(作为数据帧)。在 Stackoverflow 中搜索时,我发现了一些东西,起初我认为它会起作用,但它不会起作用,因为
我是一名优秀的程序员,十分优秀!