From: Gerald T. <gt...@e2...> - 2010-02-02 18:38:53
|
as a followup .. here is the exception: ======================================================= INFO | jvm 1 | 2010/02/01 14:00:02 | SEVERE: Job (DEFAULT.com.e2open.smi.explorers.vitria threw an exception. INFO | jvm 1 | 2010/02/01 14:00:02 | org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.ClassCastException: org.hyperic.sigar.Humidor$MyHandler] INFO | jvm 1 | 2010/02/01 14:00:02 | at org.quartz.core.JobRunShell.run(JobRunShell.java:206) INFO | jvm 1 | 2010/02/01 14:00:02 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) INFO | jvm 1 | 2010/02/01 14:00:02 | * Nested Exception (Underlying Cause) --------------- INFO | jvm 1 | 2010/02/01 14:00:02 | java.lang.ClassCastException: org.hyperic.sigar.Humidor$MyHandler INFO | jvm 1 | 2010/02/01 14:00:02 | at org.hyperic.sigar.SigarProxyCache.getHandler(SigarProxyCache.java:86) INFO | jvm 1 | 2010/02/01 14:00:02 | at org.hyperic.sigar.SigarProxyCache.getSigar(SigarProxyCache.java:98) INFO | jvm 1 | 2010/02/01 14:00:02 | at org.hyperic.sigar.ptql.ProcessFinder.<init>(ProcessFinder.java:35) INFO | jvm 1 | 2010/02/01 14:00:02 | at org.hyperic.sigar.ptql.ProcessFinder.find(ProcessFinder.java:64) INFO | jvm 1 | 2010/02/01 14:00:02 | at com.e2open.smi.bundles.sigar.SigarService.processFinderFindPidsByString(SigarService.java:644) INFO | jvm 1 | 2010/02/01 14:00:02 | at com.e2open.smi.explorers.vitria.VitriaExplorer.isVitriaRunning(VitriaExplorer.java:39) INFO | jvm 1 | 2010/02/01 14:00:02 | at com.e2open.smi.explorers.vitria.VitriaExplorer.doExploration(VitriaExplorer.java:24) INFO | jvm 1 | 2010/02/01 14:00:02 | at com.e2open.smi.bundles.expmgr.Explorer.explore(Explorer.java:85) INFO | jvm 1 | 2010/02/01 14:00:02 | at com.e2open.smi.bundles.expmgr.ExplorerManager$ExplorerJob.execute(ExplorerManager.java:39) INFO | jvm 1 | 2010/02/01 14:00:02 | at org.quartz.core.JobRunShell.run(JobRunShell.java:195) INFO | jvm 1 | 2010/02/01 14:00:02 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) ======================================================= and here is a code snippet where I initialize Sigar in my object ======================================================= private Humidor curHumidor; private SigarProxyCache curProxyCache; private Sigar curSigar; public void activate(ComponentContext compctx) throws Exception { System.out.println("activating SIGAR service"); if (logger != null) logger.info("activating SIGAR service"); this.compctx = compctx; curSigar = getInstance(); curProxyCache = new SigarProxyCache(curSigar, SigarProxyCache.EXPIRE_DEFAULT ); curHumidor = new Humidor(curSigar); ... public long[] processFinderFindPidsByString( String ptqlString ) throws SigarException { long[] pids; System.out.println("entering SigarService.processFinderFindPidsByString()"); pids = ProcessFinder.find(curHumidor.getSigar(), ptqlString); System.out.println("entering SigarService.processFinderFindPidsByString()"); return pids; } ======================================================= I suspect I'm doing something wrong in the initialization of these classes but have run out of ideas on what to do. Any help is appreciated. -Gerald Talton E2open |