Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointer when starting a multi machine workspace #2426

Closed
ghost opened this issue Sep 13, 2016 · 0 comments · Fixed by #2421
Closed

NullPointer when starting a multi machine workspace #2426

ghost opened this issue Sep 13, 2016 · 0 comments · Fixed by #2421
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Milestone

Comments

@ghost
Copy link

ghost commented Sep 13, 2016

If a workspace contains more than one machine, workspace creation and boot fails

Reproduction Steps:

  1. Create a workspace with the following custom recipe:

services:
 machine:
  image: codenvy/ubuntu_jdk8
  mem_limit: 2147483648
 dev-machine:
  image: codenvy/ubuntu_jdk8
  mem_limit: 2147483648
  depends_on:
    - machine

Client error:

image

Server logs:

2016-09-13 09:33:08,458[kspaceManager-0]  [ERROR] [o.e.c.a.w.s.WorkspaceManager 665]    - Start of environment wksp-afyi failed. Error: null
org.eclipse.che.api.core.ServerException: Start of environment wksp-afyi failed. Error: null
    at org.eclipse.che.api.workspace.server.WorkspaceRuntimes.start(WorkspaceRuntimes.java:277) ~[che-core-api-workspace-5.0.0-M1-SNAPSHOT.jar:5.0.0-M1-SNAPSHOT]
    at org.eclipse.che.api.workspace.server.WorkspaceManager.lambda$performAsyncStart$1(WorkspaceManager.java:649) ~[che-core-api-workspace-5.0.0-M1-SNAPSHOT.jar:5.0.0-M1-SNAPSHOT]
    at org.eclipse.che.api.workspace.server.WorkspaceManager$$Lambda$94/2096118671.run(Unknown Source) [che-core-api-workspace-5.0.0-M1-SNAPSHOT.jar:5.0.0-M1-SNAPSHOT]
    at org.eclipse.che.commons.lang.concurrent.CopyThreadLocalRunnable.run(CopyThreadLocalRunnable.java:28) [che-core-commons-lang-5.0.0-M1-SNAPSHOT.jar:5.0.0-M1-SNAPSHOT]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_31]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_31]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_31]
Caused by: java.lang.NullPointerException: null
    at org.eclipse.che.api.environment.server.CheEnvironmentEngine.applyAgents(CheEnvironmentEngine.java:517) ~[che-core-api-workspace-5.0.0-M1-SNAPSHOT.jar:5.0.0-M1-SNAPSHOT]
    at org.eclipse.che.api.environment.server.CheEnvironmentEngine.initializeEnvironment(CheEnvironmentEngine.java:492) ~[che-core-api-workspace-5.0.0-M1-SNAPSHOT.jar:5.0.0-M1-SNAPSHOT]
    at org.eclipse.che.api.environment.server.CheEnvironmentEngine.start(CheEnvironmentEngine.java:213) ~[che-core-api-workspace-5.0.0-M1-SNAPSHOT.jar:5.0.0-M1-SNAPSHOT]
    at org.eclipse.che.api.workspace.server.WorkspaceRuntimes.start(WorkspaceRuntimes.java:246) ~[che-core-api-workspace-5.0.0-M1-SNAPSHOT.jar:5.0.0-M1-SNAPSHOT]
    ... 6 common frames omitted
@ghost ghost added kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. labels Sep 13, 2016
@garagatyi garagatyi self-assigned this Sep 13, 2016
@garagatyi garagatyi added status/in-progress This issue has been taken by an engineer and is under active development. sprint/current team/production labels Sep 13, 2016
@ghost ghost added this to the 5.0.0-M1 milestone Sep 13, 2016
@bmicklea bmicklea mentioned this issue Sep 13, 2016
57 tasks
@vkuznyetsov vkuznyetsov removed sprint/current status/in-progress This issue has been taken by an engineer and is under active development. labels Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants