Problem with Keymaps

Hi,
I got a problem with a user-defined keymap. Here is a fragment of my code:
for (int i = 0; i <= 1; i++) {
keymap[i] = textField.addKeymap("Bindings" + i, textField.getKeymap());
prepare_keymap(i);
textField.setKeymap(keymap[actKeymap]);
private static void prepare_keymap(int which) {
if (which == 0) {
set_keymap(which, KeyEvent.VK_A, 0, "urga", "\u0627");
set_keymap(which, KeyEvent.VK_A, Event.ALT_MASK, "Alt-A", "\u0625");
set_keymap(which, 65, Event.CTRL_MASK, "Ctrl-A", "\u0623");
set_keymap(which, KeyEvent.VK_A, Event.CTRL_MASK + Event.ALT_MASK, "Ctrl-Alt-a", "\u064E");
else if (which == 1) {
set_keymap(which, KeyEvent.VK_A, Event.ALT_MASK, "Alt-A", "\u0101");
private static void set_keymap(int which, int keyEvent, int eventMask, String name, final String code) {
KeyStroke ks = KeyStroke.getKeyStroke(keyEvent, eventMask);
Action act = new TextAction(name) {
     public void actionPerformed(ActionEvent e) {
          getTextComponent(e).replaceSelection(code);
     keymap[which].addActionForKeyStroke(ks, act);
The strange thing that happens is: when I press the key "A" WITH metakeys everything works fine, BUT when I press the key "A" WITHOUT any metakeys,
I get the specified unicode character AND (!!!) an "a".
Any help will be highly appreciated.
Thanks in advance
Dieter

Does sound like a programming oversight - I would suggest using the feedback link under the Mac OS X tab here at Apple's website. If is an OS level service setting that should be easy enough to fix - if it is an application level issue then every affected app would need to be updated.

Similar Messages

  • Problem with keymap

    This problem has appeared after moving from OS X 10.4 to 10.5. In certain applications, World Of Warcraft specifically, when I try to assign keys for the game engine they appear according to the english keymap even though I have a swedish keyboard and the swedish keymap specified in the System Preferences. (I have seen the problem in one more app but I can't remember which one it was.)
    I have notified Blizzard of the problem but they act like it don't exist. Is there anything that has changed from 10.4 to 10.5 regarding how the OS handles keymaps?

    This problem has appeared after moving from OS X 10.4 to 10.5. In certain applications, World Of Warcraft specifically, when I try to assign keys for the game engine they appear according to the english keymap even though I have a swedish keyboard and the swedish keymap specified in the System Preferences. (I have seen the problem in one more app but I can't remember which one it was.)
    I have notified Blizzard of the problem but they act like it don't exist. Is there anything that has changed from 10.4 to 10.5 regarding how the OS handles keymaps?

  • 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 configuration of wifi newtork- dhcp

    hi.
    i've got a small problem with configuration of wi-fi network.
    i use dhcp network.
    there are some errors about network during boot up (but its to fast for my to write it down)
    after log-in i have to setup network access by typing
    iwconfig eth2 essid SpeedTouchBCE72F
    and then i heve to run this command
    dhclient
    and after that i've got an access to internet
    this is my rc.file
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime"
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="pl_PL.UTF-8"
    HARDWARECLOCK="localtime"
    TIMEZONE="Europe/London"
    KEYMAP="-u pl2"
    CONSOLEFONT="lat2-16.psfu.gz"
    USECOLOR="yes"
    LC_ALL="pl_PL.UTF-8"
    LESSCHARSET="UTF-8"
    # HARDWARE
    # Scan hardware and load required modules at bootup
    MOD_AUTOLOAD="yes"
    # Module Blacklist - modules in this list will never be loaded by udev
    MOD_BLACKLIST=()
    # Modules to load at boot-up (in this order)
    #   - prefix a module with a ! to blacklist it
    MODULES=()
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    HOSTNAME="linugrat"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
    # interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    #   - prefix an entry in INTERFACES with a ! to disable it
    #   - no hyphens in your interface names - Bash doesn't like it
    # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
    lo="lo 127.0.0.1"
    eth2="dhcp"
    INTERFACES=(lo eth2)
    ROUTES=(!gateway)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    #   - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(gateway)
    # Enable these network profiles at boot-up.  These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    #   - set to 'menu' to present a menu during boot-up (dialog package required)
    #   - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network-profiles
    #NET_PROFILES=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    #   - prefix a daemon with a ! to disable it
    #   - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng ipw3945d network netfs crond)
    # End of file
    szymon

    Hi Mariano
    I think you need to <b>restart your portal Engine</b> after making correct settings.
    Also please refer to the link below to get a better insight:-
    http://help.sap.com/saphelp_nw04s/helpdata/en/0b/719a425ffac46ae10000000a155106/frameset.htm
    Regards
    Navneet

  • [solved]partially working network, problems with ssl and irc

    Hi,
    for a weird reason I can't access any websites with https anymore nor can i connect to any irc servers with irssi and connection attempts with ssh time out. The system is up2date and I am using kdemod as DE.
    My rc.conf looks like this:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="de_DE.utf8"
    HARDWARECLOCK="localtime"
    TIMEZONE="Europe/Berlin"
    KEYMAP="de"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(!b44 !mii !ipw2200 !libipw !ac97_bus !snd-mixer-oss !snd-pcm-oss !snd-page-alloc !snd-pcm !snd-timer !snd !snd-ac97-codec !snd-intel8x0 !snd-intel8x0m !soundcore b44 mii ipw2200 libipw ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="horst-lp"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    eth0="dhcp"
    # Wireless: See network profiles below
    #Static IP example
    #eth0="dhcp"
    eth0="dhcp"
    INTERFACES=(!eth0 !eth1 !wlan0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng hal !network networkmanager avahi-daemon avahi-dnsconfd alsa cdemud kdm samba mpd lighttpd)
    Earlier I had some problems with not resolving addresses, which I somehow got rid of. At the time I blamed my isp.
    Perhaps something broke when I had a program running in wine to play with a car too and I had to switch the laptop off bc it didn't want to react anymore.
    thx for reading
    e: I don't know why, but it worked when I started Arch this morning.. while it didn't yesterday although everything worked correctly on my other PCs.
    Last edited by dt (2009-11-07 09:02:46)

    Hi,
    for a weird reason I can't access any websites with https anymore nor can i connect to any irc servers with irssi and connection attempts with ssh time out. The system is up2date and I am using kdemod as DE.
    My rc.conf looks like this:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="de_DE.utf8"
    HARDWARECLOCK="localtime"
    TIMEZONE="Europe/Berlin"
    KEYMAP="de"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(!b44 !mii !ipw2200 !libipw !ac97_bus !snd-mixer-oss !snd-pcm-oss !snd-page-alloc !snd-pcm !snd-timer !snd !snd-ac97-codec !snd-intel8x0 !snd-intel8x0m !soundcore b44 mii ipw2200 libipw ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="horst-lp"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    eth0="dhcp"
    # Wireless: See network profiles below
    #Static IP example
    #eth0="dhcp"
    eth0="dhcp"
    INTERFACES=(!eth0 !eth1 !wlan0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng hal !network networkmanager avahi-daemon avahi-dnsconfd alsa cdemud kdm samba mpd lighttpd)
    Earlier I had some problems with not resolving addresses, which I somehow got rid of. At the time I blamed my isp.
    Perhaps something broke when I had a program running in wine to play with a car too and I had to switch the laptop off bc it didn't want to react anymore.
    thx for reading
    e: I don't know why, but it worked when I started Arch this morning.. while it didn't yesterday although everything worked correctly on my other PCs.
    Last edited by dt (2009-11-07 09:02:46)

  • Iwl3945 module loading problem (with workaround)

    I've been experiencing problems with my intel wireless card (iwl3945) not loading at boot time. The problem arose after a fresh install from a Chakra (kdemod) live CD after I got a new harddrive for my notebook. It worked fine from the live CD and immediately post-install but when I upgraded the system with "pacman -Syu" (the kernel was upgraded as part of this) the card no longer loaded during boot (i.e. wlan0 would not show up under "ifconfig -a").
    I checked some threads on the iwl3945 (e.g. http://bbs.archlinux.org/viewtopic.php? … 18#p638618 and http://bbs.archlinux.org/viewtopic.php?id=73876) but couldn't find quite the same behaviour so decided to start a new thread.
    It's also similar to this thread (http://bbs.archlinux.org/viewtopic.php?id=82357), but this is not for the iwl3945.
    The following is a log of the problem:
    $ ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:15:C5:46:C6:6A
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:17
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:24 errors:0 dropped:0 overruns:0 frame:0
    TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1240 (1.2 Kb) TX bytes:1240 (1.2 Kb)
    $ ifconfig wlan0 up
    wlan0: unknown interface: No such device
    $ lsmod | grep iwl
    iwl3945 89020 0
    iwlcore 107100 1 iwl3945
    mac80211 155532 2 iwl3945,iwlcore
    led_class 4000 3 sdhci,iwl3945,iwlcore
    cfg80211 90428 3 iwl3945,iwlcore,mac80211
    $ dmesg | grep iwl
    iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.2.26ks
    iwl3945: Copyright(c) 2003-2009 Intel Corporation
    iwl3945 0000:0c:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
    iwl3945 0000:0c:00.0: setting latency timer to 64
    iwl3945 0000:0c:00.0: Tunable channels: 13 802.11bg, 23 802.11a channels
    iwl3945 0000:0c:00.0: Detected Intel Wireless WiFi Link 3945ABG
    iwl3945 0000:0c:00.0: irq 28 for MSI/MSI-X
    iwl3945 0000:0c:00.0: Failed to register hw (error -2)
    iwl3945 0000:0c:00.0: PCI INT A disabled
    iwl3945: probe of 0000:0c:00.0 failed with error -2
    Here is my rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_GB.utf8"
    HARDWARECLOCK="localtime"
    TIMEZONE="Europe/Dublin"
    KEYMAP="uk"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(b44 mii !ipw3945 iwlcore pcspkr snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-codec snd-hda-intel soundcore)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="alex-xps"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    eth0="dhcp"
    # Wireless: See network profiles below
    wlan0="dhcp"
    #Static IP example
    #eth0="eth0 134.226.144.162 netmask 255.255.0.0 broadcast 134.226.255.255"
    INTERFACES=(!eth0 !eth1 !wlan0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng hal !network wicd !networkmanager avahi-daemon avahi-dnsconfd alsa cdemud kdm)
    I read somewhere that there was an issue with kill switches and that rfkill may help so I installed it from AUR. However, there didn't seem to be any block:
    $ rfkill list
    1: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
    2: dell-wifi: Wireless LAN
    Soft blocked: no
    Hard blocked: no
    3: dell-bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
    I also tried creating a modprobe.conf file as suggested in some quarters (/etc/modprobe.d/iwl3945.conf):
    alias wlan0 iwl3945
    options iwl3945 disable_hw_scan=1
    Sadly still no luck on a reboot.
    After much pulling of hair the following workaround finally did it for me. Basically even though the module doesn't load during boot I can remove it and then modprobe it manually and it then works so that I can bring up the interface:
    # rmmod iwl3945
    # modprobe iw3945
    # ifconfig wlan0 up
    # ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:15:C5:46:C6:6A
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:17
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:24 errors:0 dropped:0 overruns:0 frame:0
    TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1240 (1.2 Kb) TX bytes:1240 (1.2 Kb)
    wlan0 Link encap:Ethernet HWaddr 00:18:DE:1E:7B:46
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    wmaster0 Link encap:UNSPEC HWaddr 00-18-DE-1E-7B-46-00-00-00-00-00-00-00-00-00-00
    UP RUNNING MTU:0 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    I can then use wicd to connect to my router at home (networkmanager doesn't seem to work for me with the same settings).
    Hopefully this may be of some use to someone with the same issue and to any kernel gurus that may be scanning this section of the forum.

    I tinkered with the rfkill module as suggested.
    First checked what the default behaviour was
    $ lsmod | grep rfkill
    rfkill 19728 3 bluetooth,dell_laptop,cfg80211
    Then blacklisted rfkill in rc.conf using "!rfkill" in the modules line
    $ lsmod | grep rfkill
    rfkill 19728 1 cfg80211
    Unfortunately I still had to manually remove and reload iwl3945 as before.
    I tried inserting the options in modprobe.conf suggested by you in your other post
    # /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
    options bluetooth rfkill=0
    options dell_laptop rfkill=0
    After a reboot still no wireless activity and checking rfkill module gives same as for blacklisting in rc.conf, i.e. ...
    $ lsmod | grep rfkill
    rfkill 19728 1 cfg80211
    So still manually un/reloading as before. At least the workaround is not too labour intensive.

  • [SOLVED?] Problem with multi key macros in emacs

    I recently made the switch from gentoo to arch, for the most part everything is up and working. The only thing I am having a problem with is GNU emacs, for some reason i can't use some macros that need more than 2 keys to be pressed. For example M-< will not work but for some reason C-_ will. I haven't got the faintest clue as to what the problem is. I am running xfce and using the us keyboard layout. If i run emacs outside of X than all the macros work fine. Any ideas?
    Thanks in advance.
    Last edited by flarkis (2010-03-01 22:57:24)

    seeing as this problem persists in both the terminal and gui versions i don't think that is possible. I also tried running both versions in twm to see if anything was different. The keys still aren't seen correctly but this time they are replaced with random characters that are not part of my keymap. An X11 problem or keyboard configuration problem?
    <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
    <device>
    <match key="info.capabilities" contains="input.keymap">
    <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>
    <match key="info.capabilities" contains="input.keys">
    <merge key="input.xkb.rules" type="string">base</merge>
    <!-- If we're using Linux, we use evdev by default (falling back to
    keyboard otherwise). -->
    <merge key="input.xkb.model" type="string">keyboard</merge>
    <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
    string="Linux">
    <merge key="input.xkb.model" type="string">evdev</merge>
    </match>
    <merge key="input.xkb.layout" type="string">us</merge>
    <merge key="input.xkb.variant" type="string" />
    </match>
    </device>
    </deviceinfo>
    Last edited by flarkis (2010-02-25 03:28:08)

  • Problem with Context - calculated Value

    I have a problem with my WebDynPro-Project.
    The Errors which is shown by the NWDS:
    "Web Dynpro Generation: Metadata constraint of Component KeyMappingComponent is violated: CalculatedAttributeProvider "//WebDynpro/Controller:de.vwfsag.keymapping.ui.KeyMappingComponent/CalculatedAttributeProvider:BusinessAttributeDataSprache", Role "Attribute": A minimum of 1 object(s) is required"
    What I've done:
    - changed valueproperties calculated from "true" to "false" and back.
    The problem is that the set und get methods remained after resetting the calculateproperty to "false".
    I've tried several time to switch the property but now I got more remained set and get methods (..._1, ..._2, ...), which I can't delete in the NWDS.
    What I also tried was to change the .wdcontroller"-file of my controller-component, but this file is generated so after a rebuild the ".wdcontroller"-file is still corrupted.
    I think the conclusion should be something to delete these methods or change the calculatedproperty in some files you can't access directly from the NWDS.
    I hope anyone could help me out with this?
    Greetz Christian
    Edited by: christian.zuehlsdorf on Dec 14, 2009 6:24 PM

    Tushar Sinha wrote:Tushar Sinha wrote:Hey Sinha,
    thank you fr your answer!
    >
    > Just try deleting the attribute for which you tried setting the calculated property as true and then false, try repairing your project, reload and build again. Hopefully this should get you rid of the getters and setters.
    That was the first thing I already tried. I deleted the whole context und then rebuild and repair and rebuild... But none of that help.
    >
    > Do, not manually try deleting the getters/setters manually for any attribute as it is autogenerated for an attribute.
    These getters/setters only have part of the configuration with no context-attribute-bind, which in fact seems to be the problem for the build-process.

  • Tty "problem" with execNative

    Folks,
    we have a "small" problem with the execNative stuff:
    We have to automate the installation of a tool, which requires a couple of
    manual interventions...
    One of that is the restart of some software on a different node, and once
    that's done, we need to send a "c" for continue to the original task on the
    initial server...
    We try to minic that be using expect and the spawn/wait functionality.
    The problem seems to be, that the execNative is taking away all tty's, and
    that exepct can't then send the signals to the "right" processes...
    Here's excerpts from what we try to achieve:
    SPS xml code:
                   <execNative userToRunAs="root" dir=":[workPath]" timeout="18000">
                        <shell cmd="/bin/ksh -x -c">
                             <![CDATA[                         
    # Then we need to start the expect script! (this is our InstallScript.xml installed InstallScript!)
    ./301_install_pai_base.sh
    ]]>
                        </shell>
                   </execNative>
    <!-- This next call restarts the DMGR, because that is needed during the installation on non-DMGR hosts... ;-) -->
                   <if>
                        <condition><equals value2=":[hostIsDeploymentManager_]" value1="FALSE"/></condition>
                        <then>
                             <retarget host=":[paiDeploymentManagerHostRef_]">
                                  <call blockName="restartDmgr">
    <!--
                                       <installedComponent path="@pluginFolder@/sunos/sparc/5.10/3.0.1" name="PAI" />
    -->
                                       <installedComponent name="PAI" />
                                  </call>
                             </retarget>
                        </then>
                   </if>
                   <execNative userToRunAs="root" dir=":[workPath]" timeout="18000">
                        <shell cmd="/bin/ksh -x -c">
                             <![CDATA[                         
    # Then we need to start the expect script! (this is our InstallScriptPart2.xml installed InstallScriptPart2!)
    ./301_install_pai_base_part2.sh
    ]]>
                        </shell>
                   </execNative>
    The scripts are:
    301_install_pai_base.sh:
    ./install_pai_no_dmgr.exp "$SOLUTION_MODULE" "$PSA_PATH" "$LOG_DIR" "$TMP_PAI_DIR" "$BASE_DIR" > ./install_out.log 2>&1 </dev/null &
    echo $! >mysuperduperscriptprocessid
    updatelog_file="./install_out.log"
    sleep 10
    if [ -f "$updatelog_file" ]
    then
              while :
              do
              last_lines=`tail -2 "$updatelog_file" 2>/dev/null`
         if echo $last_lines | grep "BUILD FAILED" >/dev/null 2>&1
         then
                        echo "There were failures during install!"
                        kill -TERM $id
                        exit 1
    fi
              if echo $last_lines | grep "(c,a)" >/dev/null 2>&1
              then
                   # The kill -HUP is handled in the continuation script!
                   exit 0
              fi
              sleep 1
              done
    fi
    301_install_pai_base_part2.sh:
    id=`cat mysuperduperscriptprocessid`
    rm -f mysuperduperscriptprocessid
         updatelog_file="./install_out.log"
         sleep 10
              while :
              do
              last_lines=`tail -2 "$updatelog_file" 2>/dev/null`
         if echo $last_lines | grep "BUILD FAILED" >/dev/null 2>&1
                   then
                        kill -TERM $id
                        exit 1
    fi
         if echo $last_lines | grep "BUILD SUCCESSFUL" >/dev/null 2>&1
              then
                        kill -HUP $id
                        exit 0
              fi
              sleep 1
              done
    install_pai_no_dmgr.exp:
    ******************************************************************************#!/usr/local/bin/expect
    set timeout 1000000
    proc sendCtoContinue {mySpawnID} {
    send -i $mySpawnID "c\n"
    proc sendAtoContinue {mySpawnID} {
    send -i $mySpawnID "a\n"
    # send_user "Executing ./installPAI.sh\n"
    spawn ./startInstaller.sh -m FULL -i [lrange $argv 0 0] -a [lrange $argv 1 1] -l [lrange $argv 2 2] -t [lrange $argv 3 3] -b [lrange $argv 4 4] -p true
    set paiSpawnID $spawn_id
    trap {sendCtoContinue $paiSpawnID} SIGHUP
    trap {sendAtoContinue $paiSpawnID} SIGTERM
    expect "(c,a)"
    wait $paiSpawnID
    expect "Total time:"
    # expect "Install complete"
    What we found out is:
    a.) We need the redirection of the STDIN/STDOUT/STDERR at the first line:
    ./install_pai_no_dmgr.exp "$SOLUTION_MODULE" "$PSA_PATH" "$LOG_DIR" "$TMP_PAI_DIR" "$BASE_DIR" > ./install_out.log 2>&1 </dev/null &
    b.) The retarget clause/statement is executed!
    c.) The "part2" script is started!
    d.) The "c" is send! (aka, the kill will be executed!)
    e.) The "c" does not reach the correct process, aka: the process started via:
    spawn ./startInstaller.sh -m FULL -i [lrange $argv 0 0] -a [lrange $argv 1 1] -l [lrange $argv 2 2] -t [lrange $argv 3 3] -b [lrange $argv 4 4] -p true
    Any clues?
    Do we need to work out something different for that stuff?
    Matthias

    I don't think the console font is the problem. I use Lat2-Terminus16 because I read the Beginner's Guide on the wiki while installing the system.
    My /etc/vconsole.conf:
    KEYMAP=de
    FONT=Lat2-Terminus16
    showconsolefont even shows me the characters missing in the file names; e.g.: Ö, Ä, Ü

  • Keyboard problems with KonsolePart and KatePart

    Hi!
    I'm having a very strange problem with my keyboard's laptop. I use a Compaq 6720s with spanish keyboard and KDE4 installed.
    I can write normally on any app (OpenOffice.org, Dolphin, Plasma Desktop, etc), but not in KatePart/KonsolePart-based apps, like Kwrite, Kate, Konsole or Yakuake.
    For example, it doesn't recognise these characters: "( ) / & % $ + _ ." but it does recognise : "* _" and other special characters. This is very strange because . and : are in the same key, + and * are too in the same key. Any hint about what is happening?

    I have also detected that Nano doesn't display itself correcly. This is an XML file screenshot:
    It doesn't show correctly on system console (with alt+f1), but there I can write normally. This is my rc.conf:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="es_ES.UTF-8"
    HARDWARECLOCK="localtime"
    TIMEZONE="Europe/Madrid"
    KEYMAP="es"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(intel_agp i915 lib80211 wl !b43 !ssb !rt73)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="gskomputer"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    #Static IP example
    eth0="dhcp"
    INTERFACES=(!eth0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(@kdm @syslog-ng alsa @fam dnsmasq @networkmanager @ntpd crond)
    My /etc/X11/xorg.conf
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
    Load "extmod"
    Load "dbe"
    Load "record"
    Load "glx"
    # Load "dri"
    Load "dri2"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbLayout" "es"
    Option "XkbVariant" ""
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "NoAccel" # [<bool>]
    #Option "SWcursor" # [<bool>]
    #Option "ColorKey" # <i>
    #Option "CacheLines" # <i>
    #Option "Dac6Bit" # [<bool>]
    #Option "DRI" # [<bool>]
    #Option "NoDDC" # [<bool>]
    #Option "ShowCache" # [<bool>]
    #Option "XvMCSurfaces" # <i>
    #Option "PageFlip" # [<bool>]
    Identifier "Configured Video Device"
    Driver "intel"
    VendorName "Intel Corporation"
    BoardName "Mobile GME965/GLE960 Integrated Graphics Controller"
    BusID "PCI:0:2:0"
    Option "DRI" "True"
    Option "NoDDC" "True"
    Option "RenderAccel" "True"
    Option "EnablePageFlip" "True"
    Option "AccelMethod" "uxa"
    Option "EXAOptimizeMigration" "True"
    Option "MigrationHeuristic" "greedy"
    Option "Tiling" "true" # i8xx users: see note in guide
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    Depth 1
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    # Modes "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    # Modes "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    # Modes "1024x768" "800x600"
    EndSubSection
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    EndSection
    Section "ServerFlags"
    Option "DontZap" "False"
    EndSection
    Thank you!
    Last edited by gskbyte (2010-04-16 12:47:18)

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

  • Problem with threads and camera.

    Hi everybody!
    I've a problem with taking snapshot.
    I would like to display a loading screen after it take snapshot ( sometimes i
    have to wait few seconds after i took snapshot. Propably photo is being taken in time where i have to wait).
    I was trying to use threads but i didn't succeed.
    I made this code:
    display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while((!performing.isShown()) && (backgroundCamera.isShown())){
                        Thread.yield();
                    notifyAll();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        this.wait();                   
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();This code is sometimes showing performing screen but sometimes no.
    I don't know why. In my opinion performing.isShown() method isn't working correctly.
    Does anyone have some idea how to use threads here?

    Hi,
    I've finally managed to work this fine.
    The code:
           Object o = new Object();
           display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while(!performing.isShown()){
                        Thread.yield();
                   synchronized(o) {
                      o.notify();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        synchronized(o) {
                           o.wait(1);
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();

  • Problem with threads hanging

    We have a problem where our application stops responding after a few days of usage. Things will for fine for a day or two, and then pretty quickly threads will start getting hung up, usually in places where they are allocating memory
    We are running WebLogic 8.1 SP2 on Sun JDK 1.4.2_04 on Solaris 8 using the alternate threading model and the -server hotspot vm. We are running pretty much the same code that we had no problems with under WebLogic 6.1 SP4 and Sun JDK 1.3.1.
    A thread dump usually shows that some or all of our execute threads are in the state "waiting for monitor entry" even though they are not currently waiting on any java locks. Here is a sample thread from the thread dump (we have ~120 threads so I don't want to post the full dump).
    =============================================================================================
    "ExecuteThread: '8' for queue: 'itgCrmWarExecutionQueue'" daemon prio=5 tid=0x005941d0 nid=0x2c waiting for monitor entry [c807f000..c807fc28]
    at java.lang.String.substring(String.java:1446)
    at java.lang.String.substring(String.java:1411)
    at weblogic.servlet.internal.ServletRequestImpl.getRelativeUri(ServletRequestImpl.java:1872)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3492)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    =============================================================================================
    String.java line 1446 for this jdk allocates a new String object, and all the other threads in this state also are creating new objects or arrays, etc.
    We've done a pstack on this process when it's in this state, and the threads that are in the "waiting for monitor entry" that look like they're allocating memory are all waiting on the same lwp_mutex_lock with some allocation method that's calling into the native TwoGenerationCollectorPolicy.mem_allocate_work (see pstack output below for the same thread as in the thread dump above)
    =============================================================================================
    ----------------- lwp# 44 / thread# 44 --------------------
    ff31f364 lwp_mutex_lock (e3d70)
    fee92384 __1cNObjectMonitorGenter26MpnGThread__v_ (5000, 525c, 5000, 50dc, 4800, 4af0) + 2d8
    fee324d4 __1cSObjectSynchronizerKfast_enter6FnGHandle_pnJBasicLock_pnGThread__v_ (c807f65c, c807f7d4, 5941d0, 0, 35d654, fee328ec) + 68
    fee32954 __1cQinstanceRefKlassZacquire_pending_list_lock6FpnJBasicLock__v_ (c807f7d4, ff170000, d4680000, 4491d4, fee1bc2c,
    0) + 78
    fee3167c __1cPVM_GC_OperationNdoit_prologue6M_i_ (c807f7bc, 4400, ff170000, 2d2b8, 4a6268, c807fa18) + 38
    fee2e0b0 __1cIVMThreadHexecute6FpnMVM_Operation__v_ (c807f7bc, 963a8, 0, 0, 1, 0) + 90
    fed2c2a4 __1cbCTwoGenerationCollectorPolicyRmem_allocate_work6MIii_pnIHeapWord__ (962c0, ff1c29ec, ff1c297c, ff131a26, 4800, 4998) + 160
    fed22940 __1cNinstanceKlassRallocate_instance6MpnGThread__pnPinstanceOopDesc__ (ee009020, 5941d0, 15ca581, 3647f0, 4a6268, c807f8c8) + 180
    fed34928 __1cLOptoRuntimeFnew_C6FpnMklassOopDesc_pnKJavaThread__v_ (ee009018, 5941d0, 0, 0, 0, 0) + 28
    fa435a58 ???????? (ee009018, e86de, 15ca4de, 50dc, 5941d0, c807f9c8)
    fb36f9a4 ???????? (0, d412ccd8, ee046c28, ff170000, 0, 0)
    fad8b278 ???????? (ee046c28, d6000c90, ee046530, 8, db8e8450, c807f9e8)
    fad62abc ???????? (d412ccd8, ee046530, d6000c90, ee3bfa38, 8, c807fa18)
    fa4b3c38 ???????? (c807fb9c, 0, f2134700, fa415e50, 8, c807faa8)
    fa40010c ???????? (c807fc28, c807fe90, a, ee9e1e20, 4, c807fb40)
    fed5d48c __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_ (c807fe88, c807fcf0, c807fda8, 5941d0, 5941d0, c807fd00) + 27c
    fee4b784 __1cJJavaCallsMcall_virtual6FpnJJavaValue_nLKlassHandle_nMsymbolHandle_4pnRJavaCallArguments_pnGThread__v_ (ff170000, 594778, c807fd9c, c807fd98, c807fda8, 5941d0) + 164
    fee5e8dc __1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_nMsymbolHandle_5pnGThread__v_ (c807fe88, c807fe84, c807fe7c, c807fe74, c807fe6c, 5941d0) + 6c
    fee6fc74 __1cMthread_entry6FpnKJavaThread_pnGThread__v_ (5941d0, 5941d0, 838588, 594778, 306d10, fee69254) + 128
    fee6927c __1cKJavaThreadDrun6M_v_ (5941d0, 2c, 40, 0, 40, 0) + 284
    fee6575c _start   (5941d0, fa1a1600, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Also when it's having this problem, the "VM Thread" is always using a lot of processor time. We did a couple of pstacks today while it was having this problem, and this thread was stuck in the ONMethodSweeper.sweep for over 15 minutes when we finally killed the server.
    From the thread dump:
    "VM Thread" prio=5 tid=0x000e2d20 nid=0x2 runnable
    From the first pstack:
    =============================================================================================
    ----------------- lwp# 2 / thread# 2 --------------------
    fed40c04 __1cXvirtual_call_RelocationIparse_ic6FrpnICodeBlob_rpC5rppnHoopDesc_pi_nNRelocIterator__ (42a2f4, fa5fa46d, ffffffff, fc4ffcb8, 42a2f4, 42a324) + 124
    fed46318 __1cKCompiledIC2t5B6MpnKRelocation__v_ (42a2f0, fc4ffd24, fc4ffd4c, e802, 0, 6) + 38
    fed90c38 __1cHnmethodVcleanup_inline_caches6M_v_ (fa5f7f88, fa608940, 1, 0, fa400000, 6) + 1ac
    fede18b4 __1cONMethodSweeperFsweep6F_v_ (2cf38, 0, ffffffff, ff1cf1fc, ff1c66e8, fede1d44) + 1b0
    fede1e6c __1cUSafepointSynchronizeFbegin6F_v_ (2cf38, ff1ba138, 5000, 50dc, 5000, 525c) + 248
    feef1fd4 __1cIVMThreadEloop6M_v_ (4400, 4000, 4324, 4000, 42b0, 3800) + 3d4
    feef1ae4 __1cIVMThreadDrun6M_v_ (e2d20, 2, 40, 0, 40, 0) + 8c
    fee6575c _start   (e2d20, ff270200, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Second pstack
    =============================================================================================
    ----------------- lwp# 2 / thread# 2 --------------------
    fed41180 __1cXvirtual_call_RelocationIparse_ic6FrpnICodeBlob_rpC5rppnHoopDesc_pi_nNRelocIterator__ (0, ff1b9664, ffffffff, fc4ffcb8, a6f2cc, fc4ffbd0) + 6a0
    fed46318 __1cKCompiledIC2t5B6MpnKRelocation__v_ (a6f2c8, fc4ffd24, fc4ffd4c, e802, 0, 6) + 38
    fed90c38 __1cHnmethodVcleanup_inline_caches6M_v_ (faded4c8, fadf2c80, 1, 0, fa400000, 6) + 1ac
    fede18b4 __1cONMethodSweeperFsweep6F_v_ (2cf38, 0, ffffffff, ff1cf1fc, ff1c66e8, fede1d44) + 1b0
    fede1e6c __1cUSafepointSynchronizeFbegin6F_v_ (2cf38, ff1ba138, 5000, 50dc, 5000, 525c) + 248
    feef1fd4 __1cIVMThreadEloop6M_v_ (4400, 4000, 4324, 4000, 42b0, 3800) + 3d4
    feef1ae4 __1cIVMThreadDrun6M_v_ (e2d20, 2, 40, 0, 40, 0) + 8c
    fee6575c _start   (e2d20, ff270200, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Has anyone ever seen anything like this? I'm trying to figure out if this is caused by something we're doing, or something relating to our environment and jvm options. Any ideas?

    Thanks for the reply - I'm testing our app with the +UseConcMarkSweepGC now in our test environment to make sure it doesn't cause any problems there.  Unfortunately the only place we've had this problem is on the production server, so it's extra difficult debugging this. 
    We're using the following memory options:
    -ms512m -mx512m -XX:NewSize=128m -XX:PermSize=192m -XX:MaxNewSize=128m -XX:MaxPermSize=192m -XX:SurvivorRatio=8and the following debugging options, as we've also been seeing OutOfMemoryErrors ( see http://forum.java.sun.com/thread.jsp?forum=37&thread=522354&tstart=45&trange=15 )
    -verbosegc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGCBTW, which c++filt version and options are you using? Our Solaris boxes only seem to have the GNU version installed. I was trying to run that on some of the other stack traces and wasn't getting anywhere, and didn't know if because it was GNU version wouldn't work on something compiled with the Sun compiler.
    Thanks!
    --Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for