[Bug 2006] Client queries too much data from vm-memory-stats

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Sep 26 16:14:05 UTC 2014


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2006

--- Comment #1 from Severin Gehwolf <sgehwolf at redhat.com> ---
A reproducer is by applying the patch in the blocking bug, build thermostat,
run thermostat web-storage-service and finally this:

$ echo -e 'client-tester\ntester' | ./distribution/target/image/bin/thermostat
vm-stat -a 0365d47b-206d-499b-92b8-cf8ff4b6ee14 -v
d690d957-771f-4434-b841-626523414eb4

This throws IAE.

java.lang.IllegalArgumentException: Refusing unbounded query! Query used
Long.MIN_VALUE for 'since'!
    at
com.redhat.thermostat.storage.core.VmLatestPojoListGetter.getLatest(VmLatestPojoListGetter.java:69)
    at
com.redhat.thermostat.vm.cpu.common.internal.VmCpuStatDAOImpl.getLatestVmCpuStats(VmCpuStatDAOImpl.java:80)
    at
com.redhat.thermostat.vm.cpu.client.cli.internal.VmCpuStatPrintDelegate.getLatestStats(VmCpuStatPrintDelegate.java:65)
    at
com.redhat.thermostat.client.cli.internal.VMStatPrinter.printStats(VMStatPrinter.java:101)
    at
com.redhat.thermostat.client.cli.internal.VMStatCommand.run(VMStatCommand.java:100)
    at
com.redhat.thermostat.launcher.internal.LauncherImpl.parseArgsAndRunCommand(LauncherImpl.java:315)
    at
com.redhat.thermostat.launcher.internal.LauncherImpl.runCommand(LauncherImpl.java:261)
    at
com.redhat.thermostat.launcher.internal.LauncherImpl.runCommandFromArguments(LauncherImpl.java:250)
    at
com.redhat.thermostat.launcher.internal.LauncherImpl.run(LauncherImpl.java:158)
    at
com.redhat.thermostat.launcher.internal.LauncherImpl.run(LauncherImpl.java:138)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at
com.redhat.thermostat.main.impl.FrameworkProvider.callVoidReflectedMethod(FrameworkProvider.java:276)
    at
com.redhat.thermostat.main.impl.FrameworkProvider.runLauncher(FrameworkProvider.java:249)
    at
com.redhat.thermostat.main.impl.FrameworkProvider.start(FrameworkProvider.java:101)
    at com.redhat.thermostat.main.Thermostat.start(Thermostat.java:85)
    at com.redhat.thermostat.main.Thermostat.main(Thermostat.java:57)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140926/58a8e743/attachment-0001.html>


More information about the distro-pkg-dev mailing list