Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-370

Occasional NPE when opening workspace from "Java 1.8" stack with imported Java project

XMLWordPrintable

      I've seen the following error again while going through walkthrough 2 in Integreatly. I needed to reload the page to open the workspace.

      Loading...
      AttachVolume.Attach failed for volume "pvc-9366cc27-d3a5-11e9-869e-0688e4388ed4" : "Error attaching EBS volume \"vol-08c319f0905a33202\"" to instance "i-04542cc66eac10512" since volume is in "creating" state
      AttachVolume.Attach failed for volume "pvc-9366cc27-d3a5-11e9-869e-0688e4388ed4" : "Error attaching EBS volume \"vol-08c319f0905a33202\"" to instance "i-04542cc66eac10512" since volume is in "creating" state
      AttachVolume.Attach succeeded for volume "pvc-9366cc27-d3a5-11e9-869e-0688e4388ed4" 
      pulling image "registry.redhat.io/codeready-workspaces/stacks-java-rhel8"
      Successfully pulled image "registry.redhat.io/codeready-workspaces/stacks-java-rhel8"
      Created container
      Started container
      Exec Agent binary is downloaded remotely
      2019/09/10 08:36:20   Server
      2019/09/10 08:36:20 Exec-agent configuration
      2019/09/10 08:36:20     - Address: :4412
      2019/09/10 08:36:20   Authentication
      2019/09/10 08:36:20     - Enabled: true
      2019/09/10 08:36:20     - API endpoint: https://codeready-openshift-codeready.apps.trepel.skunkhenry.com/api
      2019/09/10 08:36:20 ✓ Start Process ........................... POST   /process
      2019/09/10 08:36:20 ✓ Get Process ............................. GET    /process/:pid
      2019/09/10 08:36:20     - Base path: ''
      2019/09/10 08:36:20     - Tokens expiration timeout: 10m
      2019/09/10 08:36:20     - Logs dir: /workspace_logs/exec-agent
      2019/09/10 08:36:20 ⇩ Registered HTTPRoutes:
      2019/09/10 08:36:20   Workspace master server
      2019/09/10 08:36:20 Process Routes:
      2019/09/10 08:36:20 
      2019/09/10 08:36:20   Process executor
      2019/09/10 08:36:20 ✓ Kill Process ............................ DELETE /process/:pid
      2019/09/10 08:36:20 Exec-Agent liveness route:
      2019/09/10 08:36:20 
      2019/09/10 08:36:20 ✓ Get Processes ........................... GET    /process
      2019/09/10 08:36:20 ✓ Get Process Logs ........................ GET    /process/:pid/logs
      2019/09/10 08:36:20 
      2019/09/10 08:36:20 ✓ Connect to Exec-Agent(websocket) ........ GET    /connect
      2019/09/10 08:36:20 ✓ Check Exec-Agent liveness ............... GET    /liveness
      2019/09/10 08:36:20 ⇩ Registered RPCRoutes:
      2019/09/10 08:36:20 
      2019/09/10 08:36:20 ✓ process.updateSubscriber
      2019/09/10 08:36:20 Exec-Agent WebSocket routes:
      2019/09/10 08:36:20 ✓ process.subscribe
      2019/09/10 08:36:20 ✓ process.kill
      2019/09/10 08:36:20 ✓ process.unsubscribe
      2019/09/10 08:36:20 ✓ process.getProcess
      2019/09/10 08:36:20 Process Routes:
      2019/09/10 08:36:20 ✓ process.start
      2019/09/10 08:36:20 ✓ process.getProcesses
      2019/09/10 08:36:20 ✓ process.getLogs
      Terminal Agent binary is downloaded remotely
      2019/09/10 08:36:22 Terminal-agent configuration
      2019/09/10 08:36:22   Server
      2019/09/10 08:36:22 ✓ Check Terminal-Agent liveness ........... GET    /liveness
      2019/09/10 08:36:22 
      2019/09/10 08:36:22   Terminal
      2019/09/10 08:36:22     - Activity tracking enabled: false
      2019/09/10 08:36:22     - Base path: ''
      2019/09/10 08:36:22     - Address: :4411
      2019/09/10 08:36:22 Terminal-Agent liveness route:
      2019/09/10 08:36:22 Terminal routes:
      2019/09/10 08:36:22 
      2019/09/10 08:36:22     - Slave command: ''
      2019/09/10 08:36:22   Authentication
      2019/09/10 08:36:22     - API endpoint: https://codeready-openshift-codeready.apps.trepel.skunkhenry.com/api
      2019/09/10 08:36:22 
      2019/09/10 08:36:22     - Tokens expiration timeout: 10m
      2019/09/10 08:36:22 ✓ Connect to pty(websocket) ............... GET    /pty
      2019/09/10 08:36:22   Workspace master server
      2019/09/10 08:36:22     - Enabled: true
      2019/09/10 08:36:22 ⇩ Registered HTTPRoutes:
      Workspace Agent will be downloaded from Workspace Master
      2019-09-10 08:36:28,551[main]             [INFO ] [o.a.c.s.VersionLoggerListener 91]    - Server built:          Nov 3 2018 17:39:20 UTC
      2019-09-10 08:36:28,553[main]             [INFO ] [o.a.c.s.VersionLoggerListener 107]   - CATALINA_BASE:         /home/jboss/che/ws-agent
      2019-09-10 08:36:28,548[main]             [INFO ] [o.a.c.s.VersionLoggerListener 89]    - Server version:        Apache Tomcat/8.5.35
      2019-09-10 08:36:28,555[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
      2019-09-10 08:36:28,555[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -XX:MaxRAM=600m
      2019-09-10 08:36:28,561[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote.ssl=false
      2019-09-10 08:36:28,561[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.local.conf.dir=/home/jboss/che/ws-agent/conf/
      2019-09-10 08:36:28,558[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dfile.encoding=UTF8
      2019-09-10 08:36:28,557[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -XX:AdaptiveSizePolicyWeight=90
      2019-09-10 08:36:28,555[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -XX:+UseParallelGC
      2019-09-10 08:36:28,553[main]             [INFO ] [o.a.c.s.VersionLoggerListener 103]   - JVM Version:           1.8.0_222-b10
      2019-09-10 08:36:28,552[main]             [INFO ] [o.a.c.s.VersionLoggerListener 95]    - OS Name:               Linux
      2019-09-10 08:36:28,552[main]             [INFO ] [o.a.c.s.VersionLoggerListener 99]    - Architecture:          amd64
      2019-09-10 08:36:28,553[main]             [INFO ] [o.a.c.s.VersionLoggerListener 101]   - Java Home:             /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el8_0.x86_64/jre
      2019-09-10 08:36:28,558[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.logs.dir=/workspace_logs/ws-agent
      2019-09-10 08:36:28,551[main]             [INFO ] [o.a.c.s.VersionLoggerListener 93]    - Server number:         8.5.35.0
      2019-09-10 08:36:28,557[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Xms50m
      2019-09-10 08:36:28,554[main]             [INFO ] [o.a.c.s.VersionLoggerListener 109]   - CATALINA_HOME:         /home/jboss/che/ws-agent
      2019-09-10 08:36:28,558[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.security.egd=file:/dev/./urandom
      2019-09-10 08:36:28,553[main]             [INFO ] [o.a.c.s.VersionLoggerListener 105]   - JVM Vendor:            Oracle Corporation
      2019-09-10 08:36:28,556[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -XX:MaxHeapFreeRatio=20
      2019-09-10 08:36:28,552[main]             [INFO ] [o.a.c.s.VersionLoggerListener 97]    - OS Version:            3.10.0-957.21.3.el7.x86_64
      2019-09-10 08:36:28,555[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -XX:MaxRAMFraction=1
      2019-09-10 08:36:28,554[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.util.logging.config.file=/home/jboss/che/ws-agent/conf/logging.properties
      2019-09-10 08:36:28,556[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -XX:MinHeapFreeRatio=10
      2019-09-10 08:36:28,556[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -XX:GCTimeRatio=4
      2019-09-10 08:36:28,560[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0022
      2019-09-10 08:36:28,563[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.io.tmpdir=/home/jboss/che/ws-agent/temp
      2019-09-10 08:36:28,559[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
      2019-09-10 08:36:28,562[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dignore.endorsed.dirs=
      2019-09-10 08:36:28,557[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dsun.zip.disableMemoryMapping=true
      2019-09-10 08:36:28,561[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
      2019-09-10 08:36:28,563[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcatalina.base=/home/jboss/che/ws-agent
      2019-09-10 08:36:28,563[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcatalina.home=/home/jboss/che/ws-agent
      2019-09-10 08:36:28,560[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote
      2019-09-10 08:36:28,560[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
      2019-09-10 08:36:28,559[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djuli-logback.configurationFile=file:/home/jboss/che/ws-agent/conf/tomcat-logger.xml
      2019-09-10 08:36:28,559[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.logs.level=INFO
      2019-09-10 08:36:28,699[main]             [INFO ] [o.a.c.http11.Http11NioProtocol 560]  - Initializing ProtocolHandler ["http-nio-4401"]
      2019-09-10 08:36:28,713[main]             [INFO ] [o.a.t.util.net.NioSelectorPool 67]   - Using a shared selector for servlet write/read
      2019-09-10 08:36:28,733[main]             [INFO ] [o.a.catalina.startup.Catalina 649]   - Initialization processed in 503 ms
      Downloading java LS
      2019-09-10 08:36:28,830[main]             [INFO ] [o.a.c.core.StandardEngine 259]       - Starting Servlet Engine: Apache Tomcat/8.5.35
      2019-09-10 08:36:28,830[main]             [INFO ] [o.a.c.core.StandardService 416]      - Starting service [Catalina]
      2019-09-10 08:36:28,829[main]             [INFO ] [c.m.JmxRemoteLifecycleListener 336]  - The JMX Remote Listener has configured the registry on port [32002] and the server on port [32102] for the [Platform] server
      2019-09-10 08:36:29,023[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 957]        - Deploying web application archive [/home/jboss/che/ws-agent/webapps/ROOT.war]
      writing start script to /home/jboss/che/ls-java/launch.sh
      2019-09-10 08:36:30,843[ost-startStop-1]  [INFO ] [b.BayesianLanguageServerModule 35]   - Configuring org.eclipse.che.plugin.languageserver.bayesian.BayesianLanguageServerModule
      2019-09-10 08:36:33,366[ost-startStop-1]  [INFO ] [i.WorkspaceProjectSynchronizer 67]   - API Endpoint: https://codeready-openshift-codeready.apps.trepel.skunkhenry.com/api
      2019-09-10 08:36:33,365[ost-startStop-1]  [INFO ] [i.WorkspaceProjectSynchronizer 66]   - Workspace ID: workspaceng0j8gxorvysqi7n
      2019-09-10 08:36:33,919[rcherInitThread]  [INFO ] [o.e.c.a.s.s.i.LuceneSearcher 159]    - Initial indexing complete after 2 msec 
      2019-09-10 08:36:34,001[ost-startStop-1]  [ERROR] [o.e.c.a.c.n.EventService 110]        - null
      	at org.eclipse.che.api.project.server.impl.OnWorkspaceStartProjectInitializer.initializeRegisteredProjects(OnWorkspaceStartProjectInitializer.java:73)
      	at org.eclipse.che.inject.lifecycle.InitModule$1$1.afterInjection(InitModule.java:47)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
      	at java.lang.Thread.run(Thread.java:748)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
      	at org.eclipse.che.api.core.notification.EventService.publish(EventService.java:108)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792)
      	at org.eclipse.che.plugin.java.plain.server.generator.PlainJavaProjectGenerator.onPreProjectInitializedEvent(PlainJavaProjectGenerator.java:124)
      	at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:182)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
      	at com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:131)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
      	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:125)
      	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
      	at org.eclipse.che.plugin.java.plain.server.generator.PlainJavaProjectGenerator.access$000(PlainJavaProjectGenerator.java:47)
      	at org.eclipse.che.plugin.java.plain.server.generator.PlainJavaProjectGenerator$1.onEvent(PlainJavaProjectGenerator.java:72)
      	at org.eclipse.che.plugin.java.plain.server.generator.PlainJavaProjectGenerator$1.onEvent(PlainJavaProjectGenerator.java:69)
      	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
      	at org.everrest.guice.servlet.EverrestGuiceContextListener.getInjector(EverrestGuiceContextListener.java:140)
      java.lang.NullPointerException: null
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:211)
      	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
      	at org.eclipse.che.api.project.server.impl.OnWorkspaceStartProjectInitializer.initialize(OnWorkspaceStartProjectInitializer.java:65)
      	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
      	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at org.everrest.guice.servlet.EverrestGuiceContextListener.contextInitialized(EverrestGuiceContextListener.java:85)
      	at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
      	at com.google.inject.Guice.createInjector(Guice.java:87)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

              tmader@redhat.com Thomas Mäder (Inactive)
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: