Yeah, this is a known issue.  We don't ship (and I don't think Sigar has) a 
Java 1.6-compatible library for Mac.  Might be a 32-bit/64-bit thing; can't 
remember.  Officially, Mac is not a supported platform for Terracotta... ;)  

It shouldn't affect your ability to do anything other than see Sigar-provided 
stats in the console (like cpu stats, network, etc).


----- Original Message -----
From: "Sergio Bossa" <sergio.bo...@gmail.com>
To: "tc-dev" <tc-dev@lists.terracotta.org>
Sent: Sunday, June 21, 2009 8:18:38 AM GMT -06:00 US/Canada Central
Subject: [tc-dev] Problems with Sigar lib.

Hi guys,

after updating Java version to 1.6 on my MacBook, I'm getting the
following exception while trying to run any Terracotta application:

1949 [main] DEBUG Sigar  - /opt/terracotta-3.0.0/lib/sigar-1.6.0.jar:
no suitable image found.  Did find:
/opt/terracotta-3.0.0/lib/sigar-1.6.0.jar: unknown file type, first
eight bytes: 0x50 0x4B 0x03 0x04 0x0A 0x00 0x00 0x00
org.hyperic.sigar.SigarException:
/opt/terracotta-3.0.0/lib/sigar-1.6.0.jar:  no suitable image found.
Did find:  /opt/terracotta-3.0.0/lib/sigar-1.6.0.jar: unknown file
type, first eight bytes: 0x50 0x4B 0x03 0x04 0x0A 0x00 0x00 0x00
        at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:174)
        at org.hyperic.sigar.Sigar.<clinit>(Sigar.java:102)
        at com.tc.statistics.retrieval.SigarUtil.newSigar(SigarUtil.java:24)
        at 
com.tc.statistics.retrieval.actions.SRACpuCombined.<init>(SRACpuCombined.java:28)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at com.tc.management.beans.TCServerInfo.<init>(TCServerInfo.java:83)
        at com.tc.server.TCServerImpl.startDSOServer(TCServerImpl.java:455)
        at com.tc.server.TCServerImpl.access$600(TCServerImpl.java:82)
        at com.tc.server.TCServerImpl$StartAction.execute(TCServerImpl.java:412)
        at com.tc.lang.StartupHelper.startUp(StartupHelper.java:39)
        at com.tc.server.TCServerImpl.startServer(TCServerImpl.java:443)
        at com.tc.server.TCServerImpl.start(TCServerImpl.java:218)
        at com.tc.server.TCServerMain.main(TCServerMain.java:28)

The JAVA_HOME exported path is correctly set to 1.6.
If I switch back to 1.5, everything works fine.

Any ideas?
Thanks,
Cheers,

Sergio B.

-- 
Sergio Bossa
Software Passionate and Open Source Enthusiast.
URL: http://www.linkedin.com/in/sergiob
_______________________________________________
tc-dev mailing list
tc-dev@lists.terracotta.org
http://lists.terracotta.org/mailman/listinfo/tc-dev
_______________________________________________
tc-dev mailing list
tc-dev@lists.terracotta.org
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to