Hi Gerd,
Thanks for checking on this for me. I did some more tests, here's a slightly more specific report.
Bug: The squirrelsql-4.0.0-standard.jar installer doesn't seem to work properly with openjdk-8-jdk on Ubuntu 19.10 and Kubuntu 19.10, and throws NullPointerException at com.izforge.izpack.panels.PacksPanelBase$CheckBoxRenderer.getTableCellRendererComponent when certain checkboxes are clicked.
Workaround: Use openjdk-11-jdk to run the installer.
Test Environment: fresh OS installs in VirtualBox 6. 64-bit OS, 2 cores, 8192MB RAM.
Not tested with any other os/os versions/jvm versions/etc.
Also noted: running the installer with openjdk-8-headless fails with an entirely different "Assistive technology not found" exception, so I suspect that this issue isn't related to having installed the headless version at some point in the past. (It seemed like a possibility on my machine, so I decided to test it in the clean environment to see what might happen.)
Back on my own machine, I re-ran my install under openjdk 11 and the installer ran properly, but I had installed it on top of an earlier, partially failed install, so I wasn't really confident things were set up properly. I removed the install directory and ~/.squirrel-sql, and did a fresh install, and from that point on everything has been fine, and I was able to get a JDBC driver hooked up and run some queries with no particular difficulties.
I'm tempted to offer to do more to track down the actual issue but I don't think I can. It seems like it's either an izpack bug, or an openjdk bug that has since been fixed, or something related to ubuntu/kubuntu 19.10? There are a lot of possibilties, but I'm afraid with my current workload I can't take the time to chase down all those possibilities, particularly when simply running under openjdk 11 solves my particular problem. That said, if there's something specific you'd like me to test, let me know and I'll see what I can do.
So, for now it's just an FYI, then, in case someone else runs across the same issue. Hope this helps somebody.
Thanks again,
Sarah
-----Original Message-----
From: Gerd Wagner <ger...@t-...>
Sent: Saturday, February 29, 2020 11:15 AM
To: Kelley, Sarah <sak...@uc...>; squ...@li...
Subject: Re: [Squirrel-sql-users] NullPointerException from checkboxes in installer
Sarah,
sorry I can't reproduce your problem.
You may try out different Java versions for example from here:
https://adoptopenjdk.net/
Hope this helps
Gerd
Am 29.02.20 um 00:32 schrieb Kelley, Sarah via Squirrel-sql-users:
> Hi,
>
> I'm trying to install SquirreL SQL Client for the first time and I'm
> getting a NullPointerException (see below) when I click on the check
> boxes for the optional components.
>
> I assume I can work around this by doing a manual install from the
> .zip files, and I'll probably try that on Monday, but I thought I
> should report this somewhere.
>
> Tested with:
>
> squirrel-sql-4.0.0-standard.jar
>
> squirrel-sql-snapshot-20200227_1705-standard.jar
>
> same results for both.
>
> Apologies if I missed this in the FAQ, bug database, or elsewhere; I
> did poke around a bit but didn't find anything that looked applicable.
>
> Hope this is helpful! Suggestions welcome.
>
> Sarah
>
> System info:
>
> Kubuntu 19.10
>
> KDE Plasma 5.16.5
>
> KDE Frameworks 5.62.0
>
> Qt 5.12.4
>
> $ java -version
>
> openjdk version "1.8.0_242"
>
> OpenJDK Runtime Environment (build
> 1.8.0_242-8u242-b08-0ubuntu3~19.10-b08)
>
> OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
>
> $ uname -a
>
> Linux sakelley2 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34
> UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
>
> $ java -jar squirrel-sql-4.0.0-standard.jar
>
> Exception in thread "AWT-EventQueue-1"
> java.lang.NullPointerException
>
> at
> com.izforge.izpack.panels.PacksPanelBase$CheckBoxRenderer.getTableCell
> RendererComponent(Unknown
> Source)
>
> at
> javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:703
> 7)
>
> at
> javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7424)
>
> at
> javax.swing.JTable$AccessibleJTable.valueChanged(JTable.java:6939)
>
> at
> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSele
> ctionModel.java:184)
>
> at
> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSele
> ctionModel.java:164)
>
> at
> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSele
> ctionModel.java:211)
>
> at
> javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelec
> tionModel.java:405)
>
> at
> javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelec
> tionModel.java:415)
>
> at
> javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultList
> SelectionModel.java:459)
>
> at javax.swing.JTable.changeSelectionModel(JTable.java:2392)
>
> at javax.swing.JTable.changeSelection(JTable.java:2459)
>
> at
> javax.swing.plaf.basic.BasicTableUI$Handler.adjustSelection(BasicTable
> UI.java:1115)
>
> at
> javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(BasicTableUI.
> java:1038)
>
> at
> java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280
> )
>
> at
> java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279
> )
>
> at java.awt.Component.processMouseEvent(Component.java:6536)
>
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
>
> at java.awt.Component.processEvent(Component.java:6304)
>
> at java.awt.Container.processEvent(Container.java:2239)
>
> at java.awt.Component.dispatchEventImpl(Component.java:4889)
>
> at java.awt.Container.dispatchEventImpl(Container.java:2297)
>
> at java.awt.Component.dispatchEvent(Component.java:4711)
>
> at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
>
> at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)
>
> at
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
>
> at java.awt.Container.dispatchEventImpl(Container.java:2283)
>
> at java.awt.Window.dispatchEventImpl(Window.java:2746)
>
> at java.awt.Component.dispatchEvent(Component.java:4711)
>
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
>
> at java.awt.EventQueue.access$500(EventQueue.java:97)
>
> at java.awt.EventQueue$3.run(EventQueue.java:709)
>
> at java.awt.EventQueue$3.run(EventQueue.java:703)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPr
> ivilege(ProtectionDomain.java:74)
>
> at
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPr
> ivilege(ProtectionDomain.java:84)
>
> at java.awt.EventQueue$4.run(EventQueue.java:733)
>
> at java.awt.EventQueue$4.run(EventQueue.java:731)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPr
> ivilege(ProtectionDomain.java:74)
>
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
>
> at
> org.GNOME.Accessibility.AtkWrapper$6.dispatchEvent(AtkWrapper.java:705
> )
>
> at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
> d.java:205)
>
> at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
> ava:116)
>
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
> d.java:105)
>
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>
>
>
> _______________________________________________ Squirrel-sql-users
> mailing list Squ...@li...
> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
>
|