I am trying to run the hqapi.sh but i get the following error:
{wvalenci}235: ./bin/hqapi.sh user list
Exception in thread "main" java.lang.NoSuchMethodError: method java.util.Collections.emptyList with signature ()Ljava.util.List; was not found.
at joptsimple.OptionSet.valuesOf(OptionSet.java:180)
at joptsimple.OptionSet.valuesOf(OptionSet.java:158)
at joptsimple.OptionSet.hasArgument(OptionSet.java:87)
at org.hyperic.hq.hqapi1.tools.Command.getApi(Command.java:155)
at org.hyperic.hq.hqapi1.tools.UserCommand.list(UserCommand.java:86)
at org.hyperic.hq.hqapi1.tools.UserCommand.handleCommand(UserCommand.java:66)
at org.hyperic.hq.hqapi1.tools.Shell.main(Shell.java:76)
My client.properties file is as follows:
{wvalenci}234: more ~/.hq/client.properties
host=localhost
port=7443
secure=true
user=hqadmin
password=hqadmin
I am running it on the host where the HQ server is running. Anyone know what could be the issue? This happens for all hqapi commands. I also tried specifying the host/port/secure/usr/password inline but I got the same error.
William
{wvalenci}235: ./bin/hqapi.sh user list
Exception in thread "main" java.lang.NoSuchMethodError: method java.util.Collections.emptyList with signature ()Ljava.util.List; was not found.
at joptsimple.OptionSet.valuesOf(OptionSet.java:180)
at joptsimple.OptionSet.valuesOf(OptionSet.java:158)
at joptsimple.OptionSet.hasArgument(OptionSet.java:87)
at org.hyperic.hq.hqapi1.tools.Command.getApi(Command.java:155)
at org.hyperic.hq.hqapi1.tools.UserCommand.list(UserCommand.java:86)
at org.hyperic.hq.hqapi1.tools.UserCommand.handleCommand(UserCommand.java:66)
at org.hyperic.hq.hqapi1.tools.Shell.main(Shell.java:76)
My client.properties file is as follows:
{wvalenci}234: more ~/.hq/client.properties
host=localhost
port=7443
secure=true
user=hqadmin
password=hqadmin
I am running it on the host where the HQ server is running. Anyone know what could be the issue? This happens for all hqapi commands. I also tried specifying the host/port/secure/usr/password inline but I got the same error.
William