{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-shell/issues/256","repository_url":"https://api.github.com/repos/spring-projects/spring-shell","labels_url":"https://api.github.com/repos/spring-projects/spring-shell/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-shell/issues/256/comments","events_url":"https://api.github.com/repos/spring-projects/spring-shell/issues/256/events","html_url":"https://github.com/spring-projects/spring-shell/issues/256","id":421205143,"node_id":"MDU6SXNzdWU0MjEyMDUxNDM=","number":256,"title":"Dockerized spring-shell application","user":{"login":"toudidel","id":617269,"node_id":"MDQ6VXNlcjYxNzI2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/617269?v=4","gravatar_id":"","url":"https://api.github.com/users/toudidel","html_url":"https://github.com/toudidel","followers_url":"https://api.github.com/users/toudidel/followers","following_url":"https://api.github.com/users/toudidel/following{/other_user}","gists_url":"https://api.github.com/users/toudidel/gists{/gist_id}","starred_url":"https://api.github.com/users/toudidel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toudidel/subscriptions","organizations_url":"https://api.github.com/users/toudidel/orgs","repos_url":"https://api.github.com/users/toudidel/repos","events_url":"https://api.github.com/users/toudidel/events{/privacy}","received_events_url":"https://api.github.com/users/toudidel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-14T19:30:27Z","updated_at":"2019-03-14T19:30:27Z","closed_at":null,"author_association":"NONE","body":"I've received the following NullPointerException at org.springframework.shell.jline.ParsedLineInput.words(ParsedLineInput.java:44) when try to run docker container with spring-shell application:\r\n\r\n`java.lang.IllegalStateException: Failed to execute ApplicationRunner\r\n\tat org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:807) [spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:794) [spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:324) [spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]\r\n\tat pl.coderion.SpringShellApplication.main(SpringShellApplication.java:18) [classes!/:1.0-SNAPSHOT]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191]\r\n\tat java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191]\r\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [codegenerator.jar:1.0-SNAPSHOT]\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [codegenerator.jar:1.0-SNAPSHOT]\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [codegenerator.jar:1.0-SNAPSHOT]\r\n\tat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [codegenerator.jar:1.0-SNAPSHOT]\r\nCaused by: java.lang.NullPointerException: null\r\n\tat org.springframework.shell.jline.ParsedLineInput.words(ParsedLineInput.java:44) ~[spring-shell-core-2.0.1.RELEASE.jar!/:2.0.1.RELEASE]\r\n\tat org.springframework.shell.Shell.noInput(Shell.java:214) ~[spring-shell-core-2.0.1.RELEASE.jar!/:2.0.1.RELEASE]\r\n\tat org.springframework.shell.Shell.evaluate(Shell.java:159) ~[spring-shell-core-2.0.1.RELEASE.jar!/:2.0.1.RELEASE]\r\n\tat org.springframework.shell.Shell.run(Shell.java:142) ~[spring-shell-core-2.0.1.RELEASE.jar!/:2.0.1.RELEASE]\r\n\tat org.springframework.shell.jline.InteractiveShellApplicationRunner.run(InteractiveShellApplicationRunner.java:84) ~[spring-shell-core-2.0.1.RELEASE.jar!/:2.0.1.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804) [spring-boot-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]\r\n\t... 13 common frames omitted\r\n`\r\n\r\n\r\nSteps to reproduce the bug:\r\n\r\n1. Generate app using Spring Initializr (https://start.spring.io/): Maven/Java/Spring Boot 2.1.3 with added only one dependency: Spring Shell.\r\n\r\n2. Added Dockerfile to project:\r\n`FROM openjdk:8-jdk-alpine\r\nVOLUME /tmp\r\nCOPY target/project-1.0-SNAPSHOT.jar project.jar\r\nENTRYPOINT [\"java\",\"-Djava.security.egd=file:/dev/./urandom\",\"-jar\",\"/project.jar\"]`\r\n\r\n3. Build Docker image:\r\n`docker build . -t project:latest`\r\n\r\n4. Run the container:\r\n`docker run project`"}}
{"actor":{"display_login":"toudidel"}}