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

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

XMLWordPrintable

      We (in Integreatly QE) see following error from time to time when opening workspace (Java 1.8 stack) with imported Java project. Note that the project is not able to open in this case (workaround is to try to open it again):

      2019-02-15 09:58:13,996[rcherInitThread]  [INFO ] [o.e.c.a.s.s.i.LuceneSearcher 159]    - Initial indexing complete after 8 msec
      java.lang.NullPointerException: null
      2019-02-15 09:58:14,177[ost-startStop-1]  [ERROR] [o.e.c.a.c.n.EventService 110]        - null
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
              at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
              at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:211)
              at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
              at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
              at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.lang.Thread.run(Thread.java:748)
      2019-02-15 09:58:15,879[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1020]       - Deployment of web application archive [/home/jboss/che/ws-agent/webapps/ROOT.war] has finished in [22,290] ms
      2019-02-15 09:58:15,883[main]             [INFO ] [o.a.c.http11.Http11NioProtocol 588]  - Starting ProtocolHandler ["http-nio-4401"]
      2019-02-15 09:58:15,971[main]             [INFO ] [o.a.catalina.startup.Catalina 700]   - Server startup in 23078 ms
              at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:125)
              at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:182)
              at org.everrest.guice.servlet.EverrestGuiceContextListener.getInjector(EverrestGuiceContextListener.java:140)
              at org.eclipse.che.plugin.java.plain.server.generator.PlainJavaProjectGenerator.onPreProjectInitializedEvent(PlainJavaProjectGenerator.java:124)
              at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
              at com.google.inject.Guice.createInjector(Guice.java:87)
              at org.eclipse.che.inject.lifecycle.InitModule$1$1.afterInjection(InitModule.java:47)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
              at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168)
              at org.eclipse.che.api.core.notification.EventService.publish(EventService.java:108)
              at org.eclipse.che.plugin.java.plain.server.generator.PlainJavaProjectGenerator$1.onEvent(PlainJavaProjectGenerator.java:72)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:131)
              at org.eclipse.che.plugin.java.plain.server.generator.PlainJavaProjectGenerator$1.onEvent(PlainJavaProjectGenerator.java:69)
              at org.eclipse.che.plugin.java.plain.server.generator.PlainJavaProjectGenerator.access$000(PlainJavaProjectGenerator.java:47)
              at org.eclipse.che.api.project.server.impl.OnWorkspaceStartProjectInitializer.initializeRegisteredProjects(OnWorkspaceStartProjectInitializer.java:73)
              at org.eclipse.che.api.project.server.impl.OnWorkspaceStartProjectInitializer.initialize(OnWorkspaceStartProjectInitializer.java:65)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
              at org.everrest.guice.servlet.EverrestGuiceContextListener.contextInitialized(EverrestGuiceContextListener.java:85)
      

              rhopp@redhat.com Radim Hopp
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: