ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Mekhanikov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-11792) Web console agent throws NullPointerException if node endpoint is incorrect
Date Mon, 22 Apr 2019 20:12:00 GMT
Denis Mekhanikov created IGNITE-11792:
-----------------------------------------

             Summary: Web console agent throws NullPointerException if node endpoint is incorrect
                 Key: IGNITE-11792
                 URL: https://issues.apache.org/jira/browse/IGNITE-11792
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.7
            Reporter: Denis Mekhanikov


Starting web agent using the following command: 
{code:bash}
./ignite-web-agent.sh -n localhost:8080 -s https://console.gridgain.com/
{code}

Note, that {{localhost:8080}} is specified without the {{http://}} part. It leads to the following
exception:
{noformat}
[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)
{noformat}

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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message