Weird Problem using Mnemonics

I have a weird problem with mnemonics:
When I use the mnemonic for my JMenuItem to open a specific JPanel the first time (e.g.) it works fine, then if I then close it for example and I still have the "Alt" key pressed I get the follwing exception??? :
java.lang.NullPointerException
at javax.swing.SwingUtilities.getWindowAncestor(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsRootPaneUI$AltProcessor.postProcessKeyEv ent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Hope someone can help.
Kanita

The mnemonic are not working because the Window or the Frame on which your components are added have lost the focus while pressing the Alt key.
I had faced the same problem , but I wanted a focus on JMenuBar which i had added to my frame.
when i was clicking the JButton using the mnemonic , i used to loss the focus. But afterwards i put a code in the actionPerformed part of the button to bring the focus to the JMenuBar.
rootFrame.getJMenuBar().getComponent().transferFocus();
rootFrame is my main frame on which the JMenubar is added.
I am using java 4 version.

Similar Messages

  • Weird problem using bitwise opertor

    Hi all,
    I have problem with >>> (bitwise logical right shift) operator.
    As an example, the result of this operator on 0x8000 value is not as I expect. As I read about this operator, the result of one bit logical right shift should be 0x4000 but the actual result is 0xC000, and as I see in my test applets there is no difference between >> and >>> operators. I tested this operator on both ST and Gemalto cards and the results were the same.
    short n=(short) 0x8000;
    short x= (short) n >>>1; //Here I expect 0x4000 but the actual result is 0xC000
    short y= (short) n>>1; //Here as I expect the result is 0xC000Would some body please explain such weird action of this operator?
    By the way, Is there any explicit operator for POWER operation in java card or I should use this bitwise operators instead?
    -Thanks a lot
    Edited by: bluefairy on Sep 16, 2010 12:50 AM

    It is quite simple if you know where to look. Open up your Java Card Virtual Machine specification, if you can find it.
    The >>> operator translates to the "sushr" bytecode.
    Let's see what that means...
    Forms
    sushr = 81 (0x51)
    Stack
    …, value1, value2 −>
    …, result
    Description
    Both value1 and value2 must be of type short. The values are popped from the operand stack. A short result is calculated by sign-extending value1 to 32 bits (footnote 1) and shifting the result right by s bit positions, with zero extension, where s is the value of the low five bits of value2. The resulting value is then truncated to a 16-bit result. The result is pushed onto the operand stack.
    Footnote 1
    Sign extension to 32 bits ensures that the result computed by this instruction will be exactly equal to that computed by the Java iushr instruction, regardless of the input values. In a Java Card virtual machine the
    expression "0xffff >>> 0x01" yields 0xffff, where ">>>" is performed by the sushr instruction. The same result is rendered by a Java virtual machine.
    So... What does this mean ? This means that your variable is sign-extended to a 32-bit value (meaning that the sign bit is propagated), THEN the right shift is performed.
    See below my comments in the code.
    short n = (short) 0x8000;
    short x = (short) n >>> 1;
    // 0x8000 is extended to 0xFFFF8000
    // Right-shift by 1 bit --> 0xFFFFC000
    // Cast to short --> 0xC000Hope this helps.
    Cheers

  • Weird problem using "Login" in MaxL script

    Hi there
    I have created a MaxL script for loading som data into an Essbase. The script you can see below.
    login 'user' 'password' on 'nkm18k14';
    import database 'realtest'.'Loadtest'
    data from text data_file '\\nkm18k00\Planning\Loaddata\lonbud.txt'
    using server rules_file 'LonBLoad'
    on error write to '\\nkm18k00\Planning\Errorlogs\realtest.txt';
    When I try to execute it, as it is i get the following error "(3) Syntax error near ['$'], which im guessin is line 3, right?
    When I remove line 1 (the login statement), the script runs just fine. What is goin on, any ideas?
    I as a user have write acces to the network locations specified, could it be that the essbase uses som kind of system user that doesn't have acces to the network location?
    Any valuable input will be appreciated.
    Regards, Jacob

    It's true that they are not "needed" from a security approach, but from a maintenance approach you still end up having to touch a large number of scripts if you store the connection details in them.
    As a system user, you don't even have to change the password -- but if you have someone leave the company you may just want to.
    Either way, I would never want to hard code connectivity details inside dozens of scripts when I can keep it in a single place.
    Here is the MXL_Shell file for Windows -- you can obtain the SendEmail.exe from multiple places, but the syntax should be validated.
    The location of the scripts, log files, and batch items can of course be modified to your liking as well...
    The Errors that are ignored are stored in a file called "IGNORED.TXT" in the Batch directory (see below for what I ignore).
    @echo off
    REM ================================================================
    REM   MXL_Shell.cmd - Wrapper to call EssMsh (MXL) scripts
    REM ----------------------------------------------------------------
    REM   Author: Doug Bliss
    REM   Initial QC: 5/21/2005
    REM ----------------------------------------------------------------
    REM   Script to Execute should be base name (without extension)
    REM   Script should exist in the ..\Scripts directory
    REM   Both StdOut and StdErr are redirected to ..\Logs\<Script>.log
    REM   Call activity is logged to ..\Logs\Daily_ddmmyy.log
    REM   Log file is appended to ..\Logs\<Script>.hst at finish
    REM   Log file is processed for "Error" tokens to determine if
    REM      the result was successful or not
    REM   Notifications are taken from comment blocks in the script:
    REM      /* Notifications:
    REM         ONSUCCESS [email protected]
    REM         ONERR [email protected]
    REM       */
    REM   Localization details: Update the variables set immediately below (typically SRCPATH and EMAIL*)
    REM ================================================================
    SET SRCPATH=C:\Automation
    SET EMAILDOM=<yourcompany.com>
    SET EMAILRELAY=<relay>.%EMAILDOM%
    SET DEVBOX=<devboxname>
    SET IGNORE=%SRCPATH%\Batch\Ignored.txt
    SET MXLFILE=%SRCPATH%\Scripts\%1.mxl
    SET LOGPATH=%SRCPATH%\Logs
    SET LOGFILE=%LOGPATH%\%1.log
    SET ERRFILE=%LOGPATH%\%1.err
    SET HSTFILE=%LOGPATH%\%1.hst
    SET DAYFILE=%LOGPATH%\Daily_%date:~4,2%%date:~7,2%%date:~10,4%.log
    REM ################################## Step 1: Sanity Checks
    IF "%1"=="" EXIT /B 1
    IF NOT EXIST %MXLFILE% EXIT /B 2
    REM ################################## Step 2: Initialize Log entries
    IF NOT EXIST %LOGPATH%\. MKDIR %LOGPATH% >nul
    IF EXIST %ERRFILE% MOVE /Y %ERRFILE% %SRCPATH%\Logs\%1.bak.err >nul
    IF EXIST %LOGFILE% MOVE /Y %LOGFILE% %SRCPATH%\Logs\%1.bak.log >nul
    REM ################################## Step 3: Call the Script
    ECHO %time% -- Calling EssMsh Script: %1.mxl %2 %3 %4 %5 %6 %7 %8 %9 >>%DAYFILE%
    ECHO ============================== ESSBASE SESSION LOG >%LOGFILE%
    ECHO Log Opened: %date% %time% >>%LOGFILE%
    CALL User.cmd
    essmsh.exe -s %COMPUTERNAME% -u %UID% -p %PWD% %MXLFILE% "%2" "%3" "%4" "%5" "%6" "%7" "%8" "%9" >>%LOGFILE% 2>&1
    REM ################################## Step 4: Post Processing
    REM #### Daily Log Entry (return call)
    ECHO %time% -- Returned from Maxl Script: %1.mxl >>%DAYFILE%
    ECHO Log Closed: %date% %time% >>%LOGFILE%
    ECHO ============================== END OF SESSION >>%LOGFILE%
    REM #### Process Error entries and filter via Ignored.txt file
    TYPE %LOGFILE% | FIND "ERROR" >%ERRFILE%
    FOR /f "tokens=1" %%a in (%IGNORE%) DO TYPE %ERRFILE% | FIND /V "%%a" >%ERRFILE%
    FOR %%a in (%ERRFILE%) DO SET /a ErrCount=%%~za >nul
    IF '%COMPUTERNAME%'=='%DEVBOX%' (
         SET TYPE=NON-Production
         SET SVR=development
    ) ELSE (
         SET TYPE=Production
         SET SVR=production
    IF %ErrCount% EQU 0 (
         ERASE /Q %ERRFILE%
         SET SUBJECT=Essbase %TYPE% Script Completed
         SET MESSAGE=Maxl script '%1' has successfully completed on the %SVR% server.
         SET ATTACH=
         SET RESULT=SUCCESS
    ) ELSE (
         REM ################################## ERROR Processing
         SET SUBJECT=Essbase %TYPE% Script Error
         SET MESSAGE=Errors were detected in Maxl script '%1', the job's log and error files are attached.
         SET ATTACH=%LOGFILE% %ERRFILE%
         SET RESULT=ERR
    TYPE %MXLFILE% | FIND "ON%RESULT%" >Notify.tmp
    FOR /f "tokens=2" %%a in (Notify.tmp) DO SendEmail -f %COMPUTERNAME%@%EMAILDOM% -t %%a -u "%SUBJECT%" -m "%MESSAGE%" -s %EMAILRELAY% -a %ATTACH%
    ERASE /Q Notify.tmp
    ECHO. >>%DAYFILE%
    ECHO. >>%HSTFILE%
    TYPE %LOGFILE% >>%HSTFILE%
    :FIN
    ECHO.
    EXIT /B %ERRCOUNT%Here is my IGNORED.TXT file (only the code itself is used, the rest is for reference).
    0000000  This file contains Essbase Error codes which should be ignored by ESS_Shell.cmd or MXL_Shell.cmd
    1051083  This substitution variable does not exist.
    1003029  Encountered formatting error in spreadsheet file [%s]
    1090010  Error in File [%s] Which is a [%s] Spreadsheet
    1051068  Database is not in archive read-only mode

  • Weird problem using load() on a BLOB

    I've got a weird bug when trying to load BLOBs via PHP. Here is the code:<P>
    <TT>
    <?<BR>
    // Environment Variables so PHP can find Oracle<BR>
    putenv("TWO_TASK=gonk"); // Name of Oracle Server<BR>
    putenv("ORACLE_SID=ora10"); // Name of Oracle Instance<BR>
    putenv("ORACLE_HOME=/local/apps/oracle/InstantClient");<BR>
    putenv("DYLD_LIBRARY_PATH=/local/apps/oracle/InstantClient");<P>
    // Oracle username, password and connection string<BR>
    define("ORA_CON_UN", "test"); // Oracle Username<BR>
    define("ORA_CON_PW", "blahblah"); // Oracle Password<BR>
    define("ORA_CON_DB", "ora10"); // Oracle Instance<P>
    // Connect to Oracle<BR>
    $conn = OCILogon(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);<P>
    // SQL Query to execute<BR>
    $query = "SELECT TESTNUM, TESTCHAR, TESTBLOB ";<BR>
    $query .= "FROM TESTING WHERE TESTNUM = 1";<BR>
    $stmt = OCIParse ($conn, $query);<BR>
    OCIExecute($stmt);<BR>
    OCIFetchInto($stmt, &$arr, OCI_RETURN_LOBS);<P>
    $BlobNum = OCIResult($stmt,1);<BR>
    $BlobChar = OCIResult($stmt,2);<BR>
    $RawBlobBlob = OCIResult($stmt,3);<BR>
    $BlobBlob = $RawBlobBlob->load();<P>
    print ("BlobNum:".$BlobNum."\n");<BR>
    print ("BlobChar:".$BlobChar."\n");<BR>
    print ("RawBlobBlob:".$RawBlobBlob."\n");<BR>
    print ("BlobBlob:".$BlobBlob."\n");<BR>
    print("***\n");<BR>
    ?><P>
    </TT>
    Basically, the program works fine under PHP 4.0.5 on a TRU64 box (yes, the BLOB is displayed as a mess of strange characters, but that's cool - if I include a "header("Content-Type: image/jpeg");" line and only output the BLOB by itself the jpeg image stored in the BLOB is displayed properly). However, when it comes to running exactly the same program under PHP 4.4.1 on a OS X box, the program does not display the BLOB. The program is definitely loading the BLOB, as I can get the program to display how big (in bytes) the data in the BLOB is, but the OCI function load() is returning nothing when it should be displaying the data I have in the BLOB.
    <P>
    Anyone got any ideas on what could be causing this behaviour ? It's been driving me nuts for nearly a week!
    <P>
    Cheers,<BR>
    Rocky

    Glad you fixed it.
    See http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars regarding these lines in your script:
    putenv("ORACLE_HOME=/local/apps/oracle/InstantClient");
    putenv("DYLD_LIBRARY_PATH=/local/apps/oracle/InstantClient");
    -- cj

  • Weird problem using external tables

    Hi,
    Please move my message to the correct forum if it is not in the right one.
    Problem:
    I have the following external table definition:
    CREATE TABLE blabla (
         AANSLUITINGSNR_BV NUMBER(15),
         BSN_NR               NUMBER(9),
         DATUM_AANVANG_UKV          DATE,     
         DATUM_EIND_UKV               DATE,
         BEDR_WAO_WERKN_REFJ          number(18),
         BEDR_WAO_WERKG_REFJ          NUMBER(38)                              
    ORGANIZATION EXTERNAL (
    TYPE oracle_loader
    DEFAULT DIRECTORY nood_dir
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ';'
    MISSING FIELD VALUES ARE NULL
         "AANSLUITINGSNR_BV",
         "BSN_NR",           
         "DATUM_AANVANG_UKV"      DATE "YYYYMMDD",
         "DATUM_EIND_UKV"          DATE "YYYYMMDD",
         "BEDR_WAO_WERKN_REFJ",
         "BEDR_WAO_WERKG_REFJ"
    LOCATION ('myfile.csv')
    REJECT LIMIT UNLIMITED;
    My file looks like this:
    107031035423278;913487654;20010101;20011231;3231729003;8334195582
    128039008378982;117347347;20010101;20011231;1606131689;4468506457
    134740829467773;450263934;20010101;20011231;9568986434;526201096
    141020256280899;782714783;20010101;20011231;33235678;2398903683
    146130347251892;960256796;20010101;20011231;441706397;2622754437
    151020336151123;441010528;20010101;20011231;8183416412;6077359802
    152888977527618;114572066;20010101;20011231;2370992895;6196483262
    But when selecting the following log is stated:
    error processing column BEDR_WAO_WERKG_REFJ in row 1 for datafile /oracle/db/noodscenario/myfile.csv
    ORA-01722: invalid number
    error processing column BEDR_WAO_WERKG_REFJ in row 2 for datafile /oracle/db/noodscenario/myfile.csv
    ORA-01722: invalid number
    Why is number 8334195582 stated as invalid ?
    Thanks,
    Coen
    Message was edited by:
    Coenos1

    Which Oracle version and OS are you on ? It works perfectly to me :
    $ cat myfile.csv
    107031035423278;913487654;20010101;20011231;3231729003;8334195582
    128039008378982;117347347;20010101;20011231;1606131689;4468506457
    134740829467773;450263934;20010101;20011231;9568986434;526201096
    141020256280899;782714783;20010101;20011231;33235678;2398903683
    146130347251892;960256796;20010101;20011231;441706397;2622754437
    151020336151123;441010528;20010101;20011231;8183416412;6077359802
    152888977527618;114572066;20010101;20011231;2370992895;6196483262
    $ sqlplus test/test
    SQL*Plus: Release 10.2.0.2.0 - Production on Fri Aug 24 10:56:30 2007
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> CREATE TABLE blabla (
      2  AANSLUITINGSNR_BV NUMBER(15),
      3  BSN_NR NUMBER(9),
      4  DATUM_AANVANG_UKV DATE,
      5  DATUM_EIND_UKV DATE,
      6  BEDR_WAO_WERKN_REFJ number(18),
      7  BEDR_WAO_WERKG_REFJ NUMBER(38)
      8  )
      9  ORGANIZATION EXTERNAL (
    10  TYPE oracle_loader
    11  DEFAULT DIRECTORY work
    12  ACCESS PARAMETERS (
    13  RECORDS DELIMITED BY NEWLINE
    14  FIELDS TERMINATED BY ';'
    15  MISSING FIELD VALUES ARE NULL
    16  (
    17  "AANSLUITINGSNR_BV",
    18  "BSN_NR",
    19  "DATUM_AANVANG_UKV" DATE "YYYYMMDD",
    20  "DATUM_EIND_UKV" DATE "YYYYMMDD",
    21  "BEDR_WAO_WERKN_REFJ",
    22  "BEDR_WAO_WERKG_REFJ"
    23  )
    24  )
    25  LOCATION ('myfile.csv')
    26  )
    27* REJECT LIMIT UNLIMITED
    SQL> /
    Table created.
    SQL> select * from blabla;
    AANSLUITINGSNR_BV          BSN_NR DATUM_AAN DATUM_EIN BEDR_WAO_WERKN_REFJ BEDR_WAO_WERKG_REFJ
      107031035423278       913487654 01-JAN-01 31-DEC-01          3231729003          8334195582
      128039008378982       117347347 01-JAN-01 31-DEC-01          1606131689          4468506457
      134740829467773       450263934 01-JAN-01 31-DEC-01          9568986434           526201096
      141020256280899       782714783 01-JAN-01 31-DEC-01            33235678          2398903683
      146130347251892       960256796 01-JAN-01 31-DEC-01           441706397          2622754437
      151020336151123       441010528 01-JAN-01 31-DEC-01          8183416412          6077359802
      152888977527618       114572066 01-JAN-01 31-DEC-01          2370992895          6196483262
    7 rows selected.
    SQL>What do you see within the log file ?

  • Apple Banned me, because of a very weird problem with my "Factory Unlocked"

    Hi Everybody! Im having a very weird problem with my unlocked iphone 4.
    First of all, i would like to apologize because of my english, is not very good. My native language is Spanish.
    Well.. Im from Mexico, and here we can buy the iphone Unlocked on the Apple Online Store.
    Here's my problem. Apple has exchanged my iphone 3 times.
    I returned the iphone the first time because the screen was totally yellowish, other than that everything was working great!, that was by the end of September.
    On October 20th, i recieved my second iphone, and then a bigger problem started .
    Before i continue, let me give you this information: here in Mexico we have basically 3 cell phone companies
    1.- Telcel
    2.- Movistar
    3.- Unefon
    OK, now on october 20th, i recieved my second iphone, and then procced to activate via itunes using my UNEFON sim card (microsim).
    And every time i tried to activate it, only got this message onscreen:
    http://i148.photobucket.com/albums/s2/jorgelomeli/Screenshot2010-10-29at24915PM. png
    I though something was wrong with my brand new factory unlocked iphone 4.
    I have 4 more simcards from my brothers (they all had iphone 4 too)
    I tried telcel sim card, and i could activate my iphone. Then i insterted the Movistar microsim, and it worked too!! But then when i put the Unefon sim, the itunes logo inmediatly appears on the screen asking to activate on itunes, and when i tried that, the only response i got was the image above saying " The Simcard inserted on this iphone does not appear to be supported"
    Weird thing here is, that, when i put my Unefon sim card on my brothers iphone 4, it worked great! on all of them, internet 3g, phone, wireless , evrything!
    I called apple support, and they exchange the iphone for another one.
    I recieved the third iphone on October 29. Last friday. and guess what? SAME PROBLEM! different serial number, same week production (week 42) but exactly the same message on itunes.
    Very, very frustrated, i called apple again, and after 1 hour with thechnical support, they told me " We are sorry, but we can only offer you, your money back, NO MORE EXCHANGES FOR YOU"
    I said why?... i dont want my money back! i want an UNLOCKED iphone!, but they refuse to give me another iphone.
    When i asked techincal support, why my unefon sim card worked great on all three of my brothers iphone but not on mine, he just told me, "I really dont know, i guess they just got lucky" ****, this answer put all my trust i had on apple products for years, right on the garbage.
    Since they refused to give me another iphone, i accepted my money back, and inmediatly after i finished the call, i asked my brother to buy me one more time an iphone 4 using his name, and his credit card. Now i have to wait until November 8-12 to recieve my new iphone, hoping this time i get a REAL UNLOCKED iphone, and not a partially unlocked iphone.
    btw. i even went to Unefon costumer service and bought a new prepiad line, with a new microsim, just to be 100% sure that this problem is not because of the sim. And again didnt worked on my iphone, but it worked on any of my brothers iphone4.
    Serial numbers of the 3 iphones:
    79039C0U* (this one worked great with Unefon, only problem was yellow screen)
    85042GR4*
    81042FJB*
    What do you suggest me? any info would be really aprecciated
    FYI i also restore 4 times the last iphone and nothing seemed to work, i use 3 different computers, Macbook Pro, iMac, and an Hp with Windows 7, and the same message on all three computers.
    Wierd thing also, one of my brothers bougth an iphone 4 this last week too, but he bought the 16Gb not the 32Gb. His iphone production week is 42 also! and when i put my Unefon sim in his iphone works great!
    I dont know what else i can do, I just need to have faith that my new iphone coming this november will be real unlocked, but what if i'll recieve an iphone and then the same problem?? time for android? just kidding really guys, what can i do? anyone with similar problem like me? i dont wanna use Telcel or Movistar, i wanna use Unefon, and thats why i bought an Unlocked iphone
    btw: jailbreak is not a solution for me, because i always like to use legal software on all my apple products, and because of the warranty.

    According to http://support.apple.com/kb/HT1937, there are two official carriers in Mexico (Movistar and Telcel) and neither carrier offers an unlocked phone.

  • Calendar Server 3.5: Problem using user's ID with uniuser -mod command

    When there are two users who have the same Common Name (CN) in LDAP but
    different User ID's (uid
    field), I have a problem using the uid
    field as an argument to
    uniuser -mod in Netscape Calendar
    Server (NCS) 3.5. For example, there may be two users, User1 and User2, who
    both have the CN "John Smith."<BR>
    <P>
    <B>User1</B>
    uid: jsmith2
    sn: Smith
    givenname: John
    nscalxitemid: 10001:00314
    <B>User2</B>
    uid: jsmith
    sn: Smith
    givenname: John
    nscalxitemid: 10001:00213
    <P>
    Let's say I want to change the value for nsCalOrgUnit2
    for User1 to "jsmith." In NCS 4.0,
    I can specify the uid as
    an argument to uniuser -mod
    . However, in NCS 3.5, if I specify the
    uid as an argument to
    uniuser -mod, the entry
    for the user does not get changed.<BR>
    <P>
    <B>Calendar Server 4.0</B><BR>
    <P>
    %uniuser -mod "ID=00314" -m "OU2=jsmith/OU3=People" -n 10001
    <BR>
    uniuser: modified "Smith, John"<BR>
    <P>
    (The LDAP entry for User1 also reflects this change.)
    <P>
    <B>Calendar Server 3.5</B><BR>
    <P>
    %uniuser -mod "ID=00314" "OU2=jsmith/OU3=People" 10001
    <BR>
    uniuser: no need to modify "Smith,John"<BR>
    <P>
    (The LDAP entry for User1 does not reflect the change.)<BR>
    <P>
    %uniuser -mod "S=Smith/G=John/ID=00314" "OU2=jsmith/OU3=People"
    10001<BR>
    uniuser: no need to modify "Smith,John"<BR>
    <P>
    (The LDAP entry for User1 does not reflect the change.)<BR>
    <P>
    If I use the command uniuser -mod "S=Smith/G=John"
    "OU2=jsmith/OU3=People" 10001
    in NCS 3.5, the script will change the entry of the first "John Smith" in the
    database and will cause the LDAP entry for this user to be updated as well.
    However, the entry modified may or may not be the correct one. So, in
    NCS 3.5, is there a way to specify a particular uid
    to ensure that the correct LDAP entry
    is modified?
    <P>
    To modify a user's information using the uid
    field in Calendar Server 3.5, change
    the user.ini file. The
    following steps show how to change a user's information by modifying the
    .ini file:<BR>
    <P>
    <OL>
    <LI>Open the user.ini
    file, which is in the path /users/unison/misc/user.ini
    <P>
    <LI>Add a section containing the desired changes. For example,<BR>
    <P>
    [Test]<BR>
    OU2 = jsmith<BR>
    OU3 = People<BR>
    <P>
    <LI>Run uniuser with
    the following options:<BR>
    <P>
    % uniuser -mod "ID=00314" -s Test 10001
    </OL>

    It turns out to be a problem with the user Keychain. It has some weird entry that was sending the wrong password. I delete all entries to the server and that corrected the problem

  • Problem using images in a button skin

    So, I have a weird problem. I need to be able to see a button in design mode. My button is a custom component (a ButtonBase) with a skin. So, I left is a tiny bit of the default skin so that you can see what it looked like in design mode. Now, the paths to the images that will be used for the various states of the button are binded to strings passed from another subcomponent. There was no other way to get what we needed done, so it stays messy. Anyway, I don't get things to display correctly. Here's the code, and after an image for what I'm getting:
    [CODE]
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                             xmlns:s="library://ns.adobe.com/flex/spark"
                             xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
                             xmlns:mx="library://ns.adobe.com/flex/mx"
                             minWidth="21" minHeight="21" alpha.disabled="0.5"
                             preinitialize="initImageVars()" creationComplete="init()">
        <!-- host component -->
        <fx:Metadata>
            <![CDATA[
            [HostComponent("customComponents.ToggleButtonCustom")]
            ]]>
        </fx:Metadata>
        <!-- states -->
        <s:states>
            <s:State name="up" />
            <s:State name="down" />
            <s:State name="selected" />
            <s:State name="disabled" />
            <s:State name="over" />
        </s:states>
        <fx:Script>
            <![CDATA[        
                import mx.controls.Alert;
                /* First thing's first: we need to initialize our global and accessable components. */
                [Bindable]
                public var upButtonPath:String = "";
                [Bindable]
                public var downButtonPath:String = "";
                [Bindable]
                public var activeButtonPath:String = "";
                [Bindable]
                public var disabledButtonPath:String = "";
                [Bindable]
                protected var label:String = "";
                private function initImageVars():void
                    upButtonPath = "assets/" + this.hostComponent.upButtonPath;
                    downButtonPath = "assets/" + this.hostComponent.downButtonPath;
                    activeButtonPath = "assets/" + this.hostComponent.activeButtonPath;
                    disabledButtonPath = "assets/" + this.hostComponent.disabledButtonPath;
                private function init():void
                    /* Give values to public variables */
                    //upButtonPath = "Up.png";
                    //downButtonPath = "Down.png";
                    //activeButtonPath = "Active.png";
                    label = this.hostComponent.label;
                /* Define the skin elements that should not be colorized. For button, the graphics are colorized but the label is not. */
                static private const exclusions:Array = ["labelDisplay"];
                override public function get colorizeExclusions():Array {return exclusions;}
                override protected function initializationComplete():void
                    useChromeColor = true;
                    super.initializationComplete();
                private var cornerRadius:Number = 2;
            ]]>       
        </fx:Script>
        <!-- layer 1: fill -->
        <s:Rect id="fill" left="1" right="1" top="1" bottom="1" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="90">
                    <s:GradientEntry color="0xFFFFFF"
                                                     color.down="0xAAAAAA"
                                                     color.selected="0xBBBDBD"
                                                     alpha="0.85" />
                    <s:GradientEntry color="0xD8D8D8"
                                                     color.down="0x929496"
                                                     color.selected="0x9FA0A1"
                                                     alpha="0.85" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
        <mx:ViewStack id="buttonImage" x="0" y="0"
                                    selectedIndex="0" selectedIndex.down="1" selectedIndex.selected="2"    selectedIndex.disabled="3">
            <s:NavigatorContent id="upState">
                <mx:Image source="{upButtonPath}" width="500" height="500" />
            </s:NavigatorContent>
            <s:NavigatorContent id="downState">
                <mx:Image source="{downButtonPath}" />
            </s:NavigatorContent>
            <s:NavigatorContent id="activeSate">
                <mx:Image source="{activeButtonPath}" />
            </s:NavigatorContent>
            <s:NavigatorContent id="disabledState">
                <mx:Image source="{disabledButtonPath}" />
            </s:NavigatorContent>
        </mx:ViewStack>
        <s:Label id="labelDisplay" text="{label}"
                         textAlign="center"
                         verticalAlign="middle"
                         maxDisplayedLines="3"
                         horizontalCenter="0" verticalCenter="1"
                         left="10" right="10" top="2" bottom="2">
        </s:Label>
    </s:SparkSkin>
    [/CODE]
    That gives me this image:
    And if I use the following code to resize it, I get this:
    [CODE]
    /* From the component, called from init(), which is called on creationComplete */
    private function resizeEverything():void
      var dummyImage:Image = new Image();
      var pathToDummy:String = "assets" + upButtonPath;
      dummyImage.source = pathToDummy;
      thisBtn.height = dummyImage.height;
      thisBtn.width = dummyImage.width;
      dummyImage = null;
    [/CODE]
    If you have any idea what to do with this, let me know. I set the buttons to the exact height and width of the images I'm using when I first call them. I don't know how else to manage this. I want the faded white to be an exact mirror of the image, so that designers (not me) can move them around on design mode. Thank you!

    Figured it out. The images I was given had large amounts of padding, and when I tried to auto-resize the buttons, Flash could never grab the image and therefore couldn't size off it, so the size of the component was forced to 0,0. It's all good now.

  • Iphone 4, having a weird problem /: can't seem to fix it!

    So i have been having my iphone for a while, i have no warranty on the phone now. I have this weird problem that when i scoll down my messages and stuff i can see the outline of the message kind of show rainbowish colors that sort of show a bit when i scroll, right near the border of the message. its kind of annoying at times, also there are times when i press the home button, right when i get to my wallpaper, the outline of the letters when i text are there like very very faint, they disappear after for a while but then come back sort of like a glitch, and i cant fix it at all. then i would see faint horizontal lines, i would notice them when i use the camera, they disappear also. can anyone help me with this or suggest something?

    Screen lag is normaly the LCD itself. But try restoring the iPhone. http://support.apple.com/kb/HT1414

  • SAP GUI 7.10p15 weird problem on FB70

    Hi all,
    We upgraded SAP GUI 7.10 to patch level 15 from patch level 14 using the install server on our Windows XP machines. A weird problem seems to appear since then on FB70. You press once or twice the ENTER key, without filling any field on the screen and the GUI stays on a busy state forever (trying to constantly redraw the screen as to show an error message on missing account number). It results to 100% CPU usage on the client (Windows XP machines, tried on Windows 7 also with same result) and seems to also stress the SAP system a bit. The only way to stop that behavior is to use the Windows task manager and kill the busy window. I have not seen this behavior before and can't reproduce it in any other transaction until now.
    I got access on a machine that was still on patch level 14 and works just fine. I did the upgrade and the same behaviour (busy, 100% CPU) instantly appears. Oddly enough, this behavior does not occur if I run FB70 throught the debugger (/h) in any case.
    Have you seen something like this or do you have any clue why that weird behavior might appear?
    Thank you very much in advance for any insight

    Hello Artemios,
    Yes, this seems to be a know issue with Patch 15. Please open a ticket on BC-FES-GUI to get a fix for that or wait until Patch 16 is released.
    Kind regards,
    Martin

  • Weird problem involving my external hard drive - help please!

    I recently got a formac mini 120 gb firewire hard drive, which had been working fine with my g4 quicksliver.
    i then went to a friends (g5 machine) with my drive and he put some data on it - bought it back to mine and managed to re connect the drive and take the data - no problem - very happy.
    I recently gave my drive to another friend using a g5 and when it came back, nothing - i don't get the drive symbol appearing. turned the comp on and off many times and tried re-connecting etc still no drive appearing.
    Then i took the drive to my friend with a mac lap top power book. connected there - working fine. Baffling. was happy that my data can still be accessed.
    I know it's not the firewire cable because i can get power to the drive - i can see the red light at the fron on.
    Can anyone help with this weird problem?
    Thanks

    Thought you could use this info about getting FireWire to work!
    First, you should always Repair Permissions in Disk Utility before and after any update; I would do that now. If you installed your update with FireWire plugged in, your Mac may not recognize it anymore.
    Try resetting your FireWire ports by disconnecting all FW devices, shut down your Mac and unplug it from AC power (wall socket) for 30 minutes. plug it back in and try FW.
    If that did'nt work, download the combo update from this site (yours may be corrupt), not Software Update, disconnect all firewire + USB devices except keyboard + mouse, Repair Permissions, re-install update, Repair Permissions again + try. Yours might be the 10.4.10 Combo update. I have no idea since you did not fill out your specs. fully when you signed in to this site. Others reading, download the Combo that applies to your system. This link is for PPC Macs not Intel Macs.
    If that still did'nt get it Zap the PRAM. While restarting Mac hold down the following key combo Command-Option-P-R. Keep holding those keys down till you hear the second start-up chime, then release.
    For those of you with Macs that are not PowerBooks or iBooks, a bad internal battery can cause FireWire to not be recognized, so make sure it's good! Also, here is Apple doc.#88338 on getting FireWire to work.
    Good Luck!
    Cheers!
    DALE

  • Desktop acting weird when using External Monitor.

    Hey guys,
    Just wondering if people have been having this weird "problem" when using an external monitor on OS X Mavericks. Though not really an issue that makes the OS/Mac usable, it's more of a quality of life thing (and it's really annoying for someone who likes things to be where I put them).
    Anyways, the problem is that when I use my external monitor when at home, I have it set as the main display while the monitor on my MacBook Pro 15" acts as the extended/secondary monitor. No problems in functionality, BUT, the icons on my desktop always move while my external monitor is in use.
    I usually do my work while using my external monitor and I use my desktop as my initial location to save my work files before moving them to an appropriate folder. However, revert back to not using the external monitor, everything just gets muddled up on top of eachother, stuff (sometimes) get missplaced and it just becomes a hassle to rearrange my desktop to how it was before.
    tl:dr: desktop icons move when I use my external monitor as my main display.
    So does anyone know if this is a problem that can be fixed, or is it an issue my monitor being a 3rd party model and old?
    (Monitor HP w2448h — http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay?ac .admitted=1391518927628.876444892.199480143&javax.portlet.begCacheTok=com.vignet te.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.pr p_ba847bafb2a2d782fcbb0710b053ce01=wsrp-navigationalState%3DdocId%253Demr_na-c01 482166-8%257CdocLocale%253D%257CcalledBy%253D&javax.portlet.tpst=ba847bafb2a2d78 2fcbb0710b053ce01&sp4ts.oid=3454237)

    Hi BradnBeaverton,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Whether or not you are using an Apple Cinema Display, the behaviour you are describing is the same:
    Apple Cinema Display: Troubleshooting steps
    http://support.apple.com/kb/HT2810
    Desktop icons move after screen resolution change
    Changing the screen resolution affects the display of information on your screen, especially changing to a smaller resolution. The operating system may automatically reposition icons after you change the screen resolution.
    OS X Mountain Lion: About the Display pane of System Preferences
    http://support.apple.com/kb/HT5369
    Cheers,
    - Judy

  • Weird problem when executing an update statement

    Please help me out with this issue. This a very weird problem i'm facing while executing the following update statement.
    update tblo.S_TABLE c
    SET (ACCNT_NAME, ACCNT_LOC)
    =
    (select NAME, LOC from S_TABLE1 p
    where p.ROW_ID = c.ACCNT_ID)
    where ROW_ID = 'XXXXX'
    The statement executes perfectly fine in "SQL Plus" but when i try from my application or any SQL Tool that uses ODBC, it fails with the following error
    <eb1>ORA-00923: FROM keyword not found where expected
    State:S1000,Native:923,Origin:[Oracle][ODBC][Ora]</eb1>
    ODBC Driver Used: 9.2.0.2.0

    Yes this could most probably be resolved by upgrading the driver. I'hv tried MS Oracle ODBC driver but that is even more problematic!
    The applications works fine in another environment which uses a Merant ODBC driver. Thanks for your time and advice.

  • Weird problem when downloading the output to an excel sheet

    Hi to all,
          when i download the list, output by an alv grid, i observe a weird problem..in the excel sheet the last digit (10th digit) of the first col. which is delivery no., is getting truncated...0001802563 is getting downloaded as 000180256..couldn't understand why...when i use conversion_exit fm, the values are not getting truncated and downloading correctly...curious to know what's gone wrong in this funcationality? thanks all
    cheers,
    Shankar. M.

    actually the problem is in the field catalog.if u can send me the code, i shall bug fix it for u.

  • Weird problem with JApplet

    I'm having a weird problem with JApplet. So first I create an Applet with this code
    public class japp extends JApplet {
         public void init() {
              Container content=getContentPane();
              JButton jb=new JButton("Hello");
              content.add(jb);
    }and with this in the .html file;
    <html>
    <body>
    <APPLET CODE="japp.class" WIDTH="650" HEIGHT="500"></APPLET>
    </body>
    </html>
    And opened it in Firefox, it worked as expected. However, when I change the code in any way, i.e.
    public class japp extends JApplet {
         public void init() {
              Container content=getContentPane();
              JButton jb=new JButton("Goodbye");
              content.add(jb);
    }and compile it, it still shows the old button that displays "Hello". I've tried deleting the .class file from before and recompiling, that doesn't work. What am I doing wrong?
    Thanks.

    Reloading the page usually doesn't work. You will need to open the Java Console and clear classloader cache (x). You can also use appletviewer for testing purposes.

Maybe you are looking for

  • Issues with Audition CC 2014

    Hi, Gang. I've been a user of AA since ver. 1.5.  There are still a lot I would like to see in the form of feature additions, and I have had nothing but good things to say about the program (having been a ProTools user since the dawn of daws) until r

  • New mail notification counter not appearing in dock

    I've noticed recently that my new mail notification counter doesn't appear in the dock if I have Mail sitting in the background. I can be working in, say, Word, and not know I have new mail. Yet, when I go to Mail there are emails sitting there (and

  • SLD in 2004s

    hi all, I am facing a problem in the SLD settings. we are using NW2004s sneak preview. In the sld page, under Administration -> Data Supplier bridge, i cannot find the options for entering the parameters Server and Service. the start/stop bridge butt

  • Can a website built with adobe muse interface with a database such as an Excel spreadsheet?

    Is it possible for a website built in Adobe Muse to  interface with a database?  I need to turn a rather robust excel spreadsheet into an easy-to-use website that links to a database that can be updated easily and regularly.  Thanks.

  • PLEASE help me!!!!! with app error 523

    i cannot figure out what to do here.  i was using my phone earlier today and when i picked it up it had app error 523 reset.  pushed that and it just went back to that screen again.  i took out the sim card, the battery and left it out for a while, p