Community
Participate
Working Groups
description: Error occurs when run SwingChartViewerSelector and select Cursor Example. build id: 2.6.0 v20100512-0630 steps to reproduce: 1. Run /org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/api/viewer/SwingChartViewerSelector.java. 2. Choose Cursor Example and update. 3. Mouse over the bars. Actual result: Exceptions throws out.
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64 at org.eclipse.birt.chart.device.swing.SwingEventHandler.setCursor(SwingEventHandler.java:703) at org.eclipse.birt.chart.device.swing.SwingEventHandler.mouseMoved(SwingEventHandler.java:569) at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:272) at java.awt.Component.processMouseMotionEvent(Component.java:5533) at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3144) at java.awt.Component.processEvent(Component.java:5257) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3905) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
For the the chart examples as a single project, if the related dependence libraries are not direct set in plugin.xml, the related libraries wont be reached. The org.apache.commons.codec should be set in plugin.xml to avoid this case.
Fixed by adding plug-in dependence to this plug-in.
verified on build 2.6.0 v20100521-0630.