Abeille Problems

Discussion of your thoughts & requests, help for users and game specific configuration files for Character Tool

Moderators: dorpond, Azhrei

Post Reply
Jacob
Kobold
Posts: 2
Joined: Fri Apr 17, 2009 4:49 pm

Abeille Problems

Post by Jacob »

Hello all,

I'm trying to create a CharacterTool form for WFRP (v2). CharacterTool itself seems to work fine, but I'm having trouble with Abeille. I could find little to no information on the Abeille project pages or documentation so I'm trying my luck here.

Basically, I can start CharacterTool and the basic functions seem to work. I can also add classpaths using the Java Bean Manager, but if I try to register a bean (such as net.rptools.chartool.ui.charsheet.component.CharSheetButton) it throws an exception and bits of the UI stop functioning until I remove the bean. I've also tried adding less exotic beans, such as javax.swing.JButton (which Abeille itself gives as an example), and I get the same problem, so this seems to be an Abeille problem rather than a CharacterTool problem.

I'm running Sun's Java runtime version 1.6.0_13 on Ubuntu 8.10. The exact exception thrown by Abeille is as follows:

Code: Select all

Exception occurred during event dispatching:
java.lang.NullPointerException
	at javax.swing.JTable.prepareRenderer(JTable.java:5729)
	at javax.swing.plaf.synth.SynthTableUI.paintCell(SynthTableUI.java:622)
	at javax.swing.plaf.synth.SynthTableUI.paintCells(SynthTableUI.java:519)
	at javax.swing.plaf.synth.SynthTableUI.paint(SynthTableUI.java:308)
	at javax.swing.plaf.synth.SynthTableUI.update(SynthTableUI.java:234)
	at javax.swing.JComponent.paintComponent(JComponent.java:763)
	at javax.swing.JComponent.paint(JComponent.java:1027)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:277)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1217)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5070)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4880)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:803)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
	at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
	at java.awt.Dialog$1.run(Dialog.java:1051)
	at java.awt.Dialog$3.run(Dialog.java:1103)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1101)
	at com.jeta.open.gui.framework.JETADialog.showCenter(Unknown Source)
	at com.jeta.swingbuilder.gui.main.MainFrameController$BeanManagerAction.actionPerformed(Unknown Source)
	at com.jeta.open.gui.framework.JETAController.actionPerformed(Unknown Source)
	at com.jeta.open.gui.framework.JETAController$CommandListener.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
	at java.awt.Component.processMouseEvent(Component.java:6216)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5981)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4583)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4413)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4413)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
I've tried combinations of the following:
  • Abeille 2.0
  • Abeille 2.1.0 M1 (development release)
  • CharacterTool 0.1.b10
  • The latest CharacterTool in SVN, built using Eclipse.
I have also verified that the classes actually exist. Indeed, deliberately entering a non-existant class causes Abeille to generate an appropriate error message and the exception does not occur.

Does anyone have any idea what's going on here?

Thanks!
Jacob

Jacob
Kobold
Posts: 2
Joined: Fri Apr 17, 2009 4:49 pm

Re: Abeille Problems

Post by Jacob »

I have fixed the problem. I'm not entirely sure exactly how I did it as a number of things have changed. For anyone else looking to solve a similar problem:

* I have just upgraded from Ubuntu 8.10 (Intrepid) to 9.04 (Jaunty).
* I have just re-installed the JDK (and JRE). It is the same version, but the previous one was downloaded from Sun's website and the current (working) one was obtained using apt-get. Install package sun-java6-jdk.
* I moved Abeille off my desktop and set up links in ~/bin so it's a bit tidier. This shouldn't have had any effect on its function, but it's worth mentioning anyway.

I'm not sure which of the above changes triggered the improvement, but hopefully this post will give some ideas to other with similar problems.

Now I can get to playing with Abeille :-)

Thanks,
Jacob

Post Reply

Return to “CharacterTool”