如何解决 IllegalArgumentException 错误?
How to solve IllegalArgumentException error?
我正在尝试使用 ShinyProxy 和 docker 部署我的 R 应用程序。一旦 运行 命令 java -jar 我在 docker 终端中得到一个嵌套异常,说明非法参数异常。我附上了最后一个回溯错误。我参考了 https://www.databentobox.com/2019/11/05/deploy-r-app-with-shinyproxy/ 部署 R 应用程序的教程。关于如何克服此错误的任何建议?
java -jar shinyproxy-2.3.0.jar
Caused by: java.lang.IllegalArgumentException: An HTTPS URI for DOCKER_HOST must be provided to use Docker client certificates
at com.spotify.docker.client.DefaultDockerClient.<init>(DefaultDockerClient.java:441) ~[docker-client-8.15.2.jar!/:8.15.2]
at com.spotify.docker.client.DefaultDockerClient$Builder.build(DefaultDockerClient.java:3194) ~[docker-client-8.15.2.jar!/:8.15.2]
at eu.openanalytics.containerproxy.backend.docker.AbstractDockerBackend.initialize(AbstractDockerBackend.java:83) ~[containerproxy-0.8.3.jar!/:0.8.3]
at eu.openanalytics.containerproxy.backend.ContainerBackendFactory.createInstance(ContainerBackendFactory.java:83) ~[containerproxy-0.8.3.jar!/:0.8.3]
at eu.openanalytics.containerproxy.backend.ContainerBackendFactory.createInstance(ContainerBackendFactory.java:36) ~[containerproxy-0.8.3.jar!/:0.8.3]
at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:141) ~[spring-beans-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1769) ~[spring-beans-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706) ~[spring-beans-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
... 84 common frames omitted
通过将 shinyproxy 版本从 2.3.0 降级到 2.0.0,它对我有用。
我正在尝试使用 ShinyProxy 和 docker 部署我的 R 应用程序。一旦 运行 命令 java -jar 我在 docker 终端中得到一个嵌套异常,说明非法参数异常。我附上了最后一个回溯错误。我参考了 https://www.databentobox.com/2019/11/05/deploy-r-app-with-shinyproxy/ 部署 R 应用程序的教程。关于如何克服此错误的任何建议?
java -jar shinyproxy-2.3.0.jar
Caused by: java.lang.IllegalArgumentException: An HTTPS URI for DOCKER_HOST must be provided to use Docker client certificates
at com.spotify.docker.client.DefaultDockerClient.<init>(DefaultDockerClient.java:441) ~[docker-client-8.15.2.jar!/:8.15.2]
at com.spotify.docker.client.DefaultDockerClient$Builder.build(DefaultDockerClient.java:3194) ~[docker-client-8.15.2.jar!/:8.15.2]
at eu.openanalytics.containerproxy.backend.docker.AbstractDockerBackend.initialize(AbstractDockerBackend.java:83) ~[containerproxy-0.8.3.jar!/:0.8.3]
at eu.openanalytics.containerproxy.backend.ContainerBackendFactory.createInstance(ContainerBackendFactory.java:83) ~[containerproxy-0.8.3.jar!/:0.8.3]
at eu.openanalytics.containerproxy.backend.ContainerBackendFactory.createInstance(ContainerBackendFactory.java:36) ~[containerproxy-0.8.3.jar!/:0.8.3]
at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:141) ~[spring-beans-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1769) ~[spring-beans-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706) ~[spring-beans-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
... 84 common frames omitted
通过将 shinyproxy 版本从 2.3.0 降级到 2.0.0,它对我有用。