Keyboard-lock of swing program on Linux box

We are developing swing program on Linux, and we often meet keyboard-lock issues.
I try to simplify some of them to small programs, and still meet keyboard-lock.
Here I post two programs to show the error:
//---first ----------------------------------------------
package test;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
public class KeyLock extends JFrame {
  JPanel contentPanel = new JPanel();
  JPanel wizardToolPan = new JPanel();
  JButton btnBack = new JButton("Back");
  JButton btnNext = new JButton("Next");
  JButton btnAbout = new JButton("About");
  public static final String aboutMsg =
          "<html>  This program will help to find keyboard lock problems, two way to reproduce:<br><br>" +
          "1 - press Alt+N to navigate next, and don't release keys untill there are no more next page, <br>" +
          "then try Alt+B to navigate back and also don't release keys untill page 0,<br>" +
          "repeat Alt+N and Alt+B again and again, keyboard will be locked during navigating. <br><br>" +
          "2 - press Alt+A in main window, it will popup an about dialog,<br>" +
          "then press down space key and don't release, <br>" +
          "the about dialog will be closed and opened again and again,<br>" +
          "keyboard will be locked sooner or later." +
          "</html>";
  public KeyLock() {
    this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    this.setTitle("Keyboard lock test");
    getContentPane().setLayout(new BorderLayout());
    btnBack.setMnemonic('B');
    btnBack.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        KeyLock.this.goBack(e);
    btnNext.setMnemonic('N');
    btnNext.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        KeyLock.this.goNext(e);
    btnAbout.setMnemonic('A');
    btnAbout.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JOptionPane.showMessageDialog(KeyLock.this, aboutMsg, "About", JOptionPane.INFORMATION_MESSAGE);
    contentPanel.setLayout(new BorderLayout());
    contentPanel.setPreferredSize(new Dimension(400, 250));
    contentPanel.setMinimumSize(new Dimension(400, 250));
    wizardToolPan.setLayout(new FlowLayout());
    wizardToolPan.add(btnBack);
    wizardToolPan.add(btnNext);
    wizardToolPan.add(btnAbout);
    this.getContentPane().add(contentPanel, java.awt.BorderLayout.CENTER);
    this.getContentPane().add(wizardToolPan, java.awt.BorderLayout.SOUTH);
    this.setSize(400, 300);
    this.createContentPanels();
    this.showCurrent();
  private Vector<JPanel> slides = new Vector<JPanel>();
  private int current = 0;
  private void createContentPanels() {
    for (int j = 0; j < 20; ++j) {
      JPanel p = new JPanel(new FlowLayout());
      p.add(new JLabel("Page: " + j));
      p.add(new JTextField("Page: " + j + ", input something here", 20));
      p.add(new JTextField("Page: " + j + ", input something here", 20));
      p.add(new JTextField("Page: " + j + ", input something here", 20));
      p.add(new JLabel("Input something in password box:"));
      p.add(new JPasswordField(20));
      p.add(new JCheckBox("Try click here, focus will be here."));
      p.add(new JRadioButton("Try click here, focus will be here."));
      slides.add(p);
  public void showCurrent() {
    if (current < 0 || current >= slides.size())
      return;
    JPanel p = slides.get(current);
    this.contentPanel.add(p, java.awt.BorderLayout.CENTER);
    this.pack();
    Component[] comps = p.getComponents();
    if (comps.length > 0) {
      comps[0].requestFocus(); // try delete this line
    this.repaint();
  public void goNext(ActionEvent e) {
    if (current + 1 >= slides.size())
      return;
    this.contentPanel.remove(slides.get(current));
    current++;
    sleep(100);
    this.showCurrent();
  public void goBack(ActionEvent e) {
    if (current <= 0)
      return;
    this.contentPanel.remove(slides.get(current));
    current--;
    sleep(100);
    this.showCurrent();
  public static void sleep(int millis) {
    try {
      Thread.sleep(millis);
    } catch (Exception e) {
      e.printStackTrace();
  public static void main(String[] args) {
    KeyLock wizard = new KeyLock();
    wizard.setVisible(true);
}The first program will lead to keyboard-lock in RHEL 4 and red flag 5, both J2SE 5 and 6.
//---second -----------------------------------------
package test;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class KeyFocusLost extends JFrame {
  private JButton btnPopup = new JButton();
  private JTextField jTextField1 = new JTextField();
  private JPasswordField jPasswordField1 = new JPasswordField();
  private JPanel jPanel1 = new JPanel();
  private JScrollPane jScrollPane3 = new JScrollPane();
  private JTree jTree1 = new JTree();
  private JButton btnAbout = new JButton("About");
  public static final String aboutMsg =
          "<html>  This program is used to find keyboard focus lost problem.<br>" +
          "Click 'popup' button in main window, or select any node in the tree and press F6,<br>" +
          "a dialog popup, and click ok button in the dialog,<br>" +
          "keyboard focus will lost in main window." +
          "</html>";
  public KeyFocusLost() {
    this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    this.setTitle("Keyboard focus test");
    getContentPane().setLayout(null);
    btnPopup.setBounds(new Rectangle(33, 482, 200, 35));
    btnPopup.setMnemonic('P');
    btnPopup.setText("Popup and lost focus");
    btnPopup.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        PopupDialog dlg = new PopupDialog(KeyFocusLost.this);
        dlg.setVisible(true);
    btnAbout.setBounds(new Rectangle(250, 482, 100, 35));
    btnAbout.setMnemonic('A');
    btnAbout.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JOptionPane.showMessageDialog(KeyFocusLost.this, aboutMsg, "About", JOptionPane.INFORMATION_MESSAGE);
    jTextField1.setText("Try input here, and try input in password box below");
    jTextField1.setBounds(new Rectangle(14, 44, 319, 29));
    jPasswordField1.setBounds(new Rectangle(14, 96, 319, 29));
    jPanel1.setBounds(new Rectangle(14, 158, 287, 291));
    jPanel1.setLayout(new BorderLayout());
    jPanel1.add(new JLabel("Select any node in the tree and press F6."), java.awt.BorderLayout.NORTH);
    jPanel1.add(jScrollPane3, java.awt.BorderLayout.CENTER);
    jScrollPane3.getViewport().add(jTree1);
    Object actionKey = "popup";
    jTree1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0), actionKey);
    jTree1.getActionMap().put(actionKey, new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        PopupDialog dlg = new PopupDialog(KeyFocusLost.this);
        dlg.setVisible(true);
    this.getContentPane().add(jTextField1);
    this.getContentPane().add(jPasswordField1);
    this.getContentPane().add(jPanel1);
    this.getContentPane().add(btnPopup);
    this.getContentPane().add(btnAbout);
  public static void main(String[] args) {
    KeyFocusLost keytest = new KeyFocusLost();
    keytest.setSize(400, 600);
    keytest.setVisible(true);
  static class PopupDialog extends JDialog {
    private JButton btnOk = new JButton();
    public PopupDialog(Frame owner) {
      super(owner, "popup dialog", true);
      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      this.getContentPane().setLayout(null);
      btnOk.setBounds(new Rectangle(100, 100, 200, 25));
      btnOk.setMnemonic('O');
      btnOk.setText("OK, then focus lost");
      btnOk.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          PopupDialog.this.getOwner().toFront();
          try {
            Thread.sleep(100); // try delete this line !!!
          } catch (Exception ex) {
            ex.printStackTrace();
          PopupDialog.this.dispose();
      this.getContentPane().add(btnOk);
      this.getRootPane().setDefaultButton(btnOk);
      this.setSize(400, 300);
}The second program will lead to keyboard-focus-lost in RHEL 3/4 and red flag 4/5, J2SE 5, not in J2SE 6.
And I also tried java demo program "SwingSet2" in red flag 5, met keyboard-lock too.
I guess it should be some kind of incompatibleness of J2SE with some Linux platform. Isn't it?
Please help, thanks.

Hi.
I have same problems on Ubuntu with Java 6 (all versions). I would like to use NetBeans or IntelliJ IDEA but it is not possible due to keyboard locks.
I posted this bug
https://bugs.launchpad.net/ubuntu/+bug/174281
before I found some info about it:
http://forums.java.net/jive/thread.jspa?messageID=189281
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6506617
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6568693
I don't know from which part this bug comes, but I wonder why it isn't fixed yet. Does anybody else use NetBeans or IntelliJ IDEA on linux with Java 6 ?
(I cannot insert link :\ )

Similar Messages

  • Error while installing Java using jrockit on my Linux box

    I am trying to install java 1.6 using jrockit software in my 64-bit linux box, but I am getting errors:
    -bash-4.1$ ./jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin
    Extracting 0%....................................................................................................100%
    [JRockit] ERROR: The JVM has crashed. Writing crash information to /tmp/file06vBOV/jrockit.17485.dump.
    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 0 days, 00:00:07 on Wed Apr 17 01:33:22 2013
    * If you see this dump, please go to *
    * http://download.oracle.com/docs/cd/E15289_01/go2troubleshooting.html *
    * for troubleshooting information. *
    Additional information is available in:
    /tmp/file06vBOV/jrockit.17485.dump
    No snapshot file (core dump) will be created because core dumps have been
    disabled. To enable core dumping, try "ulimit -c unlimited"
    before starting JRockit again.
    Error Message: Unhandled native exception [85]
    Signal info : si_signo=4, si_code=2 si_addr=0x30c5814be0
    Version : Oracle JRockit(R) R28.2.7-7-155314-1.6.0_45-20130329-0641-linux-x86_64
    CPU : Intel SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 Intel64
    Number CPUs : 4
    Tot Phys Mem : 16399638528 (15639 MB)
    OS version : Red Hat Enterprise Linux Server release 6.2 (Santiago)
    Linux version 2.6.39-100.5.1.el6uek.x86_64 ([email protected]) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Tue Mar 6 20:26:00 EST 2012 (x86_64)
    Hypervisor : Xen v3.4
    Thread System: Linux NPTL
    LibC release : 2.12-stable
    Java locking : Lazy unlocking enabled (class banning) (transfer banning)
    State : JVM is running
    Command Line : -Djava.io.tmpdir=/tmp -Dbea.installer.launcher.home=/slot/ems8308/oracle/endeca3.0/endeca-server -Xmx256m -Dsun.java.command=com.bea.plateng.wizard.WizardController -mode=gui -Dsun.java.launcher=SUN_STANDARD com.bea.plateng.wizard.WizardController -mode=gui
    Repository :
    java.home : /tmp/file06vBOV/jre160_45
    j.class.path : .:installer.jar:customtasks.jar:bids.jar:3rdparty.jar:jsr173_api.jar:wlw-plaf.jar:comdev.jar:wizard.jar:com.bea.cie.oui_1.1.0.0.jar:com.bea.core.xml.xmlbeans_2.2.0.0.jar
    j.lib.path : /usr/java/packages/lib/amd64:/tmp/file06vBOV/jre160_45/lib/amd64/jrockit:/tmp/file06vBOV/jre160_45/lib/amd64:/tmp/file06vBOV/jre160_45/../lib/amd64
    JAVA_HOME : <not set>
    JAVAOPTIONS: <not set>
    LD_LIBRARY_PATH: /tmp/file06vBOV/jre160_45/lib/amd64/jrockit:/tmp/file06vBOV/jre160_45/lib/amd64:/tmp/file06vBOV/jre160_45/../lib/amd64
    LD_ASSUME_KERNEL: <not set>
    LD_PRELOAD : <not set>
    StackOverFlow: 0 StackOverFlowErrors have occured
    OutOfMemory : 0 OutOfMemoryErrors have occured
    C Heap : Good; no memory allocations have failed
    GC Strategy : Mode: throughput, with strategy: genparpar (basic strategy: genparpar)
    GC Status : OC is not running. Last finished OC was OC#0.
    : YC is not running. Last finished YC was YC#0.
    YC History : Ran 0 YCs since last OC.
    Heap : 0xf0000000 - 0xf4000000 (Size: 64 MB)
    Compaction : (no compaction area)
    Allocation : TLA-min: 2048, TLA-preferred: 32768 TLA-waste limit: 2048
    NurseryList : 0xf0000000 - 0xf2000000
    KeepArea : 0xf17fffe8 - 0xf2000000
    KA Markers : [ 0xf0fffff0,  0xf17fffe8 , 0xf2000000 ]
    Forbidden A : (none)
    Previous KA : (none)
    Previous FA : (none)
    CompRefs : References are compressed, with heap base 0x0 and shift 0.
    Registers (from ThreadContext: 0x7fdf142e34c0:
    rax = 0000000000000001 rcx = 0000000017bee3ff
    rdx = 00000000bfebfbff rbx = 00007fdf10d7eb20
    rsp = 00007fdf142e3928 rbp = 00007fdf142e3a70
    rsi = 0000000000000000 rdi = 0000000000000058
    r8 = 0000000000000000 r9 = 0000000000000000
    r10 = 00007fdf142e38a0 r11 = 00007fdf10d7eb20
    r12 = 00007fdf142e3a98 r13 = 00007fdf10e049b0
    r14 = 0000000000000000 r15 = 0000000000000000
    cs = 0000000000000033 fs = 0000000000000000
    gs = 0000000000000000
    rip = 00000030c5814be0 flags = 0000000000010202
    Loaded modules:
    (* denotes the module where the exception occured)
    0000000000400000-00000000004128c3 /tmp/file06vBOV/jre160_45/bin/java
    00007fff26fff000-00007fff26fffa7c /tmp/file06vBOV/jre160_45/bin/java
    00000030c6400000-00000030c6401fef /lib64/libdl.so.2
    00000030c6800000-00000030c6816b37 /lib64/libpthread.so.0
    00000030c6000000-00000030c6196c1f /lib64/libc.so.6
    00000030c5800000-00000030c581f13f */lib64/ld-linux-x86-64.so.2
    00007fdf18b70000-00007fdf18e780e3 /tmp/file06vBOV/jre160_45/lib/amd64/jrockit/libjvm.so
    00007fdf1894e000-00007fdf1896d21b /tmp/file06vBOV/jre160_45/lib/amd64/libjrosal.so
    00007fdf18741000-00007fdf1874d553 /tmp/file06vBOV/jre160_45/lib/amd64/libjrutil.so
    00000030c6c00000-00000030c6c824e7 /lib64/libm.so.6
    00000030c7400000-00000030c740680b /lib64/librt.so.1
    00007fdf17c30000-00007fdf17c3c483 /tmp/file06vBOV/jre160_45/lib/amd64/libjfr.so
    00007fdf1718e000-00007fdf1719a317 /tmp/file06vBOV/jre160_45/lib/amd64/libverify.so
    00007fdf1705f000-00007fdf17087283 /tmp/file06vBOV/jre160_45/lib/amd64/libjava.so
    00000030d8600000-00000030d8615ceb /lib64/libnsl.so.1
    00007fdf16ed4000-00007fdf16eda5bf /tmp/file06vBOV/jre160_45/lib/amd64/native_threads/libhpi.so
    00007fdf16673000-00007fdf16680c03 /tmp/file06vBOV/jre160_45/lib/amd64/libzip.so
    00007fdf16055000-00007fdf160e7683 /tmp/file06vBOV/jre160_45/lib/amd64/libawt.so
    00007fdf15f07000-00007fdf15f4828b /tmp/file06vBOV/jre160_45/lib/amd64/xawt/libmawt.so
    00000030c9400000-00000030c9410d8b /usr/lib64/libXext.so.6
    00000030c8400000-00000030c8538423 /usr/lib64/libX11.so.6
    00000030d5400000-00000030d5404dbb /usr/lib64/libXtst.so.6
    00000030cac00000-00000030cac0e243 /usr/lib64/libXi.so.6
    00000030c8c00000-00000030c8c1a123 /usr/lib64/libxcb.so.1
    00000030c8800000-00000030c8801dd3 /usr/lib64/libXau.so.6
    00007fdf15c14000-00007fdf15ca7fcf /tmp/file06vBOV/jre160_45/lib/amd64/libfontmanager.so
    00007fdf159bb000-00007fdf159cdca7 /tmp/file06vBOV/jre160_45/lib/amd64/libnet.so
    00007fdf149b3000-00007fdf149b99a3 /tmp/file06vBOV/jre160_45/lib/amd64/libnio.so
    00007fdf147ac000-00007fdf147b1f9b /tmp/file06vBOV/jre160_45/lib/amd64/liborii.so
    00000030cb800000-00000030cb808d13 /usr/lib64/libXcursor.so.1
    00000030ca800000-00000030ca808cfb /usr/lib64/libXrender.so.1
    00000030cbc00000-00000030cbc0497b /usr/lib64/libXfixes.so.3
    00007fdeb2015000-00007fdeb206084b /tmp/file06vBOV/jre160_45/lib/amd64/libcmm.so
    00007fdeb0e44000-00007fdeb0e55d5b /tmp/file06vBOV/libjni.so
    Stack:
    (* marks the word pointed to by the stack pointer)
    00007fdf142e3928: 00000030c580aad8* 0000000000000000 0000000000000000 00007fdf00000005
    00007fdf142e3948: 0000000000000000 00007fdf00000001 00007fdf10e049b0 0000000000000000
    00007fdf142e3968: 00007fdf00000000 0000000000000000 0000000000000058 0000000000000004
    00007fdf142e3988: 00007fdf10e04d08 0000000000000013 00007fdf142e3a40 00007fdf0000000a
    00007fdf142e39a8: 00000001142e3aa0 00007fdf146d6b18 00007fdf15c15ff1 00007fdf142e3a30
    00007fdf142e39c8: 00000030c6078edf 00007fdf160585c8 00007fdf10d744e0 00007fdf146d6b18
    Code:
    (* marks the word pointed to by the instruction pointer)
    00000030c5814b80: 8b48ffff8c0ae820 0f0824548b482404 244c280f10244428 246cdb40246cdb20
    00000030c5814ba0: 241c8b48dc894830 001f0fc330c48348 75000020c3c13d83 000001b8db894925
    00000030c5814bc0: 01b8db894ca20f00 000000c1f7000000 9d0589d8f7027510 517800f8830020c3
    00000030c5814be0: 008025047ffdc564* 250c7ffdc5640000 7ffdc564000000a0 c564000000c02514
    00000030c5814c00: 000000e0251c7ffd 010025247ffdc564 252c7ffdc5640000 7ffdc56400000120
    00000030c5814c20: c564000001402534 00000160253c7ffd 8025047f0f6664c3 0c7f0f6664000000
    Last optimized methods:
    No methods optimized.
    Thread:
    "AWT-EventQueue-0" id=17 idx=0x4c tid=17508 lastJavaFrame=0x7fdf142e3b88
    Stack 0: start=0x7fdf142a4000, end=0x7fdf142e6000, guards=0x7fdf142a9000 (ok), forbidden=0x7fdf142a7000
    Thread Stack Trace:
    at dlx86_64_save_sse+48()@0x30c5814be0
    at dlfixup+223()@0x30c580df40
    -- Java stack --
    at sun/font/X11TextRenderer.doDrawGlyphList(JJLsun/java2d/pipe/Region;Lsun/font/GlyphList;)V(Native Method)
    at sun/font/X11TextRenderer.drawGlyphList(X11TextRenderer.java:62)
    at sun/java2d/pipe/GlyphListPipe.drawString(GlyphListPipe.java:54)
    at sun/java2d/SunGraphics2D.drawString(SunGraphics2D.java:2772)
    at sun/swing/SwingUtilities2.drawString(SwingUtilities2.java:510)
    at sun/swing/SwingUtilities2.drawStringUnderlineCharAt(SwingUtilities2.java:531)
    at javax/swing/plaf/basic/BasicGraphicsUtils.drawStringUnderlineCharAt(BasicGraphicsUtils.java:229)
    at workshop/core/plaf/JbButtonUI.paintText(JbButtonUI.java:676)
    at workshop/core/plaf/JbButtonUI.paint(JbButtonUI.java:600)
    at javax/swing/plaf/ComponentUI.update(ComponentUI.java:143)
    at javax/swing/JComponent.paintComponent(JComponent.java:760)
    at javax/swing/JComponent.paint(JComponent.java:1037)
    at javax/swing/JComponent.paintChildren(JComponent.java:870)
    at javax/swing/JComponent.paint(JComponent.java:1046)
    at javax/swing/JComponent.paintChildren(JComponent.java:870)
    at javax/swing/JComponent.paint(JComponent.java:1046)
    at javax/swing/JComponent.paintChildren(JComponent.java:870)
    at javax/swing/JComponent.paint(JComponent.java:1046)
    at javax/swing/JComponent.paintChildren(JComponent.java:870)
    at javax/swing/JComponent.paint(JComponent.java:1046)
    at javax/swing/JLayeredPane.paint(JLayeredPane.java:567)
    at javax/swing/JComponent.paintChildren(JComponent.java:870)
    at javax/swing/JComponent.paint(JComponent.java:1046)
    at javax/swing/JComponent.paintToOffscreen(JComponent.java:5132)
    at javax/swing/BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
    at javax/swing/RepaintManager.paint(RepaintManager.java:1257)
    at javax/swing/JComponent._paintImmediately(JComponent.java:5080)
    at javax/swing/JComponent.paintImmediately(JComponent.java:4890)
    at javax/swing/RepaintManager$3.run(RepaintManager.java:814)
    at javax/swing/RepaintManager$3.run(RepaintManager.java:802)
    at jrockit/vm/AccessController.doPrivileged(AccessController.java:232)
    at java/security/AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at javax/swing/RepaintManager.paintDirtyRegions(RepaintManager.java:802)
    at javax/swing/RepaintManager.paintDirtyRegions(RepaintManager.java:745)
    at javax/swing/RepaintManager.prePaintDirtyRegions(RepaintManager.java:725)
    at javax/swing/RepaintManager.access$1000(RepaintManager.java:46)
    at javax/swing/RepaintManager$ProcessingRunnable.run(RepaintManager.java:1668)
    at java/awt/event/InvocationEvent.dispatch(InvocationEvent.java:209)
    at java/awt/EventQueue.dispatchEventImpl(EventQueue.java:672)
    at java/awt/EventQueue.access$400(EventQueue.java:81)
    at java/awt/EventQueue$2.run(EventQueue.java:633)
    at java/awt/EventQueue$2.run(EventQueue.java:631)
    at jrockit/vm/AccessController.doPrivileged(AccessController.java:232)
    at java/security/AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java/awt/EventQueue.dispatchEvent(EventQueue.java:642)
    at java/awt/EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java/awt/EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java/awt/EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java/awt/EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java/awt/EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java/awt/EventDispatchThread.run(EventDispatchThread.java:122)
    at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
    -- end of trace
    Memory usage report:
    Total mapped 3004488KB (reserved=2700572KB)
    - Java heap 262144KB (reserved=196608KB)
    - GC tables 8780KB
    - Thread stacks 13212KB (#threads=20)
    - Compiled code 1048576KB (used=2746KB)
    - Internal 1352KB
    - OS 174888KB
    - Other 1477872KB
    - Classblocks 1024KB (malloced=946KB #2264)
    Not tracing sites.
    - Java class data 15616KB (malloced=15591KB #10424 in 2264 classes)
    Not tracing sites.
    - Native memory tracking 1024KB (malloced=174KB #10)
    Not tracing sites.
    Set the env variable TRACE_ALLOC_SITES=1 or use the print_memusage switch
    trace_alloc_sites=true to enable alloc site tracing.
    * If you see this dump, please go to *
    * http://download.oracle.com/docs/cd/E15289_01/go2troubleshooting.html *
    * for troubleshooting information. *
    ===== END DUMP ===============================================================
    ** Error during execution, error code = 134.
    Please help me how to solve this issue.

    I suggest trying to install a different version to confirm the error. Do you have SELinux enabled? It can cause weird errors. You can check the syslog /var/adm/messages to see if there were any SELinux errors.
    The following is known to work:
    Oracle Linux with jrockit
    Oracle Linux with jrockit

  • Help needed-regarding swing component and linux

    Hi
    I am trying to run java program on Linux machine which doesn't have GUI support. Due to that following exception is throwing,
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at javax.swing.JFrame.<init>(Unknown Source)
    at org.jfree.ui.ApplicationFrame.<init>(ApplicationFrame.java:66)
    at ismschart.AbstractIsmsChart.<init>(AbstractIsmsChart.java:82)
    at ismschart.CHART_DAILY_PEAK_ACTIVITY.<init>(CHART_DAILY_PEAK_ACTIVITY.java:56)
    at ismschart.jChartTbl.createIsmsChart(jChartTbl.java:197)
    at ismschart.jChartTbl.main(jChartTbl.java:98)
    Can any one tell me, How to overcome this?
    Is there any tool which provides UI support for Linux?
    Thnaks
    -Ravi

    cut and paste from API
    Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse.
    environment issue

  • Error while running Swing program on FreeBSD

    Hi,
    I am trying to run simple swing program "helloworld"
    but while executing it gives following error on FreeBSD
    Exception in thread "main" java.lang.UnsatisfiedLinkError:
    /usr/local/linux-sun-jdk1.4.2/jre/lib/i386/libawt.so: libXp.so.6:
    cannot open shared object file: No such file or directory
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
            at java.lang.Runtime.loadLibrary0(Runtime.java:788)
            at java.lang.System.loadLibrary(System.java:834)
            at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
            at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
            at java.awt.EventQueue.<clinit>(EventQueue.java:80)
            at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1170)
            at JPanels.main(JPanels.java:29)
    Should i install XFree86-libs package on FreeBsd
    configuration
    FreeBSD 4.10-BETA (GENERIC)
    I am using following packages
    linux-sun-jdk-1.4.2.04 Sun Java Development Kit 1.4 for Linux
    linux_base-8-8.0_4 Base set of packages needed in Linux mode (only for i386)
    linux_devtools-8.0_1 Packages needed for doing development in Linux mode
    libtool-1.3.5_1 Generic shared library support script
    gmake-3.80_1 GNU version of 'make' utility
    automake-1.4.5_9 GNU Standards-compliant Makefile generator (legacy version
    GCC 2.95.4
    gdb 4.18
    ld 2.12.1 supported emulation elf_i386
    regards
    Man479

    This is not really a Swing question. You should install the library which satisfies the lookup of libXp.so.6 .
    I quess the jre for this platform is compiled against this version. Looks to me like some X related library, maybe google can resolve a solution/package to install?
    Greetz

  • Error in installation of Oracle BRM setup on a Linux Box

    Hi All ,
    I am trying to install an Oracle BRM setup on a Linux Box but during installation
    I am facing a major error , please can anybody help me out in figuring out the cause . Any sort of help
    would be appreciable .......
    cat ./var/dm_oracle/dm_oracle.pinlog
    E Fri Feb 1 11:46:21 2008 178.65.112.65, dm:908 dm_main.c(44):2641 1:<machine>:<program>:0:0:0:0:0
    DM master dm_die: "bad mutexattr_setpshared of accept token: 38", errno 0
    Error while running pin_setup script
    PATH variable IS O.K...
    LD_LIBRARY_PATH variable IS O.K...\n
    You are the pin user
    You are in the pin group\n
    Starting setup.\n
    #===========================================================
    # Installation started at Fri Feb 1 10:08:25 2008.
    #===========================================================
    cm: Generating pin.conf file
    pin.conf is generated under /home/pin/opt/portal/7.3/sys/cm/pin.conf
    pin.conf is generated under /home/pin/opt/portal/7.3/apps/pin_remit/pin.conf
    dm_oracle: Generating pin.conf file
    pin.conf is generated under /home/pin/opt/portal/7.3/setup/scripts/pin.conf
    pin.conf is generated under /home/pin/opt/portal/7.3/sys/dm_oracle/pin.conf
    dm_oracle: Configuring database
    Creating Portal tablespaces ... this may take a few minutes
    Creating main tablespace 'pin00' (already exists)
    Creating index tablespace 'pinx00' (already exists)
    Creating temporary tablespace 'PINTEMP' (already exists)
    Creating 'pin' user
    Granting 'pin' correct permissions
    Altering 'pin' user default tablespace
    Altering 'pin' user temporary tablespace
    Finished creating the Portal tablespaces
    Continuing to Configure the database
    Dropping table from file
    Execute SQL statement from file /home/pin/opt/portal/7.3/sys/dm_oracle/data/drop_snapshots.source
    Execute SQL statement from file /home/pin/opt/portal/7.3/sys/dm_oracle/data/drop_tables.source
    Execute SQL statement from file /home/pin/opt/portal/7.3/sys/dm_oracle/data/create_dd_UTF8.source
    Loading objects from file
    pcmdd: bad connect for 178.65.112.65, errno 111
    Re-reading the pin.conf file "./pin.conf" since it has changed. Previous file mod time was 1201791202, now it is 1201878509
    errno=<PIN_ERR_DM_CONNECT_FAILED:26> location=<Unknown pin location:0> class=<UNKNOWN:0> field num=<0:0,0> recid=<0> reserved=<111>
    pcmdd: bad connect for brm1.iaglab.com, errno 111
    errno=<PIN_ERR_DM_CONNECT_FAILED:26> location=<Unknown pin location:0> class=<UNKNOWN:0> field num=<0:0,0> recid=<0> reserved=<111>
    Linux lib Version
    glib version :
    bash-3.00$ ls /lib/libc-*
    /lib/libc-2.3.4.so
    Oracle Version
    Oracle Version :
    SQL*Plus: Release 10.2.0.1.0

    I am having the same issue with installation of brm on AIX.
    My research tells me it has to do with dm_oracle start up and below :
    #========================================================================
    # dm_shmsize
    # (UNIX only) Specifies the size of shared memory segment, in bytes, that
    # is shared between the front ends and back ends for this DM.
    #========================================================================
    # dm_bigsize
    # (UNIX only) Specifies the size of shared memory for "big" shared memory structures,
    # such as those used for large searches (those with more than 128 results)
    # or for PIN_FLDT_BUF fields larger than 4 KB.
    Any other clues leads to resolve the issue helps.
    Thanks!

  • Java server program on Linux problem

    Ok, i've written a simple java server using java.nio and have tested it on my windows machine. Then people can connect and it works as it should.
    However, when i run the server on my linux box it starts as it should, but no users can connect to it. Its like the connections never come through to the java program... What can cause this? Some firewall stuff etc?
    I've tested running a server written in C on the same port (both the java and the c server uses TCP) and then people can connect to it without any problems.
    So it seems to be some security thing in java, or in linux in connection with java programs.
    Anyone can enlight me on how to get the java server to work?
    Best wishes

    What version of the JDK are you using, and which linux kernel?
    From the Java Bug Database:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5056395
    Synopsis        nio does not seem to work with Linux kernel 2.6.4 (and probably above)
    Category      java:classes_nio
    Reported Against      1.4.2_04
    Release Fixed      1.5(tiger-rc)� {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need Help! Blackberry 8300 Keyboard Locked-up

    Need Help!  Blackberry 8300 keyboard locked-up.  Trackball can scroll but cannot activate programs. Cannot use keys to answer phone, activate programs, etc.  I have taken battery out to reboot/reset but no luck.  Any help/suggestions would be greatly appreciated.  Thanks! 

    What version of iTunes is on the computer?
    You may need iTunes 10.5 or later. That requires OSX 10.5.8 or later.
    You will also have to place the iPod in Recovery mode in order to allow you to restore the iPod.
    iOS: Wrong passcode results in red disabled screen

  • What do I need to open a connection from the Linux box to the Oracle server

    Hi all,
    I want to access oracle database from java application running on Linux.
    The database is installed on a Window 2000 machine. What do I need to install before I can open a connection from the Linux box to the Oracle server on Windows 2000 ?
    Do I need Oracle Client ?
    Thanks,
    Quoi

    Hi Quoi,
    http://myjdbc.tripod.com/basic/jdbcurl.html
    Talks abt how to write a jdbc url and the jar + config required to connect to db. Also has a sample program to connect.
    Regards
    Elango.

  • Unable to set classpath javax/swing/japplet in Linux

    Hi,
    I have a problem in running an Applet program in Linux. If I run I get the following message.
    "Javax/swing/JApplet error Java.lang.NoClassDefFound Error".
    I have set my .bash_profile as follows:
    CLASSPATH=/usr/java/jdk1.3_0_01/jre/lib
    CLASSPATH=/usr/java/jdk1.3_0_01/lib
    CLASSPATH=/usr/java/jdk1.3_0_01/
    EXPORT
    Please tell me whether I have created the .bash_profile correctly. or anything to be changed. It will be great help if anybody hep in this regard. I am held up in my project.
    Thnaks.
    Mari
    11/09/02

    You don't need to set the CLASSPATH to get javax.swing.JApplet - the JVM "automagically" knows where the rt.jar file is. The only items you need in your CLASSPATH environment are third-party .jar files.
    I'm taking a wild guess based on your subject line, but I'll bet you mis-typed the ClassName - "JApplet," not "japplet." Your code should have
    import javax.swing.JApplet;in it.

  • Access a dll file for an oracle adf app deployed on weblogic on linux box

    Hi:
    My department is trying to move an oracle adf application from oracle application server to weblogic 10.3 application server. After trying for a few weeks, everything looks fine except that the application is not able to access a dll file. For this adf application we use a dll file which is a C program to allow us to grab ip address and mac address for every user's computer for security reason. On our oracle application server on a linux box, everything is fine and the application is able to use access the dll fine. Technically, it is how the dll work. In our login.jspx, we declare a object:
    <OBJECT id="objMacAddr" height="0" width="0" classid="CLSID:D69161F0-C2BB-4212-9B67-62B908A07726" codebase="RMacAddress.dll#Version=1,0,0,1">
    when the user access our web application, the browser grab the dll file from the server while loading the page and a java script function in the page uses the dll file to grab the ip address and mac address for user's computer.
    It works on oracle application server. However, it does not work on Weblogic 10.3 server. Does anyone have similar experience? We have been told by oracle support that Weblogic 10.3 server does not recognize the dll file at all. One thing I don't understand is that both our oracle application and weblogic 10.3 are on linux box. Why dll works on oralce application server but not on weblogic 10.3 server? This issue has bothered us for quite a few weeks already. I just hope that anyone on this forum gives us some kind of hint or direction.
    Thanks,
    Jack

    Also,
    I checked the "monitoring" window of my datasource on weblogic server and saw that there are no failed database connections. So, the problem of a broken database connectivity can be ruled out.
    --Vivek                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Running CORBA Server in a Linux Box

    Dear friends,
    I have written a corba server program in Java and started the server after starting the naming sever (i am using 'orbd') in a linux box. I have started the orbd by using the command (The server ip is 10.200.9.153)
    # orbd -ORBInitialPort 1050 -ORBInitialHost localhost &
    After this , I have started the corba server by
    # java Sever -ORBInitialPort 1050
    Then I am trying to run the client from a different machine by :
    # java Client -ORNInitialHost 10.200.9.153 -ORBInitialPort 1050
    But when I executed this , I am getting the following error. But if I am running the same server program in a Windows machine it's working perfectly. The error I am getting is given below:
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 10.200.9.153; port: 1050"
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:205)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:218)
    at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
    at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
    at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:74)
    at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrapResolverImpl.java:107)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1157)
    at StockMarket.CorbaClient.connect(CorbaClient.java:35)
    at StockMarket.CorbaClient.run(CorbaClient.java:27)
    at StockMarket.CorbaClient.main(CorbaClient.java:65)
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:60)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:188)
    ... 13 more
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:205)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:218)
    at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
    at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
    at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:74)
    at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrapResolverImpl.java:107)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1157)
    at StockMarket.CorbaClient.connect(CorbaClient.java:35)
    at StockMarket.CorbaClient.run(CorbaClient.java:27)
    at StockMarket.CorbaClient.main(CorbaClient.java:65)
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:60)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:188)
    ... 13 more
    Please help me to solve the problem..

         I got the solution So please do not post the solution lest others sould learn from this case.

  • Font problem when executing a swing program

    Hi! I'm learning to write a simple swing program. The program compiled successfully. When I excuted it, everything worked fine except that I got the following error message:
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    It's somewhat annoying. Do you have any solution?
    Thank you,
    Liheng

    Thank you. I tried to run Font2DTest. But it didn't work, "Exception in thread "main" java.util.zip.ZipException: No such file or directory"
    I'll keep trying.......
    In JDK under the directory demo/jfc/Font2DTest, there
    is a demo program that shows all available fonts on
    your system. You can find the available font names.
    Then in the font.properties file in jre/lib, search
    for the font name in your error message and replace it
    with an available name from Font2DTest.
    Are you using Unix? What OS, Solaris, Linux?

  • Linux box connects to self, but that is it.

    ok I followed the guide to install SSH to a T. I can SSH my linux box from within itself. However I can't seem to get my XP laptop to access my linux box at all using winscp. I know this is a broad help call, but anyone have ANY idea where I could have gone wrong?

    I would like to thank you lucke, although your post was not a resolution to the issue it did set me along the path.  I found that I was able to ping and SSH with both the firewalls of each system down.  Turns out that Outpost Firewall, on my laptop, does not allow Echo Reply out or Echo Request in, by default, same deal with my firewall on my linux box.  Also turns out that I had set the range of acceptable IPs on my linux box incorrectly.  After the SSH was establish I re-enabled the each firewalls' ability to ignore ping request, so now I have a SSH client-server system, without either machine being pingable. 
    Sniffles, your post had all the helpful nature of a fragile-X male child banging on a keyboard.  I would save the helpfulness to people who are actually helpful.

  • Keyboard input through swing

    How do I make it so that in swing a person can press a keyboard button and it will then go to a new screen with out the unput dearea being visable. I tried doing it with a text area but when I made it invisible it would not respond to keyboard input?

    hi buddy,
    u can create a new JFrame and call tht in the text area's ActionListener
    and then while creating the JFrame use the Following code to close the frame on exit,
    ur swing program will surely respond to it then
    JFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    in case u want to get the text b4 closing u can use a string variable to set the text to it and then come out,
    cheers,
    hayath

  • Storm 2 and Keyboard Lock?

    I am wondering with current OS in the Storm 2, how is the keyboard lock compared to the changed keyboard lock with the other Blackberrys?  I am trying to get either a Storm 2 or Droid Incredible if I can get Verizon Wireless to say it's okay to automatically change the Contract Date because  I am unhappy with my Tour which I get near the end of 2009 and would like to switch w/o paying full price.
    DJ

    Hi and Welcome to the forums..
    Have you tried a 'One way Sync' coming from the device to the computer only?
    If your issue is resolved, put a checkmark in the green box that contains the resolution.
    OR
    If it was just/or also really helpful - Give it a Kudos.. Go on Mate.. Help the rest of the clueless blackberry user world find their answer too..
    ~Gday from Down Under~

Maybe you are looking for

  • In ALE/IDOC Change Pointer using Maintenance order for message Type

    Hi All Expert, I am using Maintenace order to send via ALE/IDOC(Change ponters), i need standard message Name for Maintenance Order,

  • Approve Purchase order - Define SAPUI5 Version

    Hi all, At one of our clients, we installed the approve purchase order application, but we're faced with a quirky problem. On the detail page, at header level, you have a tabcontainer with multiple tabs (header info, notes, attachments). I have a pur

  • How to delete autocomplete memory?

    I factory reset my iPad mini for my Mum. She set it up as a new device and signed in to her iCloud. However, although ALL my data has gone, it still autocompletes her messages and emails with contacts from my long-gone address book? Worse still, afte

  • Need help w/DW CS3 Spry image substitution

    I have put up a page at http://tstpg.miahi53.com to demonstrate my problem. When the master data on the left is clicked the detail data on the right (under the image area) changes but the image never appears. What have I done wrong? How do I correct

  • Details required to create scenarioes

    Hi Experts... i am a beginner in XI. can anyone provide me what are the technical details reqiured when we are developing a interface for all interfaces i.e. file, JDBC, SOAP, IDOC, proxy when thy act has senders as well as receivers. its a urgent ne