Menu

#4157 [HHQ-4023] Check java version within hqapi.sh

Bug
open
None
1
2012-10-09
2010-06-04
No

http://jira.hyperic.com/browse/HHQ-4023


Java 1.5 is required, otherwise a NoSuchMethodError is thrown:



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)

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.