Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-23411

Explorer: NPE in logs if you delete a project with contents

    Details

    • Steps to Reproduce:
      Hide
      1. ASSERT: have a project with at least 1 resource (ex. service, replication controller etc. You can achieve this by creating an app via template or by deploying a docker image)
      2. EXEC: in OpenShift Explorer: Pick "Delete" in the context menu of a project

      Result:
      Project and it's nested resources are killed, but there are plenty of NPEs in the Eclipse log:

       
      Exception in thread "OkHttp Dispatcher" com.openshift.restclient.authorization.ResourceForbiddenException: User "openshift-dev" cannot get projects in project "tee" User "openshift-dev" cannot get projects in project "tee"
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:106)
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
      	at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
      	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
      	at okhttp3.RealCall.execute(RealCall.java:57)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:217)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:194)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:183)
      	at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:291)
      	at com.openshift.internal.restclient.model.KubernetesResource.getProject(KubernetesResource.java:99)
      	at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.findProjectWrapper(ConnectionWrapper.java:195)
      	at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.connectionChanged(ConnectionWrapper.java:161)
      	at org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel$1.connectionChanged(OpenshiftUIModel.java:65)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:163)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:121)
      	at org.jboss.tools.openshift.internal.core.WatchManager$WatchListener.received(WatchManager.java:320)
      	at com.openshift.internal.restclient.okhttp.WatchClient$WatchEndpoint.onMessage(WatchClient.java:200)
      	at okhttp3.internal.ws.RealWebSocket$1.onMessage(RealWebSocket.java:62)
      	at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:242)
      	at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:108)
      	at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97)
      	at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:151)
      	at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)
      	at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)
      	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
      	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Exception in thread "OkHttp Dispatcher" com.openshift.restclient.authorization.ResourceForbiddenException: User "openshift-dev" cannot get projects in project "tee" User "openshift-dev" cannot get projects in project "tee"
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:106)
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
      	at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
      	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
      	at okhttp3.RealCall.execute(RealCall.java:57)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:217)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:194)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:183)
      	at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:291)
      	at com.openshift.internal.restclient.model.KubernetesResource.getProject(KubernetesResource.java:99)
      	at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.findProjectWrapper(ConnectionWrapper.java:195)
      	at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.connectionChanged(ConnectionWrapper.java:161)
      	at org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel$1.connectionChanged(OpenshiftUIModel.java:65)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:163)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:121)
      	at org.jboss.tools.openshift.internal.core.WatchManager$WatchListener.received(WatchManager.java:320)
      	at com.openshift.internal.restclient.okhttp.WatchClient$WatchEndpoint.onMessage(WatchClient.java:200)
      	at okhttp3.internal.ws.RealWebSocket$1.onMessage(RealWebSocket.java:62)
      	at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:242)
      	at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:108)
      	at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97)
      	at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:151)
      	at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)
      	at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)
      	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
      	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Exception in thread "OkHttp Dispatcher" java.lang.NullPointerException
      	at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.handleRemove(ConnectionWrapper.java:241)
      	at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.connectionChanged(ConnectionWrapper.java:181)
      	at org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel$1.connectionChanged(OpenshiftUIModel.java:65)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:163)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:121)
      	at org.jboss.tools.openshift.internal.core.WatchManager$WatchListener.received(WatchManager.java:320)
      	at com.openshift.internal.restclient.okhttp.WatchClient$WatchEndpoint.onMessage(WatchClient.java:200)
      	at okhttp3.internal.ws.RealWebSocket$1.onMessage(RealWebSocket.java:62)
      	at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:242)
      	at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:108)
      	at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97)
      	at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:151)
      	at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)
      	at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)
      	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
      	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Exception in thread "OkHttp Dispatcher" java.lang.NullPointerException
      	at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.handleRemove(ConnectionWrapper.java:241)
      	at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.connectionChanged(ConnectionWrapper.java:181)
      	at org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel$1.connectionChanged(OpenshiftUIModel.java:65)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:163)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:121)
      	at org.jboss.tools.openshift.internal.core.WatchManager$WatchListener.received(WatchManager.java:320)
      	at com.openshift.internal.restclient.okhttp.WatchClient$WatchEndpoint.onMessage(WatchClient.java:200)
      	at okhttp3.internal.ws.RealWebSocket$1.onMessage(RealWebSocket.java:62)
      	at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:242)
      	at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:108)
      	at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97)
      	at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:151)
      	at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)
      	at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)
      	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
      	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      
      Show
      ASSERT: have a project with at least 1 resource (ex. service, replication controller etc. You can achieve this by creating an app via template or by deploying a docker image) EXEC: in OpenShift Explorer: Pick "Delete" in the context menu of a project Result: Project and it's nested resources are killed, but there are plenty of NPEs in the Eclipse log: Exception in thread "OkHttp Dispatcher" com.openshift.restclient.authorization.ResourceForbiddenException: User "openshift-dev" cannot get projects in project "tee" User "openshift-dev" cannot get projects in project "tee" at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:106) at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65) at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163) at okhttp3.RealCall.execute(RealCall.java:57) at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:217) at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:194) at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:183) at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:291) at com.openshift.internal.restclient.model.KubernetesResource.getProject(KubernetesResource.java:99) at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.findProjectWrapper(ConnectionWrapper.java:195) at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.connectionChanged(ConnectionWrapper.java:161) at org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel$1.connectionChanged(OpenshiftUIModel.java:65) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:163) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:121) at org.jboss.tools.openshift.internal.core.WatchManager$WatchListener.received(WatchManager.java:320) at com.openshift.internal.restclient.okhttp.WatchClient$WatchEndpoint.onMessage(WatchClient.java:200) at okhttp3.internal.ws.RealWebSocket$1.onMessage(RealWebSocket.java:62) at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:242) at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:108) at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97) at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:151) at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41) at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:745) Exception in thread "OkHttp Dispatcher" com.openshift.restclient.authorization.ResourceForbiddenException: User "openshift-dev" cannot get projects in project "tee" User "openshift-dev" cannot get projects in project "tee" at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:106) at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65) at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163) at okhttp3.RealCall.execute(RealCall.java:57) at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:217) at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:194) at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:183) at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:291) at com.openshift.internal.restclient.model.KubernetesResource.getProject(KubernetesResource.java:99) at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.findProjectWrapper(ConnectionWrapper.java:195) at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.connectionChanged(ConnectionWrapper.java:161) at org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel$1.connectionChanged(OpenshiftUIModel.java:65) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:163) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:121) at org.jboss.tools.openshift.internal.core.WatchManager$WatchListener.received(WatchManager.java:320) at com.openshift.internal.restclient.okhttp.WatchClient$WatchEndpoint.onMessage(WatchClient.java:200) at okhttp3.internal.ws.RealWebSocket$1.onMessage(RealWebSocket.java:62) at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:242) at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:108) at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97) at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:151) at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41) at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:745) Exception in thread "OkHttp Dispatcher" java.lang.NullPointerException at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.handleRemove(ConnectionWrapper.java:241) at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.connectionChanged(ConnectionWrapper.java:181) at org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel$1.connectionChanged(OpenshiftUIModel.java:65) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:163) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:121) at org.jboss.tools.openshift.internal.core.WatchManager$WatchListener.received(WatchManager.java:320) at com.openshift.internal.restclient.okhttp.WatchClient$WatchEndpoint.onMessage(WatchClient.java:200) at okhttp3.internal.ws.RealWebSocket$1.onMessage(RealWebSocket.java:62) at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:242) at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:108) at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97) at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:151) at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41) at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:745) Exception in thread "OkHttp Dispatcher" java.lang.NullPointerException at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.handleRemove(ConnectionWrapper.java:241) at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.connectionChanged(ConnectionWrapper.java:181) at org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel$1.connectionChanged(OpenshiftUIModel.java:65) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:163) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:121) at org.jboss.tools.openshift.internal.core.WatchManager$WatchListener.received(WatchManager.java:320) at com.openshift.internal.restclient.okhttp.WatchClient$WatchEndpoint.onMessage(WatchClient.java:200) at okhttp3.internal.ws.RealWebSocket$1.onMessage(RealWebSocket.java:62) at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:242) at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:108) at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97) at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:151) at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41) at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:745)

      Description

      NPE if you delete a project with contents in OpenShift explorer.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  adietish André Dietisheim
                  Reporter:
                  adietish André Dietisheim
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: