Wiki source code of AgenPro 3 hangs on startup with NullPointerException on Console
Version 3.1 by Admin on 2010/07/26 23:05
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
3.1 | 1 | If AgenPro does not start and prints the following stack trace on the console, some incompatibility of the used Look&Feel with the JDK's system color defaults could be the reason. |
2 | |||
3 | {{code}} | ||
4 | |||
5 | Exception in thread "main" java.lang.NullPointerException | ||
6 | at javax.swing.plaf.ColorUIResource.<init>(Unknown Source) | ||
7 | at com.klg.jclass.table.JCTableUI.installDefaults(Unknown Source) | ||
8 | at com.klg.jclass.table.JCTableUI.installUI(Unknown Source) | ||
9 | at javax.swing.JComponent.setUI(Unknown Source) | ||
10 | at com.klg.jclass.table.JCTable.setUI(Unknown Source) | ||
11 | at com.klg.jclass.table.JCTable.<init>(Unknown Source) | ||
12 | at com.agentpp.common.table.PopupTable.<init>(Unknown Source) | ||
13 | at com.agentpp.common.table.ExtendedTable.<init>(Unknown Source) | ||
14 | at com.agentpp.agenpro.AgenProFrame$1.<init>(Unknown Source) | ||
15 | at com.agentpp.agenpro.AgenProFrame.<init>(Unknown Source) | ||
16 | at com.agentpp.agenpro.AgenPro.<init>(Unknown Source) | ||
17 | at com.agentpp.agenpro.AgenPro.main(Unknown Source) | ||
18 | |||
19 | |||
20 | {{/code}} | ||
21 | |||
22 | To get AgenPro to run again, edit the **AgenPro3.cf** file and remove the line that starts with | ||
23 | |||
24 | {{code}} | ||
25 | |||
26 | LookAndFeel= | ||
27 | |||
28 | {{/code}} | ||
29 | |||
30 | or define it as: | ||
31 | |||
32 | {{code}} | ||
33 | |||
34 | LookAndFeel=com.jgoodies.looks.plastic.Plastic3DLookAndFeel | ||
35 | |||
36 | {{/code}} |