Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11792

Web console agent throws NullPointerException if node endpoint is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7
    • None
    • None

    Description

      Starting web agent using the following command:

      ./ignite-web-agent.sh -n localhost:8080 -s https://console.gridgain.com/
      

      Note, that localhost:8080 is specified without the http:// part. It leads to the following exception:

      [ERROR][pool-1-thread-1][ClusterListener] WatchTask failed
      java.lang.NullPointerException
      	at org.apache.ignite.console.agent.rest.RestExecutor.sendRequest(RestExecutor.java:185)
      	at org.apache.ignite.console.agent.rest.RestExecutor.sendRequest(RestExecutor.java:237)
      	at org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.restCommand(ClusterListener.java:421)
      	at org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.topology(ClusterListener.java:457)
      	at org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.run(ClusterListener.java:506)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      The localhost:8080 format should either be supported or a reasonable error message should be printed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmekhanikov Denis Mekhanikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: