CDV ❯ When no .so for sigar is present it throws an exception.
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Won't Fix
-
Statistics
-
-
asingh
-
Reporter: steve
-
June 01, 2008
-
0
-
Watchers: 0
-
February 17, 2009
-
July 25, 2008
Description
This was printed on AIX. If the .so isn’t there it should just print an Error message not a stack trace.
nice. that worked now it starts. although for 2.6 that has the sigar implementation the .so file is missing for aix.
2008-06-01 15:20:22,161 INFO - Terracotta trunk-nightly-rev8699, as of 20080601-080629 (Revision 8699 by cruise@rh4mo0 from trunk)
2008-06-01 15:20:22,763 INFO - Configuration loaded from the file at ‘/home/u0005369/camlet/etc/tc-config.xml’.
2008-06-01 15:20:25,552 INFO - Terracotta trunk-nightly-rev8699, as of 20080601-080629 (Revision 8699 by cruise@rh4mo0 from trunk)
2008-06-01 15:20:26,054 INFO - Configuration loaded from the file at ‘/home/u0005369/camlet/etc/tc-config.xml’.
2008-06-01 15:20:26,305 INFO - Log file: ‘/home/u0005369/camlet/bin/terracotta/client-logs/terracotta-client.log’.
2008-06-01 15:20:28,304 INFO - Statistics buffer: ‘/home/u0005369/camlet/bin/statistics-172.29.140.68’.
2890 [main] DEBUG Sigar - libsigar-ppc-aix-6.so (Not found in java.library.path)
org.hyperic.sigar.SigarException: libsigar-ppc-aix-6.so (Not found in java.library.path)
at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:160)
at org.hyperic.sigar.Sigar.
Comments
Fiona OShea 2008-06-02
Alex Miller 2008-07-21
We would like this to instead detect the scenario and print useful message (not print stack trace).
Abhishek Singh 2008-07-25
The stacktrace is being printed from Sigar only. The code is in the sigar codebase in org.hyperic.sigar.Sigar.java
2890 [main] DEBUG Sigar - libsigar-ppc-aix-6.so (Not found in java.library.path)
org.hyperic.sigar.SigarException: libsigar-ppc-aix-6.so (Not found in java.library.path)
at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:160)
at org.hyperic.sigar.Sigar.
We can hack/workaround here to suppress the output from the sigar logger, but it seems not worthy to do it.
Please fix in 2.6 and trunk, we will push this out in a dot release