Spectrum OneClick Locator searches that prompt for data do not work when using a JRE 7 client

Document ID : KB000049222
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Using a Java 7 OneClick client may cause unexpected results in OneClick. In particular we have seen that Locator searches that prompt for information (e.g. By Model Name) will never actually prompt and therefore never run. In addition the following exception will be seen in the java client debug console:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(Unknown Source)
at java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
at sun.font.FontDesignMetrics.getMetrics(Unknown Source)
at sun.swing.SwingUtilities2.getFontMetrics(Unknown Source)
at javax.swing.JComponent.getFontMetrics(Unknown Source)
at com.aprisma.spectrum.app.topo.client.search.SearchPromptDialog.createGui(SearchPromptDialog.java:284)
at com.aprisma.spectrum.app.topo.client.search.SearchPromptDialog.(SearchPromptDialog.java:174)
at com.aprisma.spectrum.app.topo.client.search.SearchPromptDialog.(SearchPromptDialog.java:197)
at com.aprisma.spectrum.app.topo.client.search.DefaultSearchListener.promptForInput(DefaultSearchListener.java:530)
at com.aprisma.spectrum.app.topo.client.search.ClientSearchManager$2.run(ClientSearchManager.java:362)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

As of Spectrum version 9.2.2, the supported minimum version of JRE is 1.6.0_31.

When 9.2.H09 is released the minimum JRE version supported is tentatively scheduled to be 1.6.0_34.

Java JRE 1.7.0_x is tentatively scheduled to be fully supported in Spectrum 9.2.3 once released.

Solution:

We are currently investigating this issue and expect to have this resolved in an upcoming release. In the meantime, the workaround is to use a Java 6 client when connecting to OneClick. If necessary, you can define the required java version to require Java 6 clients only.

To do this access the OneClick Administration page and select 'OneClick Client Configuration' then in the Supported JRE Versions box make sure that a Java 6 version is specified and that 'Allow new versions' is NOT checked (no plus sign). If you wanted to restrict your users to Java 6 Update 31, your entry would look like:

1.6.0_31