JColorChooser hangs event thread on Linux x64

I am finding that repeatedly displaying a JColorChooser, picking a color, and clicking "OK" will hang the event thread in 64-bit Ubuntu 9.04 (Java 6 Update 13). Usually it takes between 2 to 20 launches of the JColorChooser before the color chooser will not launch and the UI is frozen. I cannot reproduce this using 32-bit Windows XP. I can even use the Sun Java Tutorial code and the problem occurs every time (Tutorial Link for a Color Editor in a JTable: http://java.sun.com/docs/books/tutorial/uiswing/examples/components/TableDialogEditDemoProject/src/components/ColorEditor.java).
Has anyone else seen this problem and found a workaround of any kind? Or has anyone tested this on 64-bit linux with Java 6 without problems? Thanks much to all for any help.

Here is a testbed that will produce the problem for me.
* 1) Run the testbed.
* 2) Click the button.
* 3) Pick a new color swatch.
* 4) Click OK.
* 5) Repeat steps 2-4 until the color chooser does not launch.
* (This was between 1 and 25 times for me)
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JColorChooser;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
* This class demonstrates a problem with JColorChooser.
* I encountered this problem launching a color chooser from a
* table cell, thus this example is based on table cell editor
* code from the Java Tutorial (ColorEditor.java). I have added a
* main() and removed some of the Table related noise.
* 1) Run.
* 2) Click the button.
* 3) Pick a new color swatch.
* 4) Click OK.
* 5) Repeat steps 2-4 until the color chooser does not launch.
* (This was between 1 and 25 times for me)
public final class ColorChooserTest implements ActionListener
private Color currentColor = Color.BLUE;
private final JButton button = new JButton("Push Me");
private final JColorChooser colorChooser;
private final JDialog dialog;
private static final String EDIT = "edit";
private final JFrame frame = new JFrame("JColorChooser TestBed");
public ColorChooserTest() {
button.setActionCommand(EDIT);
button.addActionListener(this);
button.setBorderPainted(false);
button.setBackground(currentColor);
//Set up the dialog that the button brings up.
colorChooser = new JColorChooser();
dialog = JColorChooser.createDialog(button,
"Pick a Color",
true, //modal
colorChooser,
this, //OK button handler
null); //no CANCEL button handler
final JPanel holder = new JPanel(new BorderLayout());
holder.setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
holder.add(button, BorderLayout.CENTER);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(holder, BorderLayout.CENTER);
frame.pack();
public void actionPerformed(final ActionEvent e)
if (EDIT.equals(e.getActionCommand()))
//The user has clicked the cell, so
//bring up the dialog.
button.setBackground(currentColor);
colorChooser.setColor(currentColor);
dialog.setVisible(true);
else
//User pressed dialog's "OK" button.
currentColor = colorChooser.getColor();
button.setBackground(currentColor);
public static void main(final String[] args)
final ColorChooserTest x = new ColorChooserTest();
x.frame.setSize(300, 300);
x.frame.setVisible(true);
}

Similar Messages

  • J2ee sdk installing on linux x64

    sorry for crossposting, but I guess I am not going to break peoples' ball by doing so. I am new here, so pls, let me do this once.
    Hello guys, this is my first post here :) so don't bash me too much.
    Trying to get the Java EE installed on gentoo linux x86-64 here. Downloaded java_ee_sdk-6u1-jdk-linux-x64.sh from oracle.com.
    I have tried different jres:
    32 bit, 64 bit.
    now I have this jre :
    ak@pussy ~/0.java $ java -version
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)so, doing:
    ak@pussy ~/0.java $ ./java_ee_sdk-6u1-jdk-linux-x64.sh gives:
    [#|2010-08-04T20:32:13.704+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=glassfish|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:13.781+06:00|INFO|Install Engine|org.openinstaller.provider.conf.ConfiguratorFactory|arg0=class org.openinstaller.provider.conf.InstallationConfigurator|LOG_INFO:Info|#]
    [#|2010-08-04T20:32:14.210+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring GlassFish:\[Unconfiguring GlassFish\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.232+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=jdk|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:14.264+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring JDK:\[Unconfiguring JDK\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.289+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=updatetool|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:14.318+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring Updatetool:\[Unconfiguring Updatetool\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.319+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Installation directory: /home/ak/0.java/glassfishv3:\[Installation directory: /home/ak/0.java/glassfishv3\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.322+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Shutting down notifier process:\[Shutting down notifier process\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.353+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Exception while unregistering notifier: Exception=EXECUTECMD_ERR
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:467)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Caused By=java.io.IOException: Cannot run program "/home/ak/0.java/glassfishv3/updatetool/bin/updatetool": java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:509)
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:423)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Context-Items=[[method=org.openinstaller.util.ExecuteCommand.execute(), operation=EXECUTECMD_ERR, command=[/home/ak/0.java/glassfishv3/updatetool/bin/updatetool, --notifier, --shutdown]]]:\[Exception while unregistering notifier: Exception=EXECUTECMD_ERR
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:467)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Caused By=java.io.IOException: Cannot run program "/home/ak/0.java/glassfishv3/updatetool/bin/updatetool": java.io.IOException: error=2, No such file or directory
    .and so on.
    Any ideas ?

    I guess this should give more details about issues I am having :
    Using the user defined JAVA_HOME : /home/ak/0.java/jre1.6.0_21_64
    Entering setup...
    WARNING: Warning: Could not detect OS Architecture, falling back to os.arch [Architecture=GenuineIntel ]
    FINE: completed initializing provider svc://general/orchestrator
    FINEST: Ignoring blank answer file or syntax error in ,file:///tmp/install.080510113914/install.properties
    FINEST: BGImagePanel() called by org.openinstaller.util.ui.StandaloneSplash?<init>
    FINEST: BGImagePanel.setBgImage(Image BufferedImage@1c5d9084: type = 5 ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@42bad8a8 transparency = 1 has alpha = false isAlphaPre = false ByteInterleavedRaster: width = 728 height = 435 #numDataElements 3 dataOff[0] = 2) called by org.openinstaller.util.ui.StandaloneSplash?<init>
    FINE: DISCOVERING_SERVICE_PROVIDERS
    FINE: Not instantiating null - not a ServiceProvider
    Exception=null
    at java.net.URLClassLoader$1.run(null:?)
    at java.security.AccessController.doPrivileged(null:?)
    at java.net.URLClassLoader.findClass(null:?)
    at org.openinstaller.core.EngineBootstrap.findClass(EngineBootstrap.java:249)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:357)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:318)
    at java.lang.Class.forName0(null:?)
    at java.lang.Class.forName(null:?)
    at org.openinstaller.core.Orchestrator.findServiceProviders(Orchestrator.java:763)
    at org.openinstaller.core.Orchestrator.main(Orchestrator.java:447)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(null:?)
    at sun.reflect.NativeMethodAccessorImpl.invoke(null:?)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:?)
    at java.lang.reflect.Method.invoke(null:?)
    at org.openinstaller.core.EngineBootstrap.main(EngineBootstrap.java:208)
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: DISCOVERED_SERVICE_PROVIDERS
    FINE: completed initializing provider svc://general/system
    FINE: completed initializing provider svc://general/name
    FINE: completed initializing provider svc://general/product
    FINEST: Initializing configuration provider
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINE: completed initializing provider svc://general/task
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: Mode-Request data: EngineConfigCommand{ cmd=GET_CONFIG, data=DRY_RUN_FILE}] By: [org.openinstaller.provider.sims.SIMSProvider.init(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: EngineConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=PLATFORM_PLUGIN_PATH}] By: [org.openinstaller.provider.platform.SystemInterface.init(*)
    FINE: completed initializing provider svc://general/operation
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ModeRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=PKG_FORMAT}] By: [org.openinstaller.sims.BackendFactory.discoverBackend(*)
    FINE: LOADING_CLASS
    FINE: Can't load SIMS backend org.openinstaller.sims.backends.zip.unix.linux.SIMSBackend
    Exception=org.openinstaller.sims.backends.zip.unix.linux.SIMSBackend
    at java.net.URLClassLoader$1.run(null:?)
    at java.security.AccessController.doPrivileged(null:?)
    at java.net.URLClassLoader.findClass(null:?)
    at org.openinstaller.core.EngineBootstrap.findClass(EngineBootstrap.java:249)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:357)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:318)
    at java.lang.Class.forName0(null:?)
    at java.lang.Class.forName(null:?)
    at org.openinstaller.sims.BackendFactory.getBackendByClass(BackendFactory.java:146)
    at org.openinstaller.sims.BackendFactory.discoverBackend(BackendFactory.java:112)
    at org.openinstaller.sims.BackendFactory.getBackend(BackendFactory.java:80)
    at org.openinstaller.sims.SIMSContext.<init>(SIMSContext.java:131)
    at org.openinstaller.provider.sims.SIMSProvider.init(SIMSProvider.java:95)
    at org.openinstaller.bus.ControlBus$1.run(ControlBus.java:192)
    at java.lang.Thread.run(null:?)
    ]

  • Installing java ee sdk (java_ee_sdk-6u1-jdk-linux-x64.sh) on x64 linux

    Hello guys, this is my first post here :) so don't bash me too much.
    Trying to get the Java EE installed on gentoo linux x86-64 here. Downloaded java_ee_sdk-6u1-jdk-linux-x64.sh from oracle.com.
    I have tried different jres:
    32 bit, 64 bit.
    now I have this jre :
    ak@pussy ~/0.java $ java -version
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)so, doing ak@pussy ~/0.java $ ./java_ee_sdk-6u1-jdk-linux-x64.sh gives me nasty file not found exception & hence I can't get sdk installed:
    [#|2010-08-04T20:32:13.704+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=glassfish|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:13.781+06:00|INFO|Install Engine|org.openinstaller.provider.conf.ConfiguratorFactory|arg0=class org.openinstaller.provider.conf.InstallationConfigurator|LOG_INFO:Info|#]
    [#|2010-08-04T20:32:14.210+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring GlassFish:\[Unconfiguring GlassFish\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.232+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=jdk|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:14.264+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring JDK:\[Unconfiguring JDK\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.289+06:00|INFO|Install Engine|org.openinstaller.provider.task.TaskDriver|arg0=prod\=updatetool|OP_UNCONFIGURE:Unconfiguring product|#]
    [#|2010-08-04T20:32:14.318+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Unconfiguring Updatetool:\[Unconfiguring Updatetool\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.319+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Installation directory: /home/ak/0.java/glassfishv3:\[Installation directory: /home/ak/0.java/glassfishv3\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.322+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Shutting down notifier process:\[Shutting down notifier process\]*\[{0} {1}\]|#]
    [#|2010-08-04T20:32:14.353+06:00|INFO|Install Engine|org.openinstaller.provider.conf.InstallationConfigurator||Exception while unregistering notifier: Exception=EXECUTECMD_ERR
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:467)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Caused By=java.io.IOException: Cannot run program "/home/ak/0.java/glassfishv3/updatetool/bin/updatetool": java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:509)
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:423)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Context-Items=[[method=org.openinstaller.util.ExecuteCommand.execute(), operation=EXECUTECMD_ERR, command=[/home/ak/0.java/glassfishv3/updatetool/bin/updatetool, --notifier, --shutdown]]]:\[Exception while unregistering notifier: Exception=EXECUTECMD_ERR
    at org.openinstaller.util.ExecuteCommand.execute(ExecuteCommand.java:467)
    at org.openinstaller.provider.conf.InstallationConfigurator.unconfigureUpdatetool(null:?)
    at org.openinstaller.provider.conf.InstallationConfigurator.unConfigure(null:?)
    at org.openinstaller.provider.conf.ConfigProvider.receiveRequest(ConfigProvider.java:573)
    at org.openinstaller.bus.ControlBus.publishRequest(ControlBus.java:341)
    at org.openinstaller.provider.task.UnconfigTask.perform(UnconfigTask.java:88)
    at org.openinstaller.provider.task.TaskDriver.executeTask(TaskDriver.java:378)
    at org.openinstaller.provider.task.TaskProvider.receiveRequest(TaskProvider.java:117)
    at org.openinstaller.bus.ControlBus$3.run(ControlBus.java:404)
    at java.lang.Thread.run(Thread.java:619)
    Caused By=java.io.IOException: Cannot run program "/home/ak/0.java/glassfishv3/updatetool/bin/updatetool": java.io.IOException: error=2, No such file or directory
    .and so on

    I guess this should give more details about issues I am having :
    Using the user defined JAVA_HOME : /home/ak/0.java/jre1.6.0_21_64
    Entering setup...
    WARNING: Warning: Could not detect OS Architecture, falling back to os.arch [Architecture=GenuineIntel ]
    FINE: completed initializing provider svc://general/orchestrator
    FINEST: Ignoring blank answer file or syntax error in ,file:///tmp/install.080510113914/install.properties
    FINEST: BGImagePanel() called by org.openinstaller.util.ui.StandaloneSplash?<init>
    FINEST: BGImagePanel.setBgImage(Image BufferedImage@1c5d9084: type = 5 ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@42bad8a8 transparency = 1 has alpha = false isAlphaPre = false ByteInterleavedRaster: width = 728 height = 435 #numDataElements 3 dataOff[0] = 2) called by org.openinstaller.util.ui.StandaloneSplash?<init>
    FINE: DISCOVERING_SERVICE_PROVIDERS
    FINE: Not instantiating null - not a ServiceProvider
    Exception=null
    at java.net.URLClassLoader$1.run(null:?)
    at java.security.AccessController.doPrivileged(null:?)
    at java.net.URLClassLoader.findClass(null:?)
    at org.openinstaller.core.EngineBootstrap.findClass(EngineBootstrap.java:249)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:357)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:318)
    at java.lang.Class.forName0(null:?)
    at java.lang.Class.forName(null:?)
    at org.openinstaller.core.Orchestrator.findServiceProviders(Orchestrator.java:763)
    at org.openinstaller.core.Orchestrator.main(Orchestrator.java:447)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(null:?)
    at sun.reflect.NativeMethodAccessorImpl.invoke(null:?)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:?)
    at java.lang.reflect.Method.invoke(null:?)
    at org.openinstaller.core.EngineBootstrap.main(EngineBootstrap.java:208)
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: FOUND_SERVICE_PROVIDER
    FINE: DISCOVERED_SERVICE_PROVIDERS
    FINE: completed initializing provider svc://general/system
    FINE: completed initializing provider svc://general/name
    FINE: completed initializing provider svc://general/product
    FINEST: Initializing configuration provider
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=MEDIA_LOCATION}] By: [org.openinstaller.util.install.Common.getMediaLocationURL(*)
    FINE: completed initializing provider svc://general/task
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: Mode-Request data: EngineConfigCommand{ cmd=GET_CONFIG, data=DRY_RUN_FILE}] By: [org.openinstaller.provider.sims.SIMSProvider.init(*)
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: EngineConfigRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=PLATFORM_PLUGIN_PATH}] By: [org.openinstaller.provider.platform.SystemInterface.init(*)
    FINE: completed initializing provider svc://general/operation
    FINEST: BusRequest For: [svc://general/EngineConfig] Request: [BusRequest: name: ModeRequest data: EngineConfigCommand{ cmd=GET_CONFIG, data=PKG_FORMAT}] By: [org.openinstaller.sims.BackendFactory.discoverBackend(*)
    FINE: LOADING_CLASS
    FINE: Can't load SIMS backend org.openinstaller.sims.backends.zip.unix.linux.SIMSBackend
    Exception=org.openinstaller.sims.backends.zip.unix.linux.SIMSBackend
    at java.net.URLClassLoader$1.run(null:?)
    at java.security.AccessController.doPrivileged(null:?)
    at java.net.URLClassLoader.findClass(null:?)
    at org.openinstaller.core.EngineBootstrap.findClass(EngineBootstrap.java:249)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:357)
    at java.lang.ClassLoader.loadClass(null:?)
    at org.openinstaller.core.EngineBootstrap.loadClass(EngineBootstrap.java:318)
    at java.lang.Class.forName0(null:?)
    at java.lang.Class.forName(null:?)
    at org.openinstaller.sims.BackendFactory.getBackendByClass(BackendFactory.java:146)
    at org.openinstaller.sims.BackendFactory.discoverBackend(BackendFactory.java:112)
    at org.openinstaller.sims.BackendFactory.getBackend(BackendFactory.java:80)
    at org.openinstaller.sims.SIMSContext.<init>(SIMSContext.java:131)
    at org.openinstaller.provider.sims.SIMSProvider.init(SIMSProvider.java:95)
    at org.openinstaller.bus.ControlBus$1.run(ControlBus.java:192)
    at java.lang.Thread.run(null:?)
    ]

  • AWT idle event thread?

    Does anyone have an example of how to create an
    AWT "busy" Dialog? I'd like to have a modal dialog
    come up that says my applet is doing some task,
    and when that task is complete, the Dialog should
    go away. So, typically, the user would not click
    anything in the dialog, it would just go away when
    the task finishes.
    What I now do is call show() from the event thread,
    and also span a new thread to do the actual work and
    when the work is complete, my new thread (not
    the AWT event thread) gets rid of the busy dialog.
    However, this seems to result in a hung UI most
    of the time with IE.
    I suspect maybe if the event thread got rid of the
    Dialog instead of my other thread the UI hang might
    not happen.
    Is there a way I can create tell AWT to run an idle
    thread (ie, when it's not doing anything)? If I could
    do that, then I could let the AWT event thread get
    rid of my dialog.
    Thank you!

    First of all, there is no way to create a modal dialog for an applet. Because the constructor of modal dialog needs a Dialog or Frame object as its owner. Unfortunately, the applet subclasses Panel that is in the hierarchy that is other than Dialog and Frame's. You can think in this way the applet does not own the browser's window.
    The dialog created by an applet sometimes get UI frozen. The reason is that the thread you created for the dialog is in the same thread group, sun.applet.AppletThreadGroup where the dialog thread can not get enough time slices to run.
    What I have done to solve this problem is to create the dialog thread under main thread group. I list the source code below for your reference.
    ThreadGroup group = Thread.currentThread().getThreadGroup();
    while(!group.getName().equals("main"))
    group = group.getParent();
    new Thread(group, this, "BusyDialog").start();

  • Event Monitor on Linux question

    We are currently running NSM 2.0. The engine is version 2.00.37 running on a NetWare 6.5 sp7 server. The two event servers are version 2.00.15 running on NetWare 6.5 sp7 servers. We are needing to decommission the two servers that are our current event servers and replace them with SLES. No plans are in place to upgrade the server running the NSM engine. I see from the documentation that we will need to upgrade NSM to 2.5 in order to run the event servers on SLES. The documentation states "installing the NSM Event Monitor for Linux requires OES2-SP1 or SLES 10 SP2." The directions then go on to state how to install on a OES2 box. Do you have to install the event monitors on OES2? Will the event monitors run on SLES 11?
    We already have 64 bit SLES 11 systems in the partition and would like to use these instead of installing more servers if possible. If we need to install OES2 servers, is it OK if they are virtual?

    I guess I am a little confused. We have SLES 11 boxes with eDirectory 8.8.5 sp4 installed. These servers also run LDAP and hold read/write replicas of the partition the users reside in. Why do I need to run OES2 to monitor eDirectory events?
    Originally Posted by NSRDevelopment
    The main purpose of the event monitor is to monitor edirectory replicas for events. If there are no replicas where you install event, it can be configured to monitor replicas on another server. The event monitor will probably run on SLES 11 (not officially supported), but you will have to configure it to monitor a server with edirectory replicas via LDAP, which requires OES 2 (SP 1 or SP 2.) There is no problem installing on a virtual server.
    NSM Support and Development
    >>> stephayers<[email protected]> 8/17/2010 4:29 PM >>>
    We are currently running NSM 2.0. The engine is version 2.00.37 running
    on a NetWare 6.5 sp7 server. The two event servers are version 2.00.15
    running on NetWare 6.5 sp7 servers. We are needing to decommission the
    two servers that are our current event servers and replace them with
    SLES. No plans are in place to upgrade the server running the NSM
    engine. I see from the documentation that we will need to upgrade NSM to
    2.5 in order to run the event servers on SLES. The documentation states
    "installing the NSM Event Monitor for Linux requires OES2-SP1 or SLES 10
    SP2." The directions then go on to state how to install on a OES2 box.
    Do you have to install the event monitors on OES2? Will the event
    monitors run on SLES 11?
    We already have 64 bit SLES 11 systems in the partition and would like
    to use these instead of installing more servers if possible. If we need
    to install OES2 servers, is it OK if they are virtual?
    stephayers
    stephayers's Profile: NOVELL FORUMS - View Profile: stephayers
    View this thread: Event Monitor on Linux question - NOVELL FORUMS

  • Kill Event thread or abort/restart main VI

    I am looking for a method of killing off an event thread once it is in the middle of executing.  A description of my problem is below (I am using labview 8.2).
    My main VI is reading my DAQ and constantly updating the main control panel with the data and logging the data at operator defined rates.
    The user can then select different functions for the system to execute using an enumeration and a Boolean control.
    When the user selects the Boolean control (run button) an event is triggered, the ENUM is read, and various sub-vi's execute to complete the function (none of the sub-vis have visible control panels all of them use some of the data from the main vi's controls/indicators passed by reference).
    The user also has a stop button.  If pressed another event is generated.  I would like to kill the run event in this case, at any point in its execution (long delays in some of the sub-vi's).  Then I can set the system back to default and continue on selecting another function in the enumeration and run button press.
    I would also considering aborting the main vi and then restarting it as long as the front panel remains open.

    I appreciate the reply.  I agree that the event cannot be killed, I have tried several "tricks".  The code does go into the stop event while the run event/sub vi is executing. 
     I had the ref to the stop button wired into the sub-vi's already.  Some of these vi's are fairly in depth, do you have a recommendation to continuously read its state without getting into every loop etc that is in the sub-vi?  I was trying not to monitor this buttons state at every point in the sub-vi's block diagrams.
    Thanks

  • Java 5 threads in linux

    Hi,
    I am using the following java version in Linux
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
    Threads are created using the source code:
    private static ExecutorService thPool = Executors.newFixedThreadPool(5);
    My question is how threads are created in linux using the mentioned runtime.
    1. Does the code line above create 5 linux native threads (process)?
    2. Does it create java threads? Don't know if java and native threads are same.
    3. If answer of the question 1 is "NO" then does one native linux threads for java runtime do all the concurrent execution?
    Please explain. Any documents on java threads in Linux for java 5?
    Thanks in advance
    Sunny

    What is your problem that makes you worry aboutthose things?
    Java for Linux uses NPTL thread library for itsthread.
    Browse the link to see what I wanted:
    http://groups.google.com/group/comp.lang.java.programm
    er/browse_thread/thread/2848feac5cd52151/9b6f6bf226ca9
    ef0?lnk=raot#9b6f6bf226ca9ef0reply 1, again. I don't understand your problem yet.

  • New installation woes - SQLDeveloper on Oracle Linux x64 and Oracle 11g XE

    Note that as an experienced Oracle developer in enterprise environments running MS Windows OS, I am familiar with SQLDeveloper for Windows. I don't have a lot of experience with Linux however. I don't find it intimidating, I just don't have a lot of accumulated knowledge.
    I have recently been trying to set up a development environment on my Windows7 Professional x64 laptop.
    1. Installed Oracle VBox
    2. Installed Oracle Linux 5.2 inside the VBox (because Oracle 11g XE is not certified on 64 bit Windows, needed to go with a Linux OS)
    3. Installed Oracle DB 11.2 XE
    4. Installed JDK as instructed in the SQLDeveloper release notes for Linux x64
    5. Installed SQLDeveloper 3.1.07.42-1
    No apparent issues with any of the installations.
    Problem : I can run SQL Plus from the command line, but when I click on the icon for SQLDeveloper, nothing happens. No error messages, nothing else.
    Question #1 : Unsure how to debug/troubleshoot this. Will read through the installation and release notes for SQLDeveloper, but any suggestions would be welcome.
    Question #2 : Could this be due to an issue with the JDK installation? It appeared to be successful (no obvious issues) but I can't see anything in the Oracle Linux menu system that tells me the JDK was installed successfully. How can I confirm that the JDK installation was successful?
    Edited by: Peter Hartgerink on Jun 19, 2012 9:12 AM

    >
    The Linux x64 version of SQLDeveloper doesn't come bundled with JDK. There is a version of JDK recommended, with an advisory to install it before installing SQLDeveloper. This I did, with apparent success. I guess I'll have to install the JDK again and check my Java versions afterwards. Thanks.
    >
    I don't know what JDK you downloaded since you didn't say. What version was it? Post the link.
    I find it hard to believe that the JDK version recommended was 1.4.2 since that is an ANCIENT version of Java, you have to hunt to even find it for download and most importantly the sql developer main download page clearly announces what version of Java is needed.
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
    >
    JDK Support
    Oracle SQL Developer 3.1 is shipped with JDK1.6.0_11. However, you can connect to and use any JDK 1.6.0_11 or above. To use an existing JDK, download the zip files listed below "with JDK already installed."
    >
    As you can see you need JDK 1.6.0_11 or above.
    If the version you say was recommended was actually 1.4.2 then that is an error; post the details so the developers can get that error fixed.
    I don't know what is on your system and can only go by the information you provide
    >
    4. Installed JDK as instructed in the SQLDeveloper release notes for Linux x64
    java version "1.4.2"
    >
    You either downloaded version 1.4.2, which seems unlikely, or your Linux included 1.4.2 and it is being used when you try to launch sql developer.
    Perhaps your system now has multiple versions of Java on it but the version being used by sql developer is the wrong one. If so that is the issue you need to resolve.

  • I am installing Netweaver on Linux x64 but I dont it. Can you help me?

    Hello.
    I try install Netweaver WAS on Linux x64 according :
    https://www.sdn.sap.com:443/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/603afa05-d2a4-2a10-a0bf-c86743f37368 [original link is broken]
    later when I have finished to download 7 packages and cat command apply, try mount iso file on linus file system . I burn a DVD too , but do not access to them. So what can I do bad ?
    Thank a lot
    Regards

    Hmm ..with so many large files SAP should at least provide the MD5SUM of each file so they can be checked once downloaded to confirm they are not corrupt before creating the image file!
    When you are mounting the ISO image what command are you using ? Should be something like:
    mount -t iso9660 iso.image /media/cdrom -o loop
    If you are still having problems email the address at the bottom of the page you posted and ask them for the md5sum of each file.
    Good luck.
    Regards,
    Nelis

  • Swing event queue, modal dialogs, event threads, etc...

    Hey all,
    So I am playing around with the focus manager, swing event thread and event queue, etc. Learned quite a bit. I am also playing around with test automation of our UI, using jfcUnit. I have written a few simple apps to play aorund with record/playback, coding tests, etc. What this thread is about though, is figuring out how modal and non-modal dialogs "take over" the event thread/queue? The reason I ask is, if I put a simple test harness like tool embeded in my app as a separate pop-up modal dialog, and from within it there is a GUI that I can use to select a "Test" to run. Now, when I run this test, jfcUnit needs to run on the main window, not within my non-modal dialog. What I am not sure of, however, is that if by using a non-modal dialog all events will go to the main event thread? I mean, I know if I mouse over my second non-modal frame (spawned from the application frame), that events will trigger for that dialog. I remember reading somewhere that modal dialogs "block" the main event queue, all left over events are given to the newly added event queue (presumably by the modal dialog) and existing left-over events get moved to the event queue. If that is the case, I am curious why events for the "old" queue are moved to the new queue if they were orginally intended for the old queue? I would think a "flush" before adding a new queue would be more appropriate so that the old queue can process all of its intended events.
    Now, I am just about to try this, but I am hoping a non-modal pop-up will not interfere with the jfcUnit running the UI of the main window. I am guessing, however, that it might. How are non-modal dialogs handled in terms of events and the event queue? Is it the same as modal dialogs? Or is there no blockage of the mainwindow event queue? If there is no blockage, than any sort of automation based on relative positions to a window may occur on the non-modal dialog, in which case it's best to hide the non-modal dialog during running of these tests.
    What are your thoughts, or better yet, knowledge of this topic? A decent explanation from a developer standpoint and not from the API's which dont give some of the more detailed info I am seeking is what I am hoping to get out of this.
    Thanks.

    Check this out. First, AWTListener has a LOT of
    different types you can register it for. I ORd all
    them together and when I ran my app, it took almost 30
    minutes for it to show up because of the huge stream
    of events being spit out via System.out. ...Yes, that doesn't surprise me in the least. There's hundreds of events that are fired around, usually unbeknownst to the user for every little thing. Lots of component and container events, in particular.
    Just make sure you OR ( using | not || ) ALL the
    "mask" values you want to watch for. That may be why
    you aren't seeing anything. When I did all that, and
    opened a menu, a ton of events came out.Maybe, I'll try that again, but I did specifically add an ActionEvent mask to get action events, and that should be all I need to get action events on buttons or menu items, and it wasn't getting them for either. It was only getting events on buttons when I used SwingEventMonitor, but not menu items.
    So I don't quite understand enough of the underlying event handling. Although, I suspect it could have something to do with the fact that these are Swing components, not AWT components (which their native peers) and it's pretty clear from AbstractButton (or was it DefaultButtonModel) how ActionEvents are fired, and they don't seem to have any connection to the code that deals with AWTListeners.
    My problem is that I kinda need a way to catch events without having a listener attached directly. Normally, I would have a listener, but there's this situation whereby an action may be triggered before I can get hold of the component to attach my listener to it. Perhaps I can get mouse press/release and just deal with it that way.
    Let me know if you did that and still didn't see what
    you were looking for. After playing with this, I am
    guessing the main reason for AWTListener is to
    register a listener for a specific type of event,
    instead of listening to them all, hence avoiding lots
    of extra overhead. Then again, the main event
    dispatcher must do a decent amount of work to fire off
    events to listeners of specific awt event types.Yes, it's definitely that. There's no point in sending events if no one is listening for it, so it does save some time.
    You are right, popup menus I think are dialogs, I
    don't know for sure, but you can access them via the
    JMenu.getPopupMenu() and JMenu.isPopupShowin().
    However, I am still not getting my test stuff working
    quite right.
    Yes, for menu popups. For a JPopupMenu on a right-click on any component (tree or whatever), I had a need to know about that from any arbitrary application (it's this GU testing app I'm working on), and since the popup menu doesn't belong to any component before it's shown, I couldn't necessarily know about it til it was displayed. I managed to use a combination of HierarchyEvents (using an AWTEventListener) and "component added" ContainerEvents. Not a simple matter, but it seems to work well.

  • Looking for different audit events in Oracle Linux

    Hi,
    I am looking for different audit events in Oracle Linux. I did lot of googling but could not find anything relevant. Can you please share some doc/info if you have.
    Thanks,
    Ravi

    You can probably spent all day searching in https://linux.oracle.com/documentation/ or http://docs.redhat.com/docs/en-US/index.html for information about this topic. Finding relevant information appears to be difficult.
    The information you are looking for is about configuring the Linux Audit subsystem. There are some rules examples in /usr/share/doc/audit*
    I found the following link in Google that seems to provide a reasonable overview:
    http://dgz.dyndns.org/mediawiki/index.php/%28RHEL%29_HOWTO_configure_the_auditing_of_the_system_%28auditd%29

  • ODBC instant client driver rpm for Linux X64

    Hi,
    Can anyone tell me where can I find odbc instant client driver rpm for Linux X64 edition.
    I can only see for Linux x32 not for X64.
    Edited by: user11128035 on Sep 6, 2009 3:13 AM
    Edited by: user11128035 on Sep 6, 2009 3:15 AM

    I don't understand your step 7 (the first step 7, actually).
    What is that unixODBC-2.2.14-linux-x86-32.tar.gz, where did it come from, and why are you doing all that?
    unixODBC should be installed after step 5.
    I guess that that is the cause of your problem.
    isql is not linked against readline at all on my RHEL 5 system.
    Do you notice any improvement after removing the files from that tar.bz file?
    Yours,
    Laurenz Albe

  • Synchronize AccessBridge thread with AWT event thread?

    Hi,
    I am a beginner in Java Access Bridge.
    I am writing a program that runs with Java Web Start and uses JFC Swing. For system monitoring purpose my company uses HP OpenView. Probe Builder is used for recording a probe for the application. The probe will be run at regular intervals to check if anything is broken. As I understand Probe Builder uses Java Access Bridge to record & control the application flow.
    Without Java Access Bridge my program runs fine. But when I run it with Probe Builder I occasionally catch some exceptions that indicate that there are two threads running over my gui classes at the same time, the AWT event thread and another thread that comes from com.sun.java.accessibility.AccessBridge.run.
    Since my classes are not thread safe (like all the Swing classes) there are race conditions that result in a NullPointerException.
    My question is that how can I make sure that only one thread at a time is running over my code? Can I somehow make Java Access Bridge run with the AWT event thread? Or do I have to synchronize all my methods - I want to avoid this since I am not sure that this can be done perfectly.
    I will appreciate any help.
    Thanks
    Message was edited by:
    karneim

    Maybe there is some other way to "kill" this thread because for some specific reasons I don't think I will be able to use System.exit(). This reason is - I'm using this Java program in Lotus Notes (don't know if you have had any experience with this) and if I call System.exit() then some important clean-up (garbage collection) won't be done.

  • OIM Install. Linux x64. errror /idm/Disk1/linux64/unzip ...

    Hello All.
    Try to install OIM on linux x64.
    Try to start runInstaller and got error :
    sh: /idm/Disk1/linux64/unzip: No such file or directory
    File is present.
    I try to start runInstaller from oracle and root users.
    Oracle 11g Database fresh instalation present on this server.
    Best regards Denis Eltsov

    Follow this:
    http://www.orafaq.com/forum/t/143402/2/

  • Flags and the Event Thread

    I was writing code for a game and I realized that the AWT event thread could change the value of a flag while I'm in the process of updating the game state. This can cause a few problems, or it could even leave events not handled because of it. I see code like this all the time as a fix to the threading issues, am I missing something or is it really a solution? I can't post the actual code as it's too long, so I created a simple example:
    import java.awt.event.*;
    import javax.swing.*;
    public class EventTest extends JFrame implements KeyListener, Runnable
         private boolean isKeyDown;
         public EventTest()
              setSize(500, 500);
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              setVisible(true);
              addKeyListener(this);
              new Thread(this).start();
         public void keyPressed(KeyEvent event)
              //synchronized(this)
                   isKeyDown = true;
         public void keyReleased(KeyEvent event)
              //synchronized(this)
                   isKeyDown = false;
         public void keyTyped(KeyEvent event) {}
         public void run()
              // game loop
              while(true)
                   //synchronized(this)
                        boolean cache = isKeyDown;
                        System.out.print(isKeyDown); // before
                        System.out.print(' ');
                        /* event handling, game logic, etc. done here
                           do some useless operation to simulate this */
                        long time = System.currentTimeMillis();
                        while(time + 1 > System.currentTimeMillis());
                        System.out.println(isKeyDown); // after
                        if(cache != isKeyDown)
                             System.out.println("PROBLEM!");
                        // render everything to the screen
                   try
                        Thread.sleep(100);
                   } catch(InterruptedException e) {}
         public static void main(String[] args)
              new EventTest();
    }Basically I have a game loop, where I update the game state, handle events, then draw things to the screen. Each time a key is pressed or released, I set the appropriate value to isKeyDown from the AWT event thread. The desirable output is to have the booleans equal to each other so that "false false" or "true true" is printed out on the screen constantly, but once in a while I'll get a "false true" or "true false", which is expected but obviously not wanted.
    So one solution is right there commented out (synchronizing), though most people seem to avoid it. I see everybody using flags like this, so I'm wondering if I'm missing some obvious solution to the problem or if it's really even that big of a deal. I don't see any other fix, but that's why you're all here. ;)
    Thanks.

    Swing related questions should be posted in the Swing forum.
    I converted your simple example to use a Swing Timer instead of a while(true) loop with a Thread.sleep. I experienced no problems as expected since all the code will be executed in the Event Dispatch Thread (EDT).
    Of course using this approach could make the game less responsive if your game logic is extensive and hogs the EDT, but given that you try to invoke your game logic every 100 millisecond I assume it can't be that extensive.
    Anyway here is the code I used as a test:
    import java.awt.event.*;
    import javax.swing.*;
    public class EventTest extends JFrame implements KeyListener, ActionListener
         private boolean isKeyDown;
         public EventTest()
              setSize(500, 500);
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              setVisible(true);
              addKeyListener(this);
              new Timer(100, this).start();
         public void keyPressed(KeyEvent event)
              isKeyDown = true;
         public void keyReleased(KeyEvent event)
              isKeyDown = false;
         public void keyTyped(KeyEvent event) {}
         public void actionPerformed(ActionEvent e)
              boolean cache = isKeyDown;
              System.out.print(isKeyDown); // before
              System.out.print(' ');
              /* event handling, game logic, etc. done here
                 do some useless operation to simulate this */
              long time = System.currentTimeMillis();
              while(time + 1 > System.currentTimeMillis());
              System.out.println(isKeyDown); // after
              if(cache != isKeyDown)
                   System.out.println("PROBLEM!");
         public static void main(String[] args)
              new EventTest();
    }

Maybe you are looking for