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

Once in a while there is a NPE during stopping the CRC adapter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.19.1.Final
    • 4.19.0.AM1
    • cdk, openshift
    • None
    • Undefined

      NPE occurs during multiple occasions when operating CRC adapter. Though it is not 100 percent reproducible on fedora 33. I was more lucky on windows where it was thrown multiple times during stopping the adapter.

      java.lang.NullPointerException
      	at org.jboss.tools.openshift.internal.crc.server.core.adapter.CRC100Poller.shouldUseJsonFlags(CRC100Poller.java:57)
      	at org.jboss.tools.openshift.internal.crc.server.core.adapter.CRC100Poller.onePing(CRC100Poller.java:104)
      	at org.jboss.tools.openshift.internal.cdk.server.core.adapter.AbstractCDKPoller.onePingSafe(AbstractCDKPoller.java:100)
      	at org.jboss.tools.openshift.internal.cdk.server.core.adapter.AbstractCDKPoller.getCurrentStateSynchronous(AbstractCDKPoller.java:88)
      	at org.jboss.ide.eclipse.as.core.util.PollThreadUtils.isServerStarted(PollThreadUtils.java:218)
      	at org.jboss.tools.openshift.internal.cdk.server.core.adapter.controllers.AbstractCDKShutdownController.pollState(AbstractCDKShutdownController.java:89)
      	at org.jboss.tools.openshift.internal.cdk.server.core.adapter.controllers.AbstractCDKShutdownController.stop(AbstractCDKShutdownController.java:104)
      	at org.jboss.ide.eclipse.as.wtp.core.server.behavior.ControllableServerBehavior.stop(ControllableServerBehavior.java:255)
      	at org.eclipse.wst.server.core.internal.Server.stopImpl2(Server.java:3700)
      	at org.eclipse.wst.server.core.internal.Server.stopImpl(Server.java:3657)
      	at org.eclipse.wst.server.core.internal.Server$StopJob.run(Server.java:415)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      

              Unassigned Unassigned
              odockal@redhat.com Ondrej Dockal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: