• Bug
  • Status: Open
  • 2 Major
  • Resolution:
  • Admin Console
  • lima
  • Reporter: lima
  • March 07, 2010
  • 0
  • Watchers: 0
  • November 16, 2010

Attachments

Description

Run dev-console against one server with two clients, which has Hibernate+EHCache and Session clustering in Express mode, got the following exceptions in dev-console’s terminal console:

Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException at org.terracotta.modules.ehcache.presentation.EhcacheRuntimeStatsPanel.setSelectedCacheModel(EhcacheRuntimeStatsPanel.java:216) at org.terracotta.modules.ehcache.presentation.CacheManagerPanel.propertyChange(CacheManagerPanel.java:71) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at java.awt.Component.firePropertyChange(Component.java:8213) at org.terracotta.modules.ehcache.presentation.EhcacheConfigPanel.valueChanged(EhcacheConfigPanel.java:100) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398) at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:442) at javax.swing.JTable.setRowSelectionInterval(JTable.java:2128) at com.tc.admin.common.XTable.setSelectedRows(XTable.java:271) at com.tc.admin.common.XTable.setSelectedRow(XTable.java:277) at org.terracotta.modules.ehcache.presentation.EhcacheConfigPanel$CacheTableModelGetter.finished(EhcacheConfigPanel.java:221) at com.tc.admin.common.BasicWorker$1.run(BasicWorker.java:59) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:633) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Exception in thread “AWT-EventQueue-0” java.lang.ArrayIndexOutOfBoundsException: No such child: 1 at java.awt.Container.getComponent(Container.java:294) at org.terracotta.modules.ehcache.presentation.EhcachePresentationPanel$2.run(EhcachePresentationPanel.java:221) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:633) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException at org.terracotta.modules.ehcache.presentation.BaseEhcacheStatsChartPanel.setup(BaseEhcacheStatsChartPanel.java:96) at org.terracotta.modules.ehcache.presentation.ClientEhcacheStatsChartPanel.setup(ClientEhcacheStatsChartPanel.java:28) at org.terracotta.modules.ehcache.presentation.EhcacheRuntimeStatsPanel.createClientEhcacheStatsChartPanel(EhcacheRuntimeStatsPanel.java:266) at org.terracotta.modules.ehcache.presentation.EhcacheRuntimeStatsPanel.access$200(EhcacheRuntimeStatsPanel.java:41) at org.terracotta.modules.ehcache.presentation.EhcacheRuntimeStatsPanel$1.run(EhcacheRuntimeStatsPanel.java:161) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:633) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: sun.management.ManagementFactory at com.tc.management.L1Info.isVerboseGC(L1Info.java:259) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:600) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:105) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:39) at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:220) at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:77) at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:228) at javax.management.StandardMBean.getAttribute(StandardMBean.java:370) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:678) at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:650) at javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:222) at javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951) at java.security.AccessController.doPrivileged(AccessController.java:284) at javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727) at javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629) at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:266) at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208) at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59) Caused by: java.lang.ClassNotFoundException: sun.management.ManagementFactory at java.lang.ClassNotFoundException.(ClassNotFoundException.java:77) at java.net.URLClassLoader.findClass(URLClassLoader.java:383) at org.terracotta.session.L1Loader.findClass(L1Loader.java:25) at java.lang.ClassLoader.loadClass(ClassLoader.java:652) at java.lang.ClassLoader.loadClass(ClassLoader.java:618) ... 21 more

Dev-console seams to be throwing more exceptions than earlier versions. Really need to have more robust code in dev-console to be tolerable to exceptions like these.

Comments

Steve Harris 2010-03-09

Li, can you please add steps to reproduce.

Fiona OShea 2010-03-09

Please verify that dev console and TC versions match.

Li Ma 2010-10-21

A few more exceptions reported from client.