Input problems

hi,
i wrote my firs code in java which needs an integer input. I tried readLine & readInt methods. But the compiler is showing an unidentified IOException error. It says tht exception shd be caught or thrown. My input statement is not workin if i do so...can neone hlp me out..
import java.io.*;
import java.lang.*;
class IntegerPalin
     int palinCheck(int k)
          int n=k;
          int p=0;
          while(k>0)
               p=p+(k%10);
               p=p*10;
               k=k/10;
          if (p==n)return(1);
          else return (0);
class IntPalin     
     public static void main(String args[])
          int m;
     InputStreamReader in = new InputStreamReader(System.in);
     BufferedReader in1 = new BufferedReader(in);
     System.out.println("enter an integer");
m = Integer.ParseInt(in1.readLine());
     IntegerPalin  I = new IntegerPalin();
          int l = I.palinCheck(m);
     if(l==l)
     System.out.println("its a palindrome");
     else
     System.out.println("its not a palin");
}          if I do try -catch iam not getting any error but input is not successful

First of all you appear to have a logic error (i didn't more carefully analyze your code)
if(l==l)
     System.out.println("its a palindrome");
else
     System.out.println("its not a palin");l will always == l even when it's 0 and therefore always evaluate to true even if l is not a palindrome. My best advice is to change the return type of palinCheck(int) to boolean from integer. Then simply change the code to be
if (I.palinCheck(m)){
Now as for your other problem:
This code (at least when I compiled it =) should get an integer from System.in
import java.io.*;
public class GetIntegerFromSystemInput{
    public static void main(String[] args){
        int m = 0;
        System.out.println("Enter an integer: ");
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            m=Integer.parseInt(br.readLine());
        } catch (Exception e){
            e.printStackTrace();
            System.exit(1);
        System.out.println("The integer you entered is: "+m);
}parseInt(String) only takes a String entirely made out of numbers. For instance 13421 . If the string is 13,142 (you added a comma for example) then it will throw a NumberFormatException instead of a number so no commas or other formatting or characters are allowed.
Just a few code style tips (as having taken CS class before). If you are wondering if something is a palindrome generally name your function isPalindrome with a boolean return type. This make it less likely to run into logic errors like the one you hit.
Now the code will look something like this:
if (isPalindrome(m)){
//true condition
else
//false condition
Then you can read it as (if m is a palindrome do this else do that).
Also this is a perfect case for a static method. You shouldn't have to instantiate a class just to get a method that requires nothing of an instance variable.
static boolean isPalindrome(int k){
if (condition)
return true;
else
return false;
}now you can clean that code up to just have to say:
if (IntegerPalin.isPalindrome(m)){
//true code
else
//false codeand erase all that
IntegerPalin I = new IntegerPalin();
int l =I.palinCheck(m) stuffhope this helps

Similar Messages

  • Acroread 8.x CJK input problem

    See also https://bugzilla.novell.com/show_bug.cgi?id=353251
    CJK input doesnt work right in the English version of
    acroead 8.1.1 or the pre-release version 8.1.2.
    First of all, one needs to set
    export GTK_IM_MODULE=xim
    to make acroread react at all to the hotkey which triggers
    SCIM input (default hotkeys on openSUSE are Shift+Space and Control+Space).
    When GTK_IM_MODULE=scim or GTK_IM_MODULE=scim-bridge, acroread
    wont react to the hotkey which enables SCIM at all.
    With GTK_IM_MODULE=xim, the scim input method *can* be
    enabled by Shift+Space. But it doesnt work right.
    One can see correct Japanese in the popups shown by scim when
    converting phonetics to Chinese characters. But the predit string
    shows garbage which seems to resemble Arabic. And after comitting
    everything typed is converted to question marks (acroread 8.1.1)
    or boxes (acroread 8.1.2).
    I am talking about the *English* versions of acroread here, not
    localized Japanese versions like e.g.
    ftp://ftp.adobe.com/pub/adobe/reader/unix/8.x/8.1.1/jpn
    As it is not nice to have completely packages for each language, I
    hope that the different language versions can be merged into one in
    the long run.
    It would be very nice if there were only one basic version and to
    support other languages one only had to add fonts and translations and
    not exchange the binaries.

    Some more comments from: https://bugzilla.novell.com/show_bug.cgi?id=353251
    ------- Comment #5 From Gaurav Jain 2008-01-11 10:48:18 MST -------
    [ ] Private
    Mike,
    Could you confirm if everything is working fine with the Japanese Reader
    downloaded from the Reader website? That'll be really strange since the Viewer
    binaries should be identical in the English and Japanese versions. The only
    difference in the 2 installers should be in the fonts and the resource
    libraries.
    -vc
    ------- Comment #6 From Mike Fabian 2008-01-11 19:43:16 MST -------
    [ ] Private
    OK, I tried with the special Japanese version of acroread (8.1.1)
    as well.
    There is no difference in behaviour between the Japanese acroread
    8.1.1 and the English acroread 8.1.1 and the English acroread 8.1.1 as
    far as the input problem reported here is concerned! All of them show
    the problem as reported here.
    But I found that it depends on the locale. If acroead is started
    in ja_JP.UTF-8 locale
    LANG=ja_JP.UTF-8 acroread
    the problem occurs as reported here.
    However, if acroread is started in ja_JP.eucJP locale
    LANG=ja_JP.eucJP acroread
    the Japanese input works fine! Thats the same with the Japanese and
    the English version of acroread.
    As UTF-8 locales are the default nowadays on most Linux distributions,
    it is important that this works not only in legacy locales like
    ja_JP.eucJP but also in ja_JP.UTF-8.
    ------- Comment #7 From Gaurav Jain 2008-01-13 09:25:27 MST -------
    [ ] Private
    The screen-shot seems to indicate you are trying to enter japanese characters
    in a standard GTK+ edit field. The core Reader code actually doesn't interact
    much with the control during the process of entry of text.
    Could you try the following -
    1. When the default locale is eucJP, what happens in a standard edit field in
    some other GTK+ app., for instance gtk-demo? If you don't have gtk-demo, you
    could even try the same thing in the Open dialog in the Adobe Reader, where you
    type the file name.
    2. If you don't export GTK_IM_MODULE=xim, can you make the IME appear in some
    other GTK+ app. like the gtk-demo?
    My guess is this (atleast point 1 above) may be a problem with GTK+, though we
    are investigating this at our end as well. Maybe an issue with the fonts that
    get loaded when the locale is UTF-8, vs eucJP. That's the reason, the
    characters loaded from the IME are showing as question marks.
    -vc
    ------- Comment #8 From Mike Fabian 2008-01-14 05:18:46 MST -------
    [ ] Private
    Gaurav Jain> 1. When the default locale is eucJP, what happens in a
    Gaurav Jain> standard edit field in some other GTK+ app., for instance
    Gaurav Jain> gtk-demo?
    In gtk-demo, Japanese input works both for ja_JP.eucJP locale
    *and* for ja_JP.UTF-8 locale.
    And it works for all values of GTK_IM_MODULE which I tried
    (GTK_IM_MODULE=xim, GTK_IM_MODULE=scim, and GTK_IM_MODULE=scim-bridge.
    Gaurav Jain> If you don't have gtk-demo, you could even try
    Gaurav Jain> the same thing in the Open dialog in the Adobe Reader,
    Gaurav Jain> where you type the file name.
    Japanese input in the Open dialog of the Adobe Reader behaves
    exactly like in the search field of the Adobe Reader:
    - works fine in ja_JP.eucJP locale
    (for all values of GTK_IM_MODULE)
    - does not work in ja_JP.UTF-8 locale
    (not for any of the above mentioned values of GTK_IM_MODULE)
    Gaurav Jain> 2. If you don't export GTK_IM_MODULE=xim, can you make
    Gaurav Jain> the IME appear in some other GTK+ app. like the gtk-demo?
    In gtk-demo the IME appears and works fine.
    In acroread, the IME appears for all values of GTK_IM_MODULE (xim,
    scim, scim-bridge) and input works fine in ja_JP.eucJP locale. In
    ja_JP.UTF-8 locale, the IME appears as well and input seems to be
    possible but the result is garbage as in my screen shot.
    ------- Comment #9 From Gaurav Jain 2008-01-22 04:06:32 MST -------
    [ ] Private
    Hello Mike,
    I tried reproducing the bug on SLED 10, openSUSE 10.3, and openSUSE
    11.0(http://download.opensuse.org/distribution/11.0-Alpha1/iso/cd/openSUSE-11.0-Alpha1-GNO ME-i386.iso)
    but was unable to do so.I could see no difference in the behavior based on
    locale.Also,the problem of garbage predit strings in case of utf8 is not
    reproducible at my end.
    Could you please attach a screenshot of your SCIM setup settings,and the
    download location of openSUSE 11.0.
    Regards,
    Sanika
    ------- Comment #10 From Mike Fabian 2008-01-23 10:48:40 MST -------
    [ ] Private
    I found that the problem occurs *only* with GTK_IM_MODULE=xim,
    contrary to what I wrote in comment #8.
    That was my fault, because I still had
    # Workaround for http://rudin.suse.de:8888/show_bug.cgi?id=85416
    # (see comment #37):
    export GTK_IM_MODULE=xim
    patched into the beginn of the acroread start-script.
    Apparently this is not needed anymore, input using
    GTK_IM_MODULE=scim and GTK_IM_MODULE=scim-bridge seems to
    work fine now in acroread 8.1.2.
    *But* the problem I described here occurs with GTK_IM_MODULE=xim.
    Sanika,
    can you reproduce the problem with GTK_IM_MODULE=xim ?

  • Solution for terminal input problem

    (my english is bad, sorry)
    Hi, this thread is for programmers who like console applications (ncurses based).
    As you all know, terminal emulators have a big problem with user input. Their input system is good for CLI, but really sucks when using full screen applications like vim, emacs, mc, ncmpc, htop, rtorrent, irssi (I mean all ncurses based or slang based which use cursor movement). Examples of this problem:
    - Ctrl-L and Ctrl-Shift-L generate the same single byte in the terminal; namely 0x0c. They are indistinct.
    - Ctrl-I and Tab generate the same single byte in the terminal; namely 0x09. They are indistinct.
    - UTF-8, Alt+letter, Esc-letter all generate the same bytes in the terminal. E.g. é vs. Alt+C Alt+) vs. Esc C Esc )
    But there is no simple and nice solution. Problems cannot be solved without fixing the terminal itself and without breaking some backward compatibility. But I think a lot of console-addicted programmers want to solve them.
    So, here is my way of solving this problem.
    http://nsf.110mb.com/termbox/termbox-concept.html
    The main idea is to add a new terminal mode called "RAW input". This mode will send special events almost directly from X11 to console application.
    On this page I introduced a simple demo application and an rxvt-unicode-9.02 patch.
    In this version of my hack, echoing in terminal is broken. You can't enable echo with this new mode yet. But I can solve this too.
    It is simple and needs a little bit more hacking of terminal. Terminal should start all input messages with unique escape sequence and when it receives echo of these messages, it should ignore them. But also terminal should send these input messages *with* usual symbols, so they can be echoed.
    So I want to know what do you think about all this.

    shining wrote:
    nsf wrote:So I want to know what do you think about all this.
    I think that you might want to find a more specialized place to get more valuable feedbacks. But also that I never noticed these input problems so it has never bothered me
    Yes, I think I should try usenet news groups
    These input problems are not so big deal, but when you want to use your keyboard at maximum, they kick your ass
    I discovered this problem when I was working on ncurses minimalistic replacement. But in the net there are talks about this too.
    Here for example: http://www.nabble.com/Improve-vim%27s-k … 34943.html
    Last edited by nsf (2008-06-16 07:06:37)

  • Batch input problem in SM35

    Dear all,
    I am uploading the bank statements using manual bank statements through Z transaction, Once uploaded system is generating the batch input session for the same.
    When i run the batch input session system not clearing outgoing payment automatically based on the assignment field, as i have alreday mentioned the same assignment while posting the document and in the excel file.
    I am getting the following message while running the batch input session.
    No batch input data for screen SAPDF05X 3100
    Message no. 00344
    Diagnosis
    The transaction sent a screen that was not expected in the batch input session and which therefore could not be supplied with data.
    Possible reasons:
    1. The batch input session was created incorrectly. The sequence of screens was recordly incorrectly.
    2. The transaction behaves differently in background processing in a batch work process than when running in dialog (SY-BATCH is queried and changes the screen sequence).
    3. The transaction has undergone user-specific Customizing and therefore certain screens may be skipped or processed differently, according to the current user. If the person who created a batch input session is not the same as the person now processing it, this problem may occur frequently.
    System Response
    None.
    Procedure
    For 1: Either re-create the session or process it in expert mode. Correct the batch input program.
    For 2. It is very difficult to analyze this problem, particularly in the case that the screen sequence or the display-only options of fields differ according to whether the transaction is being processed in the background or as an online dialog. It could also be that this kind of transaction cannot run with batch input.
    For 3: Have the creator of the session process it. If no error occurs now, then this is a program with user-specific Customizing.
    Please let me know solution for the same.
    Regards,
    Anand

    Hi,
    This may not be a solution but may help you to isolate the problem
    a) Are you able to load the bank statement for other banks without error ?
    b) Try for the same bank in a different system .
    c) If it is working for different bank then check the file format is the same for both the banks.
    d) If it is working in different system check the ABAP code for any changes between the system,
    e) Are you getting this message for all the line items or only for some line items ?
    Regards
    K.R

  • Mouse & keyboard input problem.

    Hello there.
    I have recently started using a Mac Mini for music live performance.
    I am using programs like Ableton Live & Apple's MainStage.
    I am experiencing problems with the input coming from the mouse and keyboard. After startup everything works perfectly fine. I am using Apple's Magic Mouse and Apple's wireless bluetooth keyboard now, but I have also experienced the same with a simple cheap usb mouse.
    Let me explain, what happens:
    From time to time, the input coming from both the keyboard and the mouse stops. The keyboards is not responding at all. The mouse can move the coursor around, but the buttons are not responding. When I for example move the coursor on an icon in the dock, the name does not pop up, as it would do normally.
    From that point my rescue is a restart (hard one) or a screen sharing login from another mac on the network to do a normal restart.
    Is anyone experiencing something similar? Any tips to help me out?

    We are running Ableton Live for running backtracks.
    Here is the part of the log. There is more log about the system startup, if needed.
    18/06/14 16:27:54,000
    kernel[0]
    Sandbox: ntpd(375) deny file-read-data /private/var/run/resolv.conf
    18/06/14 16:27:54,000
    kernel[0]
    Sandbox: ntpd(375) deny file-read-data /private/var/run/resolv.conf
    18/06/14 16:33:05,371
    WindowServer[103]
    Warning: Program "Live" posted a mouse-down, blocking hardware events, but did no further mouse activity
    18/06/14 16:35:17,000
    kernel[0]
    [AppleMultitouchDevice::willTerminate] entered
    18/06/14 16:35:17,000
    kernel[0]
    [AppleMultitouchDevice::stop] entered
    18/06/14 16:35:17,000
    kernel[0]
    [0xffffff8018afd600][free]()
    18/06/14 16:35:17,804
    loginwindow[68]
    Preferred Localizations total: 1 contents (  English )
    18/06/14 16:35:24,412
    WindowServer[103]
    Warning: Program "Live" posted a mouse-down, blocking hardware events, but did no further mouse activity
    18/06/14 16:35:24,428
    WindowServer[103]
    Warning: Program "Live" posted a mouse-down, blocking hardware events, but did no further mouse activity
    18/06/14 16:35:59,916
    digest-service[514]
    label: default
    18/06/14 16:35:59,916
    digest-service[514]
    dbname: od:/Local/Default
    18/06/14 16:35:59,916
    digest-service[514]
    mkey_file: /var/db/krb5kdc/m-key
    18/06/14 16:35:59,916
    digest-service[514]
    acl_file: /var/db/krb5kdc/kadmind.acl
    18/06/14 16:35:59,917
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:35:59,918
    digest-service[514]
    digest-request: netr probe 0
    18/06/14 16:35:59,919
    digest-service[514]
    digest-request: init request
    18/06/14 16:35:59,922
    digest-service[514]
    digest-request: init return domain: DUNES-MAC-MINI server: DUNES-MAC-MINI indomain was: <NULL>
    18/06/14 16:36:00,010
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:36:00,010
    digest-service[514]
    digest-request: init request
    18/06/14 16:36:00,013
    digest-service[514]
    digest-request: init return domain: DUNES-MAC-MINI server: DUNES-MAC-MINI indomain was: <NULL>
    18/06/14 16:36:00,175
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:36:00,175
    digest-service[514]
    digest-request: init request
    18/06/14 16:36:00,178
    digest-service[514]
    digest-request: init return domain: DUNES-MAC-MINI server: DUNES-MAC-MINI indomain was: <NULL>
    18/06/14 16:36:00,204
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:36:00,204
    digest-service[514]
    digest-request: init request
    18/06/14 16:36:00,207
    digest-service[514]
    digest-request: init return domain: DUNES-MAC-MINI server: DUNES-MAC-MINI indomain was: <NULL>
    18/06/14 16:36:00,210
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:36:00,212
    digest-service[514]
    digest-request: od failed with 2 proto=ntlmv2
    18/06/14 16:36:00,212
    digest-service[514]
    digest-request: user=\GUEST
    18/06/14 16:36:00,215
    digest-service[514]
    digest-request: kdc failed with -1765328234 proto=unknown
    18/06/14 16:36:00,215
    digest-service[514]
    digest-request guest: ok user=DUNES-MAC-MINI\GUEST proto=ntlmv2 flags: NEG_KEYEX, ENC_128, NEG_VERSION, NEG_TARGET_INFO, NEG_NTLM2, NEG_NTLM, NEG_TARGET, NEG_UNICODE
    18/06/14 16:36:01,567
    kdc[72]
    Got a canonicalize request for a LKDC realm from 192.168.1.101:51637
    18/06/14 16:36:01,567
    kdc[72]
    LKDC referral to the real LKDC realm name
    18/06/14 16:36:01,570
    kdc[72]
    BUG in libdispatch client: kevent[EVFILT_READ] delete: "Bad file descriptor" - 0x9
    18/06/14 16:36:01,698
    kdc[72]
    AS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51638 for krbtgt/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A29 43F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,702
    kdc[72]
    AS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51638 for krbtgt/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A29 43F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,703
    kdc[72]
    Need to use PA-ENC-TIMESTAMP/PA-PK-AS-REQ
    18/06/14 16:36:01,713
    kdc[72]
    AS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51639 for krbtgt/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A29 43F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,717
    kdc[72]
    AS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51639 for krbtgt/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A29 43F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,718
    kdc[72]
    Client sent patypes: ENC-TS
    18/06/14 16:36:01,718
    kdc[72]
    ENC-TS pre-authentication succeeded -- dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,719
    kdc[72]
    Client supported enctypes: aes256-cts-hmac-sha1-96, aes128-cts-hmac-sha1-96, des3-cbc-sha1, arcfour-hmac-md5, using aes256-cts-hmac-sha1-96/aes256-cts-hmac-sha1-96
    18/06/14 16:36:01,719
    kdc[72]
    Requested flags: canonicalize
    18/06/14 16:36:01,867
    kdc[72]
    TGS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51640 for vnc/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A2943F 6790428F4FC70E766BF0D80FB1 [canonicalize]
    18/06/14 16:36:01,887
    screensharingd[516]
    Authentication: SUCCEEDED :: User Name: dune :: Viewer Address: 192.168.1.101 :: Type: Kerberos
    18/06/14 16:36:27,000
    kernel[0]
    Sandbox: ntpd(375) deny file-read-data /private/var/run/resolv.conf
    18/06/14 16:36:27,000
    kernel[0]
    Sandbox: ntpd(375) deny file-read-data /private/var/run/resolv.conf
    18/06/14 16:36:29,000
    kernel[0]
    [BNBMouseDevice::init][80.14] init is complete
    18/06/14 16:36:29,000
    kernel[0]
    [BNBMouseDevice::handleStart][80.14] returning 1
    18/06/14 16:36:29,000
    kernel[0]
    [AppleMultitouchHIDEventDriver::start] entered
    18/06/14 16:36:29,883
    loginwindow[68]
    Preferred Localizations total: 1 contents (
        English
    18/06/14 16:36:30,000
    kernel[0]
    [AppleMultitouchDevice::start] entered
    18/06/14 16:37:08,196
    WindowServer[103]
    Warning: Program "Live" posted a mouse-down, blocking hardware events, but did no further mouse activity
    18/06/14 16:37:18,214
    Console[524]
    setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.
    18/06/14 16:39:41,000
    kernel[0]
    process ScreensharingAge[517] caught causing excessive wakeups. EXC_RESOURCE supressed due to audio playback
    18/06/14 16:39:59,731
    com.apple.IconServicesAgent[249]
    main Failed to composit image for binding VariantBinding [0x3b1] flags: 0x8 binding: FileInfoBinding [0x2bb] - extension: log, UTI: com.apple.log, fileType: ????.
    18/06/14 16:39:59,732
    quicklookd[521]
    Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x403] flags: 0x8 binding: FileInfoBinding [0x303] - extension: log, UTI: com.apple.log, fileType: ???? request size:48 scale: 1
    18/06/14 16:41:13,236
    MainStage[448]
    NIAUCocoaApplicationEvents: unregistration (0x3bdf2ca0)
    18/06/14 16:41:15,842
    WindowServer[103]
    _CGXSetWindowBackgroundBlurRadius: Invalid window 0xffffffff
    18/06/14 16:41:15,849
    WindowServer[103]
    _CGXSetWindowBackgroundBlurRadius: Invalid window 0xffffffff
    18/06/14 16:41:27,386
    com.apple.SecurityServer[15]
    Session 100017 created
    18/06/14 16:41:27,403
    com.apple.SecurityServer[15]
    Killing auth hosts
    18/06/14 16:41:27,403
    com.apple.SecurityServer[15]
    Session 100016 destroyed
    18/06/14 16:41:27,544
    com.apple.IconServicesAgent[249]
    main Failed to composit image for binding VariantBinding [0x3b3] flags: 0x8 binding: FileInfoBinding [0x4b3] - extension: caf, UTI: com.apple.coreaudio-format, fileType: ????.
    18/06/14 16:41:27,544
    quicklookd[521]
    Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x803] flags: 0x8 binding: FileInfoBinding [0x703] - extension: caf, UTI: com.apple.coreaudio-format, fileType: ???? request size:16 scale: 1
    18/06/14 16:41:28,451
    Console[547]
    setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.
    18/06/14 16:41:41,991
    Console[547]
    Marker - 18 Jun 2014 16:41:41
    18/06/14 16:41:44,520
    Console[547]
    Marker - 18 Jun 2014 16:41:44
    18/06/14 16:42:05,640
    com.apple.launchd.peruser.501[174]
    (com.apple.PackageKit.InstallStatus) Throttling respawn: Will start in 9 seconds
    18/06/14 16:42:05,689
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,690
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,690
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,690
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,690
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,705
    com.apple.launchd.peruser.501[174]
    (com.apple.universalaccessAuthWarn[280]) Exited: Killed: 9
    18/06/14 16:42:05,705
    com.apple.launchd.peruser.501[174]
    (com.apple.AirPlayUIAgent[316]) Exited: Killed: 9
    18/06/14 16:42:05,707
    com.apple.launchd[1]
    (com.apple.ShareKitHelper[255]) Exited: Killed: 9
    18/06/14 16:42:05,709
    com.apple.launchd[1]
    (com.apple.internetaccounts[246]) Exited: Killed: 9
    18/06/14 16:42:05,722
    com.apple.launchd.peruser.501[174]
    ([0x0-0x1b01b].com.apple.AppleSpell[305]) Exited: Killed: 9
    18/06/14 16:42:05,723
    com.apple.launchd.peruser.501[174]
    (com.apple.gamed[215]) Exited: Killed: 9
    18/06/14 16:42:15,741
    loginwindow[68]
    ERROR | -[ApplicationManager quitPrivateProcesses] | Private process did not quit
    18/06/14 16:42:15,773
    sessionlogoutd[560]
    sessionlogoutd Launched
    18/06/14 16:42:15,779
    sessionlogoutd[560]
    DEAD_PROCESS: 68 console
    18/06/14 16:42:15,807
    airportd[90]
    _doAutoJoin: Already associated to “DuneLive2014”. Bailing on auto-join.
    18/06/14 16:42:15,812
    shutdown[561]
    reboot by _softwareupdate:
    18/06/14 16:42:15,813
    shutdown[561]
    SHUTDOWN_TIME: 1403102535 812435

  • Newbie here having input problems

    Hi, I'm still very new to Java and I'm basically learning it on my own right now. I think my current problem is with the way I'm reading in the input. Since my entire program right now is over 100 lines, I'll only post how I'm reading input in, and how I'm trying to use the input to continue program execution so that I can verify first if my input is correct before I move on to posting snippets of my program. Here's what I'm trying to do:
    //Begin code here
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String cmd="";
    while(//condition)
    //Print out input options here
    //Read input here
    cmd = in.readLine();
    cmd.trim();
    if((cmd == "A') || (cmd == "a"))
          //Process
    else if((cmd == "S") || (cmd == "s"))
            //Process
    else if((cmd == "B") || (cmd == "b"))
         //Process
    else
          System.out.println("Command not recongnized");
    }Based on that code above, is the input reading being done correctly? That's the idea of what I'm trying to do in my program, yet it always just says that it doesn't recognize the command. If need be I will start to post more of my code if this example is not sufficient enough. I'm sorry if this is another one of those cookie cutter answer questions, I've just become somewhat frustrated in the last few hours of trying to figure out why my program isn't working. Thank you for any help you may be able to provide.

    Shoot, sorry didn't read over my post before posting as I should have. The snippet:
    if((cmd == "A') || (cmd == "a"))
          //Process
    }Should read:
    if((cmd == "A") || (cmd == "a"))
    //Process
    Sorry about that.

  • Foreign language input problem

    Hi,
    I was using the "ITABC" that goes with Mac OSX to input Chinese.
    It worked pretty well until a few days ago. Now I cannot input Chinese into my computer anymore. Is there a way out?
    Thank you very much!

    . Now I cannot input Chinese into my computer anymore. Is there a way out?
    Could you explain what happens when you try to do that in more detail? Does it affect all apps?
    Try creating a new user and see if you have the same problem when logged into that.
    Another place you can ask is
    http://groups.google.com/group/chinesemac/

  • Language input problems

    Hi,
    My problems have had me gone frustrated before I update to Yosemite.
    First, when I'm using Chinese input, the first alphabet key isn't registered if I only tap click the input field. However, if I physically click the input field, it doesn't seem to be a problem.
    Secondly, while typing Chinese on Safari, half way changing the language from Chinese to English causing the keyboard not working to any further typing nor deleting typed word, but only highlight the typed word and re-type again can solve the problem in typing.
    Also, the Chinese bar display disorientatedly on screen.
    After updated to Yosemite, my macbook is getting more sluggish than before.
    Technical support in Malaysia is not satisfied. Problems still persist although I sent for software repair and update. Truly helpless
    Anyone could help?

    Problem like this has happened before updating to yosemite.
    Is it because of bugs?

  • Japanese text input problem.

    I created a small swing application which has a JTextField. I changed my keyboard input to Japanese(Hiragana) and entered some characters(. ,). They are coming as center aligned (But, they are coming as bottom aligned in notepad.). And I could confirm that the ideal alignment of them will be bottom. Could anyone help me?
    Note: I don't see the same problem if I set the font type to MS-Gothic or MS-Mincho. Is that the only option available.

    Sounds like your app is using a Traditional Chinese font because the app is running in a non-Japanese locale. Try running your app in Japanese locale, then it will use the correct font.
    HTH,
    Naoto

  • Database Adapter calling stored procedure with xmlDOM.DOMNODE input problem

    Hi all,
    I have been asked to do a POC on using SOA suite to generate a web-service for several database stored procedure. A few of them can be done without a fuss. But I am now stuck with a stored procedure that has input and output as xmlDOM.DOMNODE type.
    The stored procedure is very simple as below:
    procedure prc_accinquiry(request in xmlDOM.DOMNODE, response out xmlDOM.DOMNODE) is
    begin
    response := request;
    end prc_accinquiry;
    I get the following error
    Error while writing wsdl file C:/JDeveloper/mywork/ABSPOC/NetBanking/DomNodeTestDB.wsdl. Exception: WSDLException: faultCode=OTHER_ERROR: The wrapper procedure, PACK_TESTING$PRC_ACCINQUIRY, could not be found in the package, BPEL_DOMNODETESTDB, for the schema, MBTT
    Did I do something wrong? or DOMNODE is not part of supported datatype for DB Adapter stored procedure call from JDeveloper?
    The environment is SOA suite 11g 11.1.1.5 with Database 11 XE
    Thank you in advance,
    Jomphop
    Edited by: e-Teoy on 15/12/2011 19:49

    This problem can be resolved by granting execute permission on the object type to the caller. For example, if the stored procedure is in schema1 and the object type is in schema2 then you would connect as schema2 and execute
    SQL> grant execute on <object type> to schema1
    Referencing object types defined in other schemas is documented. This is the described method for accessing object types in other schemas.

  • SPDIF optical audio input problem

    having got over the audio stutter problem by upgrading to 10.4.5, i discover that there is a part 2 to the audio faults on the last g4 powerbooks.
    i've been trying to record from DAT via the spdif input, but after a random amount of time, the apps stop recording with a processor overload error, or worse, something very similar to the looping audio problem previously thought cured.
    If i try and record via line in analogue - there is no problem.
    I'm not really streesing the CPU - i've been forced to try and use simple recorders like quicktime and boom recorder , trying to keep it simple and reliable at this stage.
    any ideas?
    Powerbook G4 17" 1.67 DL 512mb   Mac OS X (10.4.5)  
    Powerbook G4 17" 1.67 DL 512 mb   Mac OS X (10.4.5)  

    But when I plug the output of the Radio Shack controller into the audio input of the iMac, it captures only one end (my end) of the conversation.
    Where did you previously connect that output, when it works properly?
    Is it coming over only on the left or right channel?
    You may be able to control the audio input more precisely using the +Audio Midi Setup+ utility (in the Utilities folder).

  • Built-in input problems

    I've had problems recording using my 'built-in input'. Does anyone know how I can check the system?

    What type of Mic or input device are you using? It needs a line mic. Could try a
    SMC RESET
    http://support.apple.com/kb/HT3964
    Shut down the computer.
    Unplug the computer's power cord and ALL peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    It is the 5 second timing that initiates the reset.

  • Keyboard input problem

    I have been building a Flex application using Flex 3 SDK Beta
    2. I have run into a very anoying problem and I can't seem to find
    a solution.
    I have several TextInput controls scattered around my
    application. I would love if these fields could accept special
    characters as input. This does not seem to work though. I cant
    enter danish special characters and I am having problems with most
    of the other latin special characters too. Does anyone have
    experience with this type of problem?
    EDIT: The plot thickens. It seems that this problem only
    applies to Flash Player 9 for Linux. I don't have this problem when
    running Flash Player 9 for Windows.

    I am using revision 48 of Flash Player 9.0 for Linux. It's
    seems a bit strange though, because I am using Ubuntu 6.06 at the
    office and I am running 7.04 at home. Settings seem to be the same
    (keyboard layout, locale and language) but I am running a newer
    version of Firefox at home and in a chrooted 32-bit environment as
    opposed to running a 32-bit version depending on some 32-bit
    libraries.
    I think I will have to search for a solution way outside the
    scope of Flash Player and the Flex SDK in this case.

  • 975x Sound Input problems

    I recently build a new computer using the MSI 975x mobo.  The only problem is, I seem to have some issues reguarding sound input.
    All the sound features seem to be working except for sound input.  In Sounds and Audio Devices, I have full access to sound output and all the different volume controls and advanced features.  All is well here.  But when I change it to sound input I run into my problem.  In the Master Volume Control on Input all volume controls except Master are greyed out to me and can not be changed.
    In properties, the advanced button for input (where you can find the useful feature of mic boost) is also greyed out.
    I am running the bios off the CD and the latest sound drivers.  Is this a known issue and does it have a fix?

    Quote from: Yoshiro on 31-August-06, 13:20:15
    I recently build a new computer using the MSI 975x mobo.  The only problem is, I seem to have some issues reguarding sound input.
    All the sound features seem to be working except for sound input.  In Sounds and Audio Devices, I have full access to sound output and all the different volume controls and advanced features.  All is well here.  But when I change it to sound input I run into my problem.  In the Master Volume Control on Input all volume controls except Master are greyed out to me and can not be changed.
    In properties, the advanced button for input (where you can find the useful feature of mic boost) is also greyed out.
    I am running the bios off the CD and the latest sound drivers.  Is this a known issue and does it have a fix?
    Are you wanting Sound Capture via CD/DVD or Mic? Are you running 6.1 or 8.1 Speaker setup?

  • Sound input problem

    I have a weird problem: in using a headset to make calls using Skype or iChat I cannot get the headset microphone to work, though the earphones work fine. Everything is plugged in correctly. Have selected the Line-In option in the Sound panel of System Preferences, but the Input Level indicator shows no sign of life. Have selected the same option in Skype. Have also tried a 2nd headset, with the same result. For reference the built-in microphone works fine.
    We have 2 iMacs here displaying the same symptoms; what's happening? The headset worked just fine prior to upgrading to OS 10.6.6; is there a link here?

    Having banged head against wall for too long I finally took my computer to Apple, where it was determined that there’s nothing wrong with the microphone port; however, the Radioshack headset does NOT work with the sound input device set to Line-in; input device MUST be set to internal microphone, after which the headset microphone AND the internal microphone will BOTH pick up sound simultaneously. Go figure.
    May have something to do with the audio-in port requiring an externally powered microphone as per users manual. From MacWorld: If you have experience with multimedia headsets and the Mac, you know that Apple equips Macs with a line-level audio-input jack—one that doesn’t work with microphone-level audio sources without amplification.

  • HP LP2475w HDMI input problem

    Hi, I have problem with digital connection to HP LP2475w. Onscreen there are lot of mistakes, artifact and image is shivery. 
    I have tested with two different Dell E6420 with HDMI output and MacBook Pro with Thunderbolt->HDMI. I had tested two different HDMI->DVI-D cables and three HDMI-HDMI cables. Problem was with any combinations notebook and cable. I have tested in two different location (no problem with electricity)
    The dots and lines are little mooving with change of image.
    With VGA connection it is working correctly, but I don´t like VGA. 
    I have found solution. With connecting through 2To1 Automatic HDMI Switch, everything is working correctly. Schema is notebook HDMI -> Automatic HDMI Switch -> Monitor HDMI or DVI-D input. It is pasive switch Digitus without power input (power from device through HDMI)
    Please help me, why it is not possible to connect notebook to HP LP2475w directly? I have firmware GIG 032.
    Thanks

    I'm having the exactly the same problem on my late 2008 macbook when connected to an 22" LG monitor. Every few minutes my screen goes black for a second or two and everything is fine right after. I went through some trouble shooting, *NO CHANGE*. I changed my mini display to VGA, *NO CHANGE*. I tested it out on a 19" hp monitor and EUREKA, all was well but something inside of me wasn't 100% convinced so I went back for an exchange. Tried the new one out on the LG and to my horror the same problem. It's definitely not the LG because I had it connected to a white macbook flawlessly. I called Apple up and they told me they were not aware of the problem. I'm hoping all that's needed is a software fix.

Maybe you are looking for

  • Newbie question: Select one row from table in PL/SQL

    Hi, I want to select one row from the table Employee where Emplyoyee Number is say 200. This is a simple SQL query, but I don't know the equivalent PL/SQL format. I will have 3 out params here - Id itself, Name, Salary. I will then have to populate a

  • Information on unknown rman backup file

    Hi, I have RMAN backup piece, and no information on this RMAN backup piece. Is there any why to get the this backup piece information like which Oracle Database version the backup was fired on, database SID, backup timing and such. Please help me out

  • IDVD changing 16:9 PAL to 4:3 when burning

    Hi there I have some 16:9 footage which I export from iMovie 08 as a Quicktime Movie using Apple Intermediate Codec as PAL 720 x 576. I bring that footage into a 16:9 iDVD PAL project. But when I save the project as a VIDEO_TS folder and open it in D

  • Some Aperture photos and projects missing from iLife Media Browser

    Good evening - having a little bit of trouble getting Aperture to work smoothly with my iLife media browser (i.e., inserting photos into Mail, Pages, Keynote, etc). I currently have 5699 photos and 131 projects in Aperture. But the iLife Media Browse

  • TextField Align ignores whitespaces

    Hi. I have a problem with text align in text field. Let's say that I have a text field with htmlText: "Text example          " - when I set align for this text field like this: var _format:TextFormat = new TextFormat(); _format.align= TextFormatAlign