https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362011-11-09T02:14:51ZEcoinformatics RedmineKepler - Bug #5501: Got an java.lang.NullPointerException when click any menu after downloading a kar filehttps://projects.ecoinformatics.org/ecoinfo/issues/5501?journal_id=190182011-11-09T02:14:51ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>This is related to our using JGoodies Looks (LnF_looks-1.3.2.jar) for our linux LnF. On Ubuntu 10.04 if you use the native (gnome i guess?) LnF, I can't get the bug to occur.</p>
<p>uiSettings.xml:<br /><name>LINUX_LNF</name<br /><value>com.jgoodies.looks.plastic.Plastic3DLookAndFeel</value></p>
<p>In the LOOK & FEEL section in uiSettings.xml there's a comment:
# NOTE - Typically won't need to (and shouldn't) change LnF for Windows or
# Mac OS X - we should use the native LnF's on these systems
#
# Primarily intended for Linux, since Sun's standard Look & Feel for linux
# doesn't really match the newer linuxes (linices??), and has big ol' honking
# fonts that don't fit on our dainty buttons.</p>
<p>I guess something is going wrong when you do a remote search, because the returned results appear with a background color, which is what the component library looks like when using the default Ubuntu LnF (i.e. when I set blank the LINUX_LNF value in uiSettings.xml).</p>
<p>I tried changing to the newest JGoodies Looks (2.4.2 (jgoodies-common-1.2.1.jar and jgoodies-looks-2.4.2.jar)), but a similar, and additional errors occurred.</p>
<p>As mentioned, when I just use my standard LnF, I can't get the error to occur. I also can't find any buttons where text doesn't fit, which the comment gives as the reason for using a specific LnF. Kepler looks fine for the most part, but there are a few issues: the background color on items in the components library, there's a gap between the zoom-out and play buttons in the toolbar, and some of the drop-down menu backgrounds are the same color as other backgrounds, and thus blend in. See attached screenshot.</p> Kepler - Bug #5501: Got an java.lang.NullPointerException when click any menu after downloading a kar filehttps://projects.ecoinformatics.org/ecoinfo/issues/5501?journal_id=190192011-11-11T04:21:59ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>Another bug that seems to fairly consistently happen after your first remote Component search is that after clicking on it, the Cancel button loses its text.</p> Kepler - Bug #5501: Got an java.lang.NullPointerException when click any menu after downloading a kar filehttps://projects.ecoinformatics.org/ecoinfo/issues/5501?journal_id=190202011-11-11T04:24:35ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>Strangely my stacktrace has different line numbers than Jing's, and googling my numbers yield more results. Unfortunately I haven't found a quick fix. </p>
<pre><code>[run] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException<br /> [run] at com.sun.java.swing.plaf.gtk.GTKIconFactory$MenuArrowIcon.paintIcon(GTKIconFactory.java:348)<br /> [run] at sun.swing.plaf.synth.SynthIcon.paintIcon(SynthIcon.java:87)<br /> [run] at com.jgoodies.looks.common.MinimumSizedIcon.paintIcon(MinimumSizedIcon.java:80)<br /> [run] at com.jgoodies.looks.common.MenuItemRenderer.paintMenuItem(MenuItemRenderer.java:419)<br /> [run] at com.jgoodies.looks.common.ExtBasicMenuUI.paintMenuItem(ExtBasicMenuUI.java:135)<br /> [run] at com.jgoodies.looks.plastic.PlasticMenuUI.paintMenuItem(PlasticMenuUI.java:80)<br /> [run] at javax.swing.plaf.basic.BasicMenuItemUI.paint(BasicMenuItemUI.java:587)<br /> [run] at javax.swing.plaf.basic.BasicMenuItemUI.update(BasicMenuItemUI.java:583)<br /> [run] at javax.swing.JComponent.paintComponent(JComponent.java:758)<br /> [run] at javax.swing.JComponent.paint(JComponent.java:1022)<br /> [run] at javax.swing.JComponent.paintToOffscreen(JComponent.java:5104)<br /> [run] at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:285)<br /> [run] at javax.swing.RepaintManager.paint(RepaintManager.java:1128)<br /> [run] at javax.swing.JComponent._paintImmediately(JComponent.java:5052)<br /> [run] at javax.swing.JComponent.paintImmediately(JComponent.java:4862)<br /> [run] at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:723)<br /> [run] at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:679)<br /> [run] at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:659)<br /> [run] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)<br /> [run] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)<br /> [run] at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)<br /> [run] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)<br /> [run] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)<br /> [run] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)<br /> [run] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)<br /> [run] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)<br /> [run] at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)</code></pre> Kepler - Bug #5501: Got an java.lang.NullPointerException when click any menu after downloading a kar filehttps://projects.ecoinformatics.org/ecoinfo/issues/5501?journal_id=190212011-11-21T23:13:32ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>No objections (<a class="external" href="http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/2011-November/019957.html">http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/2011-November/019957.html</a> ) so I've committed the change at r28981 and r28982 and to use default LnF on linux, which avoids this bug. <br />The Cancel button issue in comment#3 also goes away. <br />Closing.</p> Kepler - Bug #5501: Got an java.lang.NullPointerException when click any menu after downloading a kar filehttps://projects.ecoinformatics.org/ecoinfo/issues/5501?journal_id=190222013-03-27T21:30:41ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 5501</p>