Re: Problem with KeyStroke (keyCode)

Apparently, when a KeyStroke represents a character, it doesn't bother to pass along the KeyCode. If you really need that information, you'll have to attach your own KeyListener to capture the lower-level KeyEvents.

Hi guys!
I saw that this answer is correct, but it is not for me.
The following code
KeyStroke ks = KeyStroke.getKeyStroke('k', 0);does not work: in fatc the 'k' value is casted to int, and the int value of 'k' is not the corresponding VK_K value, so the key pressed is another key!
I solved this problem in this way:
1) I've mapped all the DOS character into an hashMap<Character,int[]>, with key=the char to digit, and value=the 3 numers of the DOS code of that characted
Just some examples:
                mapping.put('!', new int[] { 0, 3, 3 });//The code for ! is 033
          mapping.put('"', new int[] { 0, 3, 4 });// The code for " is 034
          mapping.put('#', new int[] { 0, 3, 5 });// The code for # is 035
                mapping.put('i', new int[] { 1, 0, 5 });
          mapping.put('j', new int[] { 1, 0, 6 });
          mapping.put('k', new int[] { 1, 0, 7 });
          mapping.put('l', new int[] { 1, 0, 8 });
                ......2) When I have to digit a char, retrieve the DOS code, and then press in sequence: ALT code[0] code[1] code[2]
In this way all works fine

Similar Messages

  • Problem with keystrokes gone. Thank you

    Problem with keystrokes gone after computer shut down and brought back up. Thank you.

    This would not have anything to do with iCloud.  Try posting in one of the other forums where you'll have a good chance of getting a good response.  I'd try for the OSX forum for the verson your computer is using.

  • Problem with KeyStroke

    can anyone tell me whats the problem with the following lines:
    JMenuItem jMenuItemHelp = new JMenuItem("Help Topics");
    jMenuItemHelp.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));
    its giving me an ""MainInterface.java": <identifier> expected at line 51, column 31" error.
    all import are in place.
    thanks

    I hope someone else recognizes this erroneous error. Your code seems okay to me. Maybe it is not the javac compilation, but some source code parser for a dialog editor? A dumb parser might have problems with a qualified expression like KeyStroke.VK_F1. Try 128 or something.

  • Problem with keycode

    Hi,
    I've had a long running problem with my keycode in Xcelsius 2008.  I've tried various things suggested by my supplier, but nothing seems to work.  I thought I'd try here to see if anyone else can help.  The details are:
    We are running Windows XP Pro SP3.  I had Crystal Reports XI installed.  We purchased Crystal Reports 2008 Visual Advantage, and were issued with a single keycode.  When we installed Crystal Reports 2008 using the keycode, everything was fine.  When we installed Xcelsius 2008 we used the same keycode, but the program seemed to bee in a trial version state (i.e. all the save options / most of the export options are greyed out).
    We have changed the permissions on the registry to ensure that all users have full control in HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0.
    We have removed the keycode from HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Xcelsius\Keycodes and restarted the application and entered the keycode when prompted.
    We have removed the keycode from HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Xcelsius\Keycodes and entered the keycode directly into the registry.
    None of the above actions have helped (we have tried them all repeatedly in various orders).  I've had this software for about a year now, but am not able to use it.  I am getting more than a little frustrated.
    Can anyone offer any advice or help?
    Many thanks
    Steve Birch
    Edited by: Steve Birch on Jun 24, 2010 12:57 PM

    Hi,
    Thank you for the very quick reply.
    When I look at the export tool bar I only have "Send to Adobe Acrobat PDF" enabled ("Send to PowerPoint", "Send to Microsoft Word", "Attach the SWF in Outlook" and "Export to Business Objects Platform" are all disabled).
    When I look at the standard toolbar "Save" and "Print the SWL file" are greyed out.
    When I look at the "File" drop down menu, the following items are greyed out:
    Save
    Save As...
    Save To Enterprise
    Page Setup...
    Print...
    Print Preview
    When I look at the "Export" submenu, the following items are greyed out:
    HTML...
    Business Objects Platform...
    PowerPoint Slide...
    Outlook
    Word...
    When I look at the "Snapshot" submeu, all items are greyed out.
    Because I have never used the software before, I'm not sure what should be enabled / disabled when looking at the menus, but I should be able to save shouldn't I?
    I believe I have Flash Player version 9,0,124,0 installed.  Will this be causing a problem?
    Also, just to clarify.  We bought 2 copies of the software for 2 different computers.  They both have the same problem.
    Thanks again for your quick reply.
    Regards
    Steve Birch

  • KeyCode problem with KeyEvent

    Hi,
    I'm trying to use '+' and '-' keys in a KeyListener, but the keyCode returned aren't those defined by Java :
    VK_PLUS = 521
    '+' keyCode = 107
    VK_MINUS = 45
    '-' keyCode = 109
    I know there are problems with the localization, but it seemed that these standard keys where correctly managed. Can someone give me an explication ?
    Thanks...

    Instead of event.getKeyCode(), try using event.getKeyChar();
    Chris

  • Keyboard mapping problem with sunstudio

    I'm a new sunstudio user and am having trouble with a setup issue. When I run sunstudio 11 from a sunray with a Sun keyboard all works fine (except the sunray has far too small of screen and it drive me crazy). When I run with my linux desktop being the x-server then none of the special keys (home, end, arrows, backbspace, enter, etc.) work correctly in sunstudio. All other gui apps I've tried (gedit, gvim, staroffice, web browser, etc.) work fine from my linux/pc keyboard.
    Using google I discovered xev. It shows the keycode and keysym that is interpreted for each keyboard stroke. When I compare the output from my linux/pc keyboard vs. the sun keyboard connected to the sunray I see the expected differences in keycode, but the keysym and resulting interpretation (e.g. BACKSPACE) is the same. Yet sunstudio ignores any keystroke except normal alphabet characters that come from my linux/pc keyboard.
    When using my linux/pc keyboard I'm in one of two configs (both act the same):
    - ssh -X hostname
    OR
    - Xephyr :1 -screen 1250x975 -query hostname &
    Thanks for any help.
    cb

    There is a known problem related to control keys in the netbeans GUI.
    http://www.genunix.org/wiki/index.php/Sun_Studio_FAQs#IDE_-TheSun_Studio_IDE_is_ignoring_my_control_keys
    It's hard to tell from your message where the programs are
    executing from.
    Run two X programs next to each other, running on the same machine,
    and displaying to the same X server. Verify that one of them can see
    ALT keys (for example) and the other one can't. Then you know it's
    a problem with the application program, and not due to your keyboard.
    The Sun Studio IDE has no idea what physical keyboard you're using.
    It only sees the keysyms from the X server.

  • Problem With ButtonUI in an Auxiliary Look and Feel

    This is my first post to one of these forums, so I hope everything works correctly.
    I have been trying to get an axiliary look and feel installed to do some minor tweaking to the default UI. In particular, I need it to work with Windows and/or Metal as the default UI. For the most part I let the installed default look and feel handle things with my code making some colors lighter, darker, etc. I also play with focus issues by adding FocusListeners to some components. I expect my code to work reasonably well no matter what the default look and feel is. It works well with Motif, Metal, and Windows, the only default look and feels I've tested with. What I'm going to post is a stripped down version of what I have been working on. This example makes gross changes to the JButton background and foreground colors in order to illustrate what I've encountered.
    I have three source code files. The first, Problem.java, creates a JFrame and adds five buttons to it. One button installs MyAuxLookAndFeel as an auxiliary look and feel using MyAuxButtonUI for the look and feel of JButtons. The next button removes that look and feel. The next button does nothing except print a line to System.out. The next button installs MyAuxLookAndFeel as an auxiliary look and feel using MyModButtonUI for the look and feel of JButtons. The last button removes that look and feel.
    The problem is, when I install the first auxiliary look and feel, buttons are no longer tabable. Also, they cannot be invoked by pressing the space button when they're in focus. When I remove the first auxiliary look and feel everything reverts to behaving normally. When I add the "Mod" version, button tabability is fine. The only difference is I've added the following code:
    if ( c.isFocusable() ) {
       c.setFocusable(true);
    }That strikes me as an odd piece of code to profoundly change the program behavior. Anyway, after adding and removing the "Mod" look and feel, the tababilty is forever fixed. That is, if I subsequently re-install the first look and feel, tababilty works just fine.
    The problem with using the space bar to select a focused button is more problematic. My class is not supposed to mess with the default look and feel which may or may not use the space bar to press the button with focus. When the commented code in MyModButtonUI is uncommented, things behave correctly. Even the statement
    button.getInputMap().remove( spaceKeyStroke );doesn't mess things up after the auxiliary look and feel is removed. So far I've tested this with JRE 1.4.2_06 under Windows 2000, JRE 1.4.2_10 under Windows XP, and JRE 1.5.0_06 under Windows XP and the behavior is the same.
    All of this leads me to two questions.
    1. Is my approach fundamentally flawed? I've extended TextUI and ScrollBarUI with no problems. This is the only problem I've encountered with ButtonUI. My real workaround for the space bar issue is better than the one I've supplied in the example, but it certainly is not guaranteed to work for any arbitrary default look and feel.
    2. Assuming I have no fundamental problems with my approach, it's possible I've found a real bug. I searched the bug database and couldn't find anything like this. Of course, this is the first time I've tried seasrching the database for a bug so my I'm doing it badly. Has this already been reported as a bug? Is there any reason I shouldn't report it?
    What follows is the source code for my example. It's in three files because the two ButtonUI classes must be public in order to work. Thanks for insight you can provide.
    Bill
    File Problem.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Problem extends JFrame {
       public boolean isAuxInstalled = false;
       public boolean isModInstalled = false;
       public LookAndFeel lookAndFeel = new MyAuxLookAndFeel();
       private static int ctr = 0;
       public static void main( String[] args ) {
          new Problem();
       public Problem() {
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setSize(250, 150);
          setTitle("Button Test");
          JButton install = new JButton("Install");
          JButton remove = new JButton("Remove");
          JButton doNothing = new JButton("Do Nothing");
          JButton installMod = new JButton("Install Mod");
          JButton removeMod = new JButton("Remove Mod");
          this.getContentPane().setLayout(new FlowLayout());
          this.getContentPane().add(install);
          this.getContentPane().add(remove);
          this.getContentPane().add(doNothing);
          this.getContentPane().add(installMod);
          this.getContentPane().add(removeMod);
          install.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( !isAuxInstalled ) {
                   isAuxInstalled = true;
                   UIManager.addAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          remove.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( isAuxInstalled ) {
                   isAuxInstalled = false;
                   UIManager.removeAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          doNothing.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                System.out.println( "Do nothing " + (++ctr) );
          installMod.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( !isModInstalled ) {
                   isModInstalled = true;
                   UIManager.addAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          removeMod.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( isModInstalled ) {
                   isModInstalled = false;
                   UIManager.removeAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          setVisible(true);
       class MyAuxLookAndFeel extends LookAndFeel {
          public String getName() {
             return "Button Test";
          public String getID() {
             return "Not well known";
          public String getDescription() {
             return "Button Test Look and Feel";
          public boolean isSupportedLookAndFeel() {
             return true;
          public boolean isNativeLookAndFeel() {
             return false;
          public UIDefaults getDefaults() {
             UIDefaults table = new MyDefaults();
             Object[] uiDefaults = {
                "ButtonUI", (isModInstalled ? "MyModButtonUI" : "MyAuxButtonUI"),
             table.putDefaults(uiDefaults);
             return table;
       class MyDefaults extends UIDefaults {
          protected void getUIError(String msg) {
    //         System.err.println("(Not) An annoying error message!");
    }File MyAuxButtonUI.java:
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.plaf.*;
    import javax.swing.plaf.multi.*;
    import javax.accessibility.*;
    public class MyAuxButtonUI extends ButtonUI {
       private Color background;
       private Color foreground;
       private ButtonUI ui = null;
       public static ComponentUI createUI( JComponent c ) {
          return new MyAuxButtonUI();
       public void installUI(JComponent c) {
          MultiButtonUI multiButtonUI = (MultiButtonUI) UIManager.getUI(c);
          this.ui = (ButtonUI) (multiButtonUI.getUIs()[0]);
          super.installUI( c );
          background = c.getBackground();
          foreground = c.getForeground();
          c.setBackground(Color.GREEN);
          c.setForeground(Color.RED);
       public void uninstallUI(JComponent c) {
          super.uninstallUI( c );
          c.setBackground(background);
          c.setForeground(foreground);
          this.ui = null;
       public void paint(Graphics g, JComponent c) {
          this.ui.paint( g, c );
       public void update(Graphics g, JComponent c) {
          this.ui.update( g, c );
       public Dimension getPreferredSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getPreferredSize( c );
          return this.ui.getPreferredSize( c );
       public Dimension getMinimumSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getMinimumSize( c );
          return this.ui.getMinimumSize( c );
       public Dimension getMaximumSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getMaximumSize( c );
          return this.ui.getMaximumSize( c );
       public boolean contains(JComponent c, int x, int y) {
          if ( this.ui == null ) {
             return super.contains( c, x, y );
          return this.ui.contains( c, x, y );
       public int getAccessibleChildrenCount(JComponent c) {
          if ( this.ui == null ) {
             return super.getAccessibleChildrenCount( c );
          return this.ui.getAccessibleChildrenCount( c );
       public Accessible getAccessibleChild(JComponent c, int ii) {
          if ( this.ui == null ) {
             return super.getAccessibleChild( c, ii );
          return this.ui.getAccessibleChild( c, ii );
    }File MyModButtonUI.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.plaf.*;
    public class MyModButtonUI extends MyAuxButtonUI
       static KeyStroke spaceKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0 );
       public static ComponentUI createUI( JComponent c ) {
          return new MyModButtonUI();
       public void installUI(JComponent c) {
          super.installUI(c);
          c.setBackground(Color.CYAN);
          if ( c.isFocusable() ) {
             c.setFocusable(true);
    //      final JButton button = (JButton) c;
    //      button.getInputMap().put( spaceKeyStroke, "buttonexample.pressed" );
    //      button.getActionMap().put( "buttonexample.pressed", new AbstractAction() {
    //         public void actionPerformed(ActionEvent e) {
    //            button.doClick();
    //   public void uninstallUI(JComponent c) {
    //      super.uninstallUI(c);
    //      JButton button = (JButton) c;
    //      button.getInputMap().remove( spaceKeyStroke );
    //      button.getActionMap().remove( "buttonexample.pressed" );
    }

    here is the code used to change the current look and feel :
    try {
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
             catch (InstantiationException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (ClassNotFoundException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (UnsupportedLookAndFeelException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (IllegalAccessException e)
                  System.out.println("Error occured in .. " + e.toString());
             Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
             Fenetre fen = new Fenetre();
             fen.setSize(dim.width, dim.height);
             fen.setResizable(false);
                 fen.setLocation(0, 0);
                  fen.setVisible(true);

  • Problem with display

    Hi - My iMac seems to have 'developed' a problem with it's display. The whole screen looks as though it has had its contrast/brightness turned up very high & there is a severe degradation to the quality of all of it.
    The 'lines' & boxes around everything in a window are hardly visible, all the colours are very de-saturated & it also looks like there's a problem with 'aliasing', ie all the graphics on the dock look very 'scratchy' in quality.
    I have tried system prefs, displays - but nothing on there seems to be helping...any ideas??!! - I do have 3 kids who may have been 'fiddling' but I don't know where else to look! - HELP!
    Thanks

    Could be someone may have found the keyboard shortcut for the
    Universal Access> Seeing> 'white on black' reversal; by chance
    that can be selected by random use of a keyboard combination.
    If that's the case, you can visit System Preferences> Universal Access
    and note options in Seeing where you can re-select Black on White, as
    this is the Default.
    { I've heard of another thing called *'invert colors'* which can happen
    through use of a keyboard combination; it may be the same setting:
    re: http://support.apple.com/kb/HT3488?viewlocale=en_US uses
    4 keys, together: Control-Option-Command-8 key combination }
    +Through use of additional user accounts with less privilege settings,+
    +such incidents may be avoided; along with any other account access+
    +into other user files & folders. This in place of or with Parental controls.+
    About keyboard shortcuts:
    • Mastering keyboard shortcuts:
    http://www.myfirstmac.com/index.php/mac/articles/mastering-keyboard-shortcuts
    • Mac OS X keyboard shortcuts:
    http://support.apple.com/kb/HT1343
    • Dan Rodney's list of Mac OS X keyboard shortcuts & keystrokes:
    http://www.danrodney.com/mac/
    • Shortcuts:
    http://shortcuts.heroku.com/
    • Magical Macintosh Key Sequences: (includes vintage)
    http://davespicks.com/writing/programming/mackeys.html
    Hopefully this helps...
    Good luck & happy computing!
    PS: This does sound familiar; you've been there before:
    http://discussions.apple.com/message.jspa?messageID=13124058#
    +{ edited to add links }+

  • Problem with repaint of display after a click event

    Hi,
    I have a problem with repaint of display. In particular in method keyPressed() i inserted a statement that, after i clicked bottom 2 of phone, must draw a string. But this string doesn't drawing.
    Instead if i reduce to icon the window, which emulate my application, and then i enlarge it, i see display repainted with the string.
    I don't know why.
    Any suggestions?
    Please help me.

    modified your code little
    don't draw in keyPressed
    import java.io.IOException;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    public class PlayerCanvas extends Canvas implements CommandListener{
         Display display;
         Displayable dsp11;
    private Image play, pause, stop, next, previous = null;
    private int gamcode;
    private Command quitCmd = new Command("Back", Command.ITEM, 1);
    public PlayerCanvas(Display display,Displayable dsp11){
         this.display =display;
         this.dsp11 =dsp11;
         addCommand(quitCmd);
         createController();
         setCommandListener(this);
         display.setCurrent(this);
              protected void paint(Graphics g)
              g.setColor(255,200,150);
              g.fillRect(0, 0, getWidth(), getHeight());
              if (play != null){
              g.drawImage(play, getWidth()/5, getHeight()-50, Graphics.BOTTOM | Graphics.HCENTER);
              if (stop != null){
              g.drawImage(stop, getWidth()/5, getHeight()-10, Graphics.BOTTOM | Graphics.HCENTER);
              if (next != null){
              g.drawImage(next, (getWidth()/5)+10, getHeight()-30, Graphics.BOTTOM | Graphics.LEFT);
              if (previous != null){
              g.drawImage(previous, (getWidth()/5)-30, getHeight()-30, Graphics.BOTTOM | Graphics.LEFT);
                   /////this will draw on key UP
                   g.setColor(0,0,0);
                   System.out.print(gamcode);
                   if(gamcode==Canvas.UP){
                        g.drawString("PROVA",10, 0, 0);
                   }else if(gamcode==Canvas.DOWN){
                        g.drawString("DIFFERENT",10, 30, 0);     
    private void createController()
    try {
    play = Image.createImage("/icon3.png");//replace your original images plz
    pause = Image.createImage("/icon3.png");
    stop = Image.createImage("/icon3.png");
    next = Image.createImage("/icon3.png");
    previous = Image.createImage("/icon3.png");
    } catch (IOException e) {
    play = null;
    pause = null;
    stop = null;
    next = null;
    previous = null;
    if (play == null){
    System.out.println("cannot load play.png");
    if (pause == null){
    System.out.println("cannot load pause.png");
    if (stop == null){
    System.out.println("cannot load stop.png");
    if (next == null){
    System.out.println("cannot load next.png");
    if (previous == null){
    System.out.println("cannot load previous.png");
              protected void keyPressed(int keyCode)
                   repaint();
                   if ( (keyCode == 2) || (UP == getGameAction(keyCode)) ){
                        gamcode = UP;
                        repaint();
                        else if ( (keyCode == 8) || (DOWN == getGameAction(keyCode)) ){
                             gamcode =DOWN;
                             repaint();
              else if ( (keyCode == 4) || (LEFT == getGameAction(keyCode)) ){
              else if ( (keyCode == 6) || (RIGHT == getGameAction(keyCode)) ){
              public void commandAction(Command arg0, Displayable arg1) {
                   // TODO Auto-generated method stub
                   if(arg0==quitCmd){
                        display.setCurrent(dsp11);
    }

  • Problems with browsers and 'w' key since updates

    Hi
    I ran 'pacman -Syu' a little over a week ago, and since then I've been experiencing two rather odd problems.
    1.
    Using any web-browser (firefox, epiphany, songbird, etc), visiting pages that make use of javascript (i -think- that's the cause) makes the browser stop responding for 10-20 seconds. It goes grey and everything. And then eventually it starts working again. This occurs on many websites such as Facebook, Woot.com, to name a few big ones. It's really starting to drive me nuts.
    2.
    This problem's much weirder. After starting my computer, the w key is very unresponsive. By that I mean for a 'w' keystroke to register I need to hold down the 'w' key for 1 or 2 seconds, after which it will finally work. At first I thought this was a problem with my keyboard, but as the computer remains on, the problem slowly disappears - after about 30 minutes, the 'w' key works as expected. I don't think this is an X/GNOME problem, as I experience the same problems in the TTYs.
    I have a Sony Vaio FE-890:
    oliver@helios:~$ uname -a
    Linux helios 2.6.28-ARCH #1 SMP PREEMPT Fri Feb 13 11:03:55 CET 2009 x86_64 Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz GenuineIntel GNU/Linux
    I've been updating frequently in the interim hoping the problems will go away, but so far no luck. Any thoughts?

    Hi
    Thanks for your suggestions.
    Also, flash doesn't work on webpages anymore. I'm assuming this is some problem with the nspluginwrapper thing...
    Here's pacman.log of the fateful upgrade:
    [2009-02-10 10:32] synchronizing package lists
    [2009-02-10 10:32] starting full system upgrade
    [2009-02-10 11:37] synchronizing package lists
    [2009-02-10 11:38] starting full system upgrade
    [2009-02-10 13:10] removed gnome-network-manager (0.6.5-1)
    [2009-02-10 13:10] upgraded tzdata (2008i-1 -> 2009a-1)
    [2009-02-10 13:10] Generating locales...
    [2009-02-10 13:10] en_US.UTF-8... done
    [2009-02-10 13:10] en_US.ISO-8859-1... done
    [2009-02-10 13:10] Generation complete.
    [2009-02-10 13:10] upgraded glibc (2.9-2 -> 2.9-4)
    [2009-02-10 13:10] upgraded readline (5.2.013-1 -> 5.2.013-2)
    [2009-02-10 13:10] upgraded bash (3.2.048-1 -> 3.2.048-3)
    [2009-02-10 13:10] upgraded dhcpcd (4.0.7-1 -> 4.0.10-1)
    [2009-02-10 13:10] upgraded pm-utils (1.2.3-3 -> 1.2.3-4)
    [2009-02-10 13:10] upgraded hal (0.5.11-4 -> 0.5.11-7)
    [2009-02-10 13:10] upgraded libnetworkmanager (0.6.6-1 -> 0.7.0-1)
    [2009-02-10 13:10] upgraded networkmanager (0.6.6-1 -> 0.7.0-1)
    [2009-02-10 13:10] installed network-manager-applet (0.7.0-1)
    [2009-02-10 13:10] upgraded aircrack-ng (1.0_rc1-1 -> 1.0_rc2-1)
    [2009-02-10 13:10] upgraded gcc-libs (4.3.2-2 -> 4.3.3-1)
    [2009-02-10 13:10] upgraded xcb-proto (1.2-2 -> 1.3-1)
    [2009-02-10 13:10] upgraded libxcb (1.1.90.1-1 -> 1.1.93-1)
    [2009-02-10 13:10] upgraded libx11 (1.1.5-2 -> 1.1.99.2-1)
    [2009-02-10 13:10] upgraded amsn (0.97.2-4 -> 0.97.2-8)
    [2009-02-10 13:10] ATTENTION DB PACKAGE:
    [2009-02-10 13:10] Please consider to run db_upgrade on Berkeley DB databases with a major db version number update.
    [2009-02-10 13:10] upgraded db (4.7.25-1 -> 4.7.25-2)
    [2009-02-10 13:10] upgraded apache (2.2.11-1 -> 2.2.11-2)
    [2009-02-10 13:10] upgraded libvorbis (1.2.0-1 -> 1.2.1rc1-1)
    [2009-02-10 13:10] upgraded avidemux (2.4.3-2 -> 2.4.4-1)
    [2009-02-10 13:10] upgraded texinfo (4.13a-1 -> 4.13a-3)
    [2009-02-10 13:10] upgraded binutils (2.19-1 -> 2.19.1-1)
    [2009-02-10 13:10] upgraded boost (1.36.0-2 -> 1.37.0-1)
    [2009-02-10 13:10] upgraded brasero (0.9.0-1 -> 0.9.1-1)
    [2009-02-10 13:10] upgraded curl (7.19.2-1 -> 7.19.3-1)
    [2009-02-10 13:10] upgraded pycairo (1.8.0-2 -> 1.8.2-1)
    [2009-02-10 13:10] upgraded pygtk (2.13.0-2 -> 2.14.0-1)
    [2009-02-10 13:10] upgraded deluge (1.1.0-1 -> 1.1.2-1)
    [2009-02-10 13:10] upgraded device-mapper (1.02.29-1 -> 1.02.30-1)
    [2009-02-10 13:10] upgraded ed (1.1-2 -> 1.2-1)
    [2009-02-10 13:10] upgraded eigen (1.0.5-1 -> 2.0.0-1)
    [2009-02-10 13:10] upgraded fakeroot (1.11.4-1 -> 1.12.1-1)
    [2009-02-10 13:10] upgraded file (4.26-1 -> 5.00-1)
    [2009-02-10 13:10] upgraded gcc (4.3.2-2 -> 4.3.3-1)
    [2009-02-10 13:10] upgraded libtasn1 (1.7-1 -> 1.8-1)
    [2009-02-10 13:10] upgraded gnutls (2.6.3-1 -> 2.6.4-1)
    [2009-02-10 13:10] upgraded inputproto (1.4.4-1 -> 1.5.0-1)
    [2009-02-10 13:10] upgraded xextproto (7.0.4-1 -> 7.0.5-1)
    [2009-02-10 13:10] upgraded libxext (1.0.4-1 -> 1.0.5-1)
    [2009-02-10 13:10] upgraded ghostscript (8.63-4 -> 8.64-1)
    [2009-02-10 13:10] upgraded hwdetect (2008.12-4 -> 2009.01-1)
    [2009-02-10 13:10] upgraded imagemagick (6.4.8.2-1 -> 6.4.9.2-1)
    [2009-02-10 13:10] upgraded inetutils (1.6-2 -> 1.6-3)
    [2009-02-10 13:10] warning: /etc/inittab installed as /etc/inittab.pacnew
    [2009-02-10 13:10] upgraded initscripts (2008.09-2 -> 2009.01-1)
    [2009-02-10 13:11] update desktop mime database ...
    [2009-02-10 13:11] upgraded inkscape (0.46-9 -> 0.46-10)
    [2009-02-10 13:11] upgraded mkinitcpio (0.5.21-1 -> 0.5.23-1)
    [2009-02-10 13:11] >>>
    [2009-02-10 13:11] >>> If you use the LILO bootloader, you should run 'lilo' before rebooting.
    [2009-02-10 13:11] >>>
    [2009-02-10 13:11] >>> Updating module dependencies. Please wait ...
    [2009-02-10 13:11] >>> MKINITCPIO SETUP
    [2009-02-10 13:11] >>> ----------------
    [2009-02-10 13:11] >>> If you use LVM2, Encrypted root or software RAID,
    [2009-02-10 13:11] >>> Ensure you enable support in /etc/mkinitcpio.conf .
    [2009-02-10 13:11] >>> More information about mkinitcpio setup can be found here:
    [2009-02-10 13:11] >>> http://wiki.archlinux.org/index.php/Mkinitcpio
    [2009-02-10 13:11]
    [2009-02-10 13:11] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2009-02-10 13:11] ==> Building image "default"
    [2009-02-10 13:11] ==> Running command: /sbin/mkinitcpio -k 2.6.28-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
    [2009-02-10 13:11] :: Begin dry run
    [2009-02-10 13:11] :: Parsing hook [base]
    [2009-02-10 13:11] :: Parsing hook [udev]
    [2009-02-10 13:11] :: Parsing hook [autodetect]
    [2009-02-10 13:11] :: Parsing hook [pata]
    [2009-02-10 13:11] :: Parsing hook [scsi]
    [2009-02-10 13:11] :: Parsing hook [sata]
    [2009-02-10 13:11] :: Parsing hook [usb]
    [2009-02-10 13:11] :: Parsing hook [keymap]
    [2009-02-10 13:11] :: Parsing hook [filesystems]
    [2009-02-10 13:11] :: Generating module dependencies
    [2009-02-10 13:11] :: Generating image '/boot/kernel26.img'...SUCCESS
    [2009-02-10 13:11] ==> SUCCESS
    [2009-02-10 13:11] ==> Building image "fallback"
    [2009-02-10 13:11] ==> Running command: /sbin/mkinitcpio -k 2.6.28-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
    [2009-02-10 13:11] :: Begin dry run
    [2009-02-10 13:11] :: Parsing hook [base]
    [2009-02-10 13:11] :: Parsing hook [udev]
    [2009-02-10 13:11] :: Parsing hook [pata]
    [2009-02-10 13:11] :: Parsing hook [scsi]
    [2009-02-10 13:11] :: Parsing hook [sata]
    [2009-02-10 13:11] :: Parsing hook [usb]
    [2009-02-10 13:12] :: Parsing hook [keymap]
    [2009-02-10 13:12] :: Parsing hook [filesystems]
    [2009-02-10 13:12] :: Generating module dependencies
    [2009-02-10 13:12] :: Generating image '/boot/kernel26-fallback.img'...SUCCESS
    [2009-02-10 13:12] ==> SUCCESS
    [2009-02-10 13:12] upgraded kernel26 (2.6.28.1-1 -> 2.6.28.4-1)
    [2009-02-10 13:12] upgraded lib32-freetype2 (2.3.7-1 -> 2.3.8-1)
    [2009-02-10 13:12] upgraded lib32-gcc-libs (4.3.2-1 -> 4.3.3-1)
    [2009-02-10 13:12] upgraded lib32-gtk2 (2.14.6-1 -> 2.14.7-1)
    [2009-02-10 13:12] upgraded lib32-readline (5.2-8 -> 5.2.013-1)
    [2009-02-10 13:12] upgraded libice (1.0.4-1 -> 1.0.5-1)
    [2009-02-10 13:12] upgraded libmikmod (3.1.12-1 -> 3.1.12-2)
    [2009-02-10 13:12] upgraded libnova (0.12.2-1 -> 0.12.3-1)
    [2009-02-10 13:12] upgraded libsndfile (1.0.17-2 -> 1.0.18-1)
    [2009-02-10 13:12] upgraded libsamplerate (0.1.4-1 -> 0.1.6-1)
    [2009-02-10 13:12] upgraded libxi (1.1.4-1 -> 1.2.0-1)
    [2009-02-10 13:12] upgraded lvm2 (2.02.43-1 -> 2.02.44-1)
    [2009-02-10 13:12] upgraded man-pages (3.16-1 -> 3.17-1)
    [2009-02-10 13:12] upgraded mlocate (0.21-1 -> 0.21.1-1)
    [2009-02-10 13:12] upgraded opal (3.4.4-2 -> 3.4.4-2.1)
    [2009-02-10 13:12] * relogin or source /etc/profile.d/openoffice.sh
    [2009-02-10 13:12] * see http://wiki.archlinux.org/index.php/Openoffice
    [2009-02-10 13:12] how to use extensions, e.g. for spell checking
    [2009-02-10 13:12] see /opt/openoffice/share/extension/install what
    [2009-02-10 13:12] is shipped with this package
    [2009-02-10 13:12] upgraded openoffice-base (3.0.0-4 -> 3.0.1-1)
    [2009-02-10 13:12] upgraded patch (2.5.9-1 -> 2.5.9-2)
    [2009-02-10 13:12] upgraded php (5.2.7-2 -> 5.2.8-1)
    [2009-02-10 13:13] upgraded pidgin (2.5.3-1 -> 2.5.4-1)
    [2009-02-10 13:13] upgraded pixman (0.12.0-1 -> 0.14.0-1)
    [2009-02-10 13:13] upgraded pycups (1.9.42-2 -> 1.9.45-1)
    [2009-02-10 13:13] upgraded qt (4.4.3-4 -> 4.4.3-5)
    [2009-02-10 13:13] upgraded reiserfsprogs (3.6.20-3 -> 3.6.21-1)
    [2009-02-10 13:13] upgraded sdparm (1.03-1 -> 1.03-2)
    [2009-02-10 13:13] upgraded smpeg (0.4.4-4 -> 0.4.4-5)
    [2009-02-10 13:13] upgraded sound-theme-freedesktop (0.1-1 -> 0.2-1)
    [2009-02-10 13:13] upgraded syslog-ng (2.0.9-1 -> 2.1.3-2)
    [2009-02-10 13:13] upgraded system-config-printer (1.1.1-1 -> 1.1.3-1)
    [2009-02-10 13:13] extracting fonts... done.
    [2009-02-10 13:13] rebuilding font cache... done.
    [2009-02-10 13:13] upgraded ttf-ms-fonts (2.0-1 -> 2.0-2)
    [2009-02-10 13:13] upgraded unrar (3.8.5-1 -> 3.8.5-2)
    [2009-02-10 13:13] upgraded vlc (0.9.8a-4 -> 0.9.8a-5)
    [2009-02-10 13:13] upgraded wireshark (1.0.5-1 -> 1.0.6-1)
    [2009-02-10 13:13] upgraded xcb-util (0.3.2-1 -> 0.3.3-1)
    [2009-02-10 13:13] upgraded xf86-input-evdev (2.1.0-1 -> 2.1.2-1)
    [2009-02-10 13:13] upgraded xf86-input-keyboard (1.3.1-1 -> 1.3.2-1)
    [2009-02-10 13:13] upgraded xf86-input-synaptics (0.99.3-1 -> 1.0.0-1)
    [2009-02-10 13:13] upgraded xine-lib (1.1.16.1-1 -> 1.1.16.1-2)
    [2009-02-10 13:13] upgraded xkeyboard-config (1.4-2 -> 1.5-1)
    [2009-02-10 13:13] upgraded xorg-xinit (1.1.0-1 -> 1.1.1-1)
    [2009-02-10 13:13] upgraded xterm (239-1 -> 241-1)
    [2009-02-10 15:15] synchronizing package lists
    [2009-02-10 15:16] starting full system upgrade
    [2009-02-10 15:17] ==> to use yaourt as user,add these entries to /etc/sudoers:
    [2009-02-10 15:17] user ALL=NOPASSWD: /usr/bin/pacman
    [2009-02-10 15:17] user ALL=NOPASSWD: /usr/bin/pacdiffviewer
    [2009-02-10 15:17] (Please, use sudo very carefully)
    [2009-02-10 15:17] ==> for a full colorized output, install pacman-color and set PacmanBin in /etc/yaourtrc
    [2009-02-10 15:17] upgraded yaourt (0.9.1-1 -> 0.9.2.4-1)
    [2009-02-10 15:18] synchronizing package lists
    [2009-02-10 15:19] starting full system upgrade
    [2009-02-10 15:24] upgraded bin32-wine (1.1.10-1 -> 1.1.14-1)
    [2009-02-10 15:24] Reading package info from stdin ... done.
    [2009-02-10 15:24] Writing new package config file... done.
    [2009-02-10 15:24] upgraded haskell-sdl (0.5.4-1 -> 0.5.5-1)
    [2009-02-10 15:24] Reading package info from stdin ... done.
    [2009-02-10 15:24] Writing new package config file... done.
    [2009-02-10 15:24] upgraded haskell-sdl-ttf (0.5.2-1 -> 0.5.5-1)
    [2009-02-10 15:25] "nspluginwrapper -r $HOME/.mozilla/plugins/* ; nspluginwrapper -v -a -i" to recreate plugins after update
    [2009-02-10 15:25] Konqueror users need to add $HOME/.mozilla/plugins/ to konqueror plugins path
    [2009-02-10 15:25] upgraded nspluginwrapper (1.0.0-1 -> 1.2.2-1)
    [2009-02-10 15:25] installed lib32-curl (7.19.3-1)
    [2009-02-10 15:25] installed lib32-nspr (4.7.3-1)
    [2009-02-10 15:25] installed lib32-sqlite3 (3.6.10-1)
    [2009-02-10 15:25] installed lib32-nss (3.12.2-1)
    [2009-02-10 15:26] Run
    [2009-02-10 15:26] nspluginwrapper -v -r ~/.mozilla/plugins/npwrapper.libflashplayer.so
    [2009-02-10 15:26] nspluginwrapper -v -a -i
    [2009-02-10 15:26] to upgrade the plugin
    [2009-02-10 15:26] upgraded nspluginwrapper-flash (9.0.124.0-1 -> 10.0.15.3-3)

  • Problem with custom control and focus

    I've a problem with the focus in a custom control that contains a TextField and some custom nodes.
    If i create a form with some of these custom controls i'm not able to navigate through these fields by using the TAB key.
    I've implemented a KeyEvent listener on the custom control and was able to grab the focus and forward it to the embedded TextField by calling requestFocus() on the TextField but the problem is that the TextField won't get rid of the focus anymore. Means if i press TAB the first embedded TextField will get the focus, after pressing TAB again the embedded TextField in the next custom control will get the focus AND the former focused TextField still got the focus!?
    So i'm not able to remove the focus from an embeded TextField.
    Any idea how to do this ?

    Here you go, it contains the control, skin and behavior of the custom control, the css file and a test file that shows the problem...
    control:
    import javafx.scene.control.Control;
    import javafx.scene.control.TextField;
    public class TestInput extends Control {
        private static final String DEFAULT_STYLE_CLASS = "test-input";
        private TextField           textField;
        private int                 id;
        public TestInput(final int ID) {
            super();
            id = ID;
            textField = new TextField();
            init();
        private void init() {
            getStyleClass().add(DEFAULT_STYLE_CLASS);
        public TextField getTextField() {
            return textField;
        @Override protected String getUserAgentStylesheet() {
                return getClass().getResource("testinput.css").toExternalForm();
        @Override public String toString() {
            return "TestInput" + id + ": " + super.toString();
    }skin:
    import com.sun.javafx.scene.control.skin.SkinBase;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.EventHandler;
    import javafx.scene.control.TextField;
    import javafx.scene.input.KeyCode;
    import javafx.scene.input.KeyEvent;
    public class TestInputSkin extends SkinBase<TestInput, TestInputBehavior> {
        private TestInput control;
        private TextField textField;
        private boolean   initialized;
        public TestInputSkin(final TestInput CONTROL) {
            super(CONTROL, new TestInputBehavior(CONTROL));
            control     = CONTROL;
            textField   = control.getTextField();
            initialized = false;
            init();
        private void init() {
            initialized = true;
            paint();
        public final void paint() {
            if (!initialized) {
                init();
            getChildren().clear();
            getChildren().addAll(textField);
        @Override public final TestInput getSkinnable() {
            return control;
        @Override public final void dispose() {
            control = null;
    }behavior:
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.EventHandler;
    import javafx.scene.input.KeyCode;
    import javafx.scene.input.KeyEvent;
    public class TestInputBehavior extends BehaviorBase<TestInput> {
        private TestInput control;
        public TestInputBehavior(final TestInput CONTROL) {
            super(CONTROL);
            control = CONTROL;
            control.getTextField().addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {
                @Override public void handle(final KeyEvent EVENT) {
                    if (KeyEvent.KEY_PRESSED.equals(EVENT.getEventType())) {
                        keyPressed(EVENT);
            control.focusedProperty().addListener(new ChangeListener<Boolean>() {
                @Override public void changed(ObservableValue<? extends Boolean> ov, Boolean wasFocused, Boolean isFocused) {
                    if (isFocused) { isFocused(); } else { lostFocus(); }
        public void isFocused() {
            System.out.println(control.toString() + " got focus");
            control.getTextField().requestFocus();
        public void lostFocus() {
            System.out.println(control.toString() + " lost focus");
        public void keyPressed(KeyEvent EVENT) {
            if (KeyCode.TAB.equals(EVENT.getCode())) {
                control.getScene().getFocusOwner().requestFocus();
    }the css file:
    .test-input {
        -fx-skin: "TestInputSkin";
    }and finally the test app:
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.GridPane;
    import javafx.stage.Stage;
    public class Test extends Application {
        TestInput input1;
        TestInput input2;
        TestInput input3;
        TextField input4;
        TextField input5;
        TextField input6;
        Scene     scene;
        @Override public void start(final Stage STAGE) {
            setupStage(STAGE, setupScene());
        private Scene setupScene() {
            input1 = new TestInput(1);
            input2 = new TestInput(2);
            input3 = new TestInput(3);
            input4 = new TextField();
            input5 = new TextField();
            input6 = new TextField();
            GridPane pane = new GridPane();
            pane.add(input1, 1, 1);
            pane.add(input2, 1, 2);
            pane.add(input3, 1, 3);
            pane.add(input4, 2, 1);
            pane.add(input5, 2, 2);
            pane.add(input6, 2, 3);
            scene = new Scene(pane);
            return scene;
        private void setupStage(final Stage STAGE, final Scene SCENE) {
            STAGE.setTitle("Test");
            STAGE.setScene(SCENE);
            STAGE.show();
        public static void main(String[] args) {
            launch(args);
    The test app shows three custom controls on the left column and three standard textfields on the right column. If you press TAB you will see what i mean...

  • Problem with Enter key and JOptionPane in 1.4

    Hi,
    I had a problem with an application I was working on.
    In this application, pressing [Enter] anywhere within the focused window would submit the information entered into the form that was contained within the frame.
    The application would then try to validate the data. If it was found to be invalid, it would pop up a JOptionPane informing the user of that fact.
    By default, pressing [Enter] when a JOptionPane is up will activate the focused button (in most cases, the [OK] button) thus dismissing the dialog.
    In JDK 1.3 this worked fine. But in JDK 1.4, this has the result of dismissing the dialog and opping it up again. This is because the [Enter] key still works on the frame behind the JOptionPane and thus tries to validate it again, which results in another invalid dialog msg popping up.
    The only way to get out is to use the mouse or the Esc key.
    Now, in the application I put in a workaround that I was not very happy with. So, to make sure it wasn't the application itself, I created a test which demonstrates that it still misbehaves.
    Here it is.
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.KeyEvent;
    import javax.swing.AbstractAction;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JTextField;
    import javax.swing.KeyStroke;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    import javax.swing.WindowConstants;
    * @author avromf
    public class FocusProblemTest extends AbstractAction
         private static JFrame frame;
         public FocusProblemTest()
              super();
              putValue(NAME, "Test");
         public void actionPerformed(ActionEvent e)
              JOptionPane.showMessageDialog(frame, "This is a test.");
         public static void main(String[] args)
              FocusProblemTest action= new FocusProblemTest();
              try
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              catch (Exception e)
                   e.printStackTrace();
              frame= new JFrame("Test");
              frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
              Container contents= frame.getContentPane();
              contents.setLayout(new FlowLayout());
              JTextField field= new JTextField("Test");
              field.setColumns(30);
              JButton  button= new JButton(action);
              KeyStroke enterKey = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, true);
              button.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(enterKey, "test");
              button.getActionMap().put("test", action);
              contents.add(field);
              contents.add(button);
              frame.pack();
              frame.setVisible(true);
    }Does anyone have any solution to this problem?

    I know that focus management has changed alot.
    Based on my experimentation a while back, in 1.4 it still believes that the JFrame is the window in focus, even though a JOptionPane is currently in front of it (unless I misinterpreted what was going on). Thus, the frame seems to get the keyboard event and re-invoke the action.
    A.F.

  • New iMac 24 inch, 2.93 GH problems with spotlight and finder

    Has anyone had problems with Spotlight flickering in the upper right corner of the screen with each keystroke and the Finder crashing and relaunching when trying to open certain folders copied from an older computer running 10.4.11 or trying to open home folders on G5 and G4 computers over a local network? I have now received two replacements for my original machine from Amazon.com and all three machines have the same problem. This has been going on for nearly three weeks. I have never had problems like this with Apple products before - and have used them since 1985. Is there a design defect in the new 2.93 GH 24 inch iMac? I have been in touch with Apple Support but no one has resolved the problem and none of the product specialists are using this particular model of new computer. Very frustrating!

    HI Edwin,
    Check the iMac hard disk for errors. Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    Carolyn

  • Mac Crashes - Log indicates problem with Dock

    My MAC hangs once in a few hours (fairly random) and the Crash Log seems to indicate it is a problem with the Dock Application. There is no correlation between other applications that I am using and the crash. Many times it happens soon after boot up.
    Also, I am not using any widgets and am not synching with an iPhone or iPod.
    The Crash Log is provided below and I would appreciate any support on how to resolve this.
    Process: Dock [500]
    Path: /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
    Identifier: com.apple.dock
    Version: 1.6.6 (614.7)
    Build Info: Dock-6140700~7
    Code Type: X86 (Native)
    Parent Process: launchd [71]
    Date/Time: 2009-02-11 18:09:21.059 +0530
    OS Version: Mac OS X 10.5.6 (9G55)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x00000000001ffff0
    Crashed Thread: Unknown
    Error Formulating Crash Report:
    * -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: VMUSignaturePath)
    0x9328510b
    0x914b5e3b
    0x93284eeb
    0x93284f2a
    0x92d6ebf8
    0x0007bfe5
    0x0008bdd7
    0x0008bf2d
    0x00088fee
    0x00002e74
    0x000094a2
    0x0000b5d4
    0x0000b121
    0x96f2a03b
    0x0000a828
    0x96efe095
    0x96efdf52
    Backtrace not available
    Unknown thread crashed with X86 Thread State (32-bit):
    eax: 0xffff07d3 ebx: 0x00000000 ecx: 0x00000030 edx: 0xfff82f40
    edi: 0x0027d0d0 esi: 0x002456e0 ebp: 0xbfffee18 esp: 0xbfffee10
    ss: 0x0000001f efl: 0x00010282 eip: 0xffff0ef2 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    cr2: 0x001ffff0
    Binary images description not available

    I have been having similar dock crashes --- I think they are caused by OpenOffice --- OO 3 and 3.01 both seem to have the problem.
    I have a MacBook Pro 17 dual core Intel.
    I started seeing the dock crashes on a 10.5.6 which had been upgraded all the way from Tiger to Leopard and onward to 10.5.6 including secupd2009-001.
    The crashes were always similar to the original poster's. (see below).
    After working on this for weeks I wasn't even able to tell for sure if this was hardware or OS software but I strongly suspected the latter.
    Finally, I paid $100 for a Leopard DVD, and (in a separate partition) did an erase and install.
    The problem went away for a while but now it's back.
    The dock crashes restarted on the same day that I installed OpenOffice.
    I just now dragged the OO icon out of the dock and instantly experienced a true system crash --- system locked up, will not respond to mouse, or any keystrokes --- had to power reset.
    I have just used appdelete to unintall Open Ofice and all its friends.
    I am going to try rebooting now and will agment this reply to tell results.
    ============== UPDATE NEWS FLASH ==========================================
    I restarted after uninstalling OpenOffice and the only relevenat syslog msgs was this one:
    2009-03-18 12:50:18 PM Dock[160] _DESCRegisterDockExtraClient failed 268435459
    I hope I have identified the culprit and will post anything more I learn.
    cb0
    Here are the most recent Dock crash details (system lockup):
    Process: Dock [216]
    Path: /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
    Identifier: com.apple.dock
    Version: 1.6.6 (614.7)
    Build Info: Dock-6140700~7
    Code Type: X86 (Native)
    Parent Process: launchd [118]
    Date/Time: 2009-03-18 12:31:12.291 +0700
    OS Version: Mac OS X 10.5.6 (9G66)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000005
    Crashed Thread: 5
    Thread 5 Crashed:
    0 com.apple.CoreFoundation 0x013432b4 CFRetain + 36
    1 com.apple.LaunchServices 0x02cdd83d _LSCopyDefaultKindString + 719
    2 com.apple.LaunchServices 0x02ccefb0 LSCopyNodeAttributeDisplayKind(LSNodeAttributeStateCache*) + 494
    3 com.apple.LaunchServices 0x02cce9d5 _LSCopyNodeAttribute + 123
    4 com.apple.LaunchServices 0x02cce92f _LSCopyItemAttributeForRefInfoWithOptions + 283
    5 com.apple.LaunchServices 0x02cce80d _LSCopyKindStringForRefInfo + 59
    6 com.apple.dock 0x000a1f32 0x1000 + 659250
    7 com.apple.dock 0x0009cce5 0x1000 + 638181
    8 com.apple.dock 0x0009eb80 0x1000 + 646016
    9 com.apple.Foundation 0x003e37ed -[NSThread main] + 45
    10 com.apple.Foundation 0x003e3394 _NSThread__main_ + 308
    11 libSystem.B.dylib 0x00d2c095 pthreadstart + 321
    12 libSystem.B.dylib 0x00d2bf52 thread_start + 34
    Thread 5 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x0134329a ecx: 0x02d3a490 edx: 0x00000000
    edi: 0x00000000 esi: 0x00000000 ebp: 0xb10373a8 esp: 0xb1037390
    ss: 0x0000001f efl: 0x00010246 eip: 0x013432b4 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
    cr2: 0x00000005
    Binary Images:
    0x1000 - 0x108ff3 com.apple.dock 1.6.6 (614.7) <2a472439434b10eaa0780018b1512f66> /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
    0x12a000 - 0x1b4fef com.apple.DesktopServices 1.4.7 (1.4.7) <7898a0f2a46fc7d8887b041bc23e3811> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    Message was edited by: cb0

  • Problem with Trial License

    Hi,
    I installed the 60-Day-Trial of Crystal Reports Enterprise 2008 Server. All Services worked fine for the first few days.
    Now i cannot upload new reports, so I started the diagnosis tool. It seemed that there is a problem with my license key.
    I checked the license key in cmc:
    There is an empty page, there is no license key appearing.
    How can i reactivate my licensce?
    For your information: I have installed an apache 5.5.
    Thanks for answers.

    Any ideas for reactivating the license without cmc?
    I looked for the key in the registry, it looks like:
    [http://img522.imageshack.us/img522/6996/clipboard04m.jpg]
    Is it possible that the key is only valid in combination with the version? maybe i installed an update or patch and this update increased the version, so that my key is not valid any more.
    I tried to start the registration wizard ("C:\Programme\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\regwiz.exe" HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Enterprise\Keycode)
    Then the message "Valid license key can not be obtained" is displayed. Maybe this is helpful for you to have an idea for solving my problem.
    Which log-file must be viewed to watch the errors appearing in the cmd-license-section? Maybe there is a detailed message, which is not displayed in the cmc-window.
    Edited by: rufushome on Feb 13, 2010 4:20 PM

Maybe you are looking for