Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8039925

[macosx] An uncaught exception was raised when input to JPasswordField with KOTOERI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 9
    • 7u45, 8, 9
    • client-libs

      FULL PRODUCT VERSION :
      java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      OSX 10.9.1

      A DESCRIPTION OF THE PROBLEM :
      When I input any character to JPasswordField with Japanese IME KOTOERI on, JVM always show error.
      With KOTOERI off, no error found.

      REGRESSION. Last worked in version 7u45

      ADDITIONAL REGRESSION INFORMATION:
      I am sorry. About regression info, I don't know.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run sample code. Input any character with KOTOERI on.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No error.
      ACTUAL -
      An unexpected error occurred.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      2013-12-19 19:48:39.017 java[495:507] An uncaught exception was raised
      2013-12-19 19:48:39.019 java[495:507] java.lang.NullPointerException
      2013-12-19 19:48:39.033 java[495:507] (
      0 CoreFoundation 0x00007fff912c541c __exceptionPreprocess + 172
      1 libobjc.A.dylib 0x00007fff8d791e75 objc_exception_throw + 43
      2 CoreFoundation 0x00007fff912c4fc9 -[NSException raise] + 9
      3 JavaNativeFoundation 0x0000000112e2c4c1 JNFCallObjectMethod + 230
      4 liblwawt.dylib 0x00000001139aa913 -[AWTView attributedSubstringForProposedRange:actualRange:] + 78
      5 AppKit 0x00007fff8a26781d -[NSTextInputContext handleTSMEvent:] + 3476
      6 AppKit 0x00007fff8a266a65 _NSTSMEventHandler + 205
      7 HIToolbox 0x00007fff91ee66d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892
      8 HIToolbox 0x00007fff91ee5c87 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385
      9 HIToolbox 0x00007fff91ef9d90 SendEventToEventTarget + 40
      10 HIToolbox 0x00007fff91f3b0ed SendTSMEvent + 33
      11 HIToolbox 0x00007fff920e871f SendTextInputEvent + 1028
      12 HIToolbox 0x00007fff921338ec -[IMKInputSession _copyUniCharsForRange:intoBuffer:ofLength:] + 268
      13 HIToolbox 0x00007fff921339bb -[IMKInputSession _coreAttributesFromRange:whichAttributes:actualRange:] + 137
      14 HIToolbox 0x00007fff92134aac -[IMKInputSession attributedSubstringFromRange:] + 89
      15 CoreFoundation 0x00007fff911b0dec __invoking___ + 140
      16 CoreFoundation 0x00007fff911b0c54 -[NSInvocation invoke] + 308
      17 CoreFoundation 0x00007fff912537a6 -[NSInvocation invokeWithTarget:] + 54
      18 CoreFoundation 0x00007fff91223384 ___forwarding___ + 452
      19 CoreFoundation 0x00007fff91223138 _CF_forwarding_prep_0 + 120
      20 CoreFoundation 0x00007fff911b0dec __invoking___ + 140
      21 CoreFoundation 0x00007fff911b0c54 -[NSInvocation invoke] + 308
      22 Foundation 0x00007fff8c215c67 -[NSConnection dispatchInvocation:] + 135
      23 Foundation 0x00007fff8c21592d -[NSConnection handleRequest:sequence:] + 1434
      24 Foundation 0x00007fff8c1bccf0 -[NSConnection handlePortCoder:] + 652
      25 Foundation 0x00007fff8c1bc628 -[NSConnection dispatchWithComponents:] + 50
      26 Foundation 0x00007fff8c1a0ed8 __NSFireMachPort + 257
      27 CoreFoundation 0x00007fff911f6d04 __CFMachPortPerform + 388
      28 CoreFoundation 0x00007fff911f6b69 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
      29 CoreFoundation 0x00007fff911f6ade __CFRunLoopDoSource1 + 478
      30 CoreFoundation 0x00007fff911e7bd6 __CFRunLoopRun + 1830
      31 CoreFoundation 0x00007fff911e7275 CFRunLoopRunSpecific + 309
      32 Foundation 0x00007fff8c1b900e -[NSConnection sendInvocation:internal:] + 1965
      33 CoreFoundation 0x00007fff91223384 ___forwarding___ + 452
      34 CoreFoundation 0x00007fff91223138 _CF_forwarding_prep_0 + 120
      35 HIToolbox 0x00007fff9212fb8d -[IMKInputSession handleEvent:] + 946
      36 HIToolbox 0x00007fff920f32e8 IMKInputSessionProcessEventRef + 45
      37 HIToolbox 0x00007fff920f28aa InputMethodInstanceProcessEventRef + 100
      38 HIToolbox 0x00007fff920e7e6f TSMEventToInputMethod + 131
      39 HIToolbox 0x00007fff91f3a87c TSMKeyEvent + 283
      40 HIToolbox 0x00007fff91f27678 TSMProcessRawKeyEvent + 3584
      41 AppKit 0x00007fff8a2662b0 -[NSTextInputContext handleEvent:] + 731
      42 AppKit 0x00007fff8a245b5d -[NSView interpretKeyEvents:] + 180
      43 liblwawt.dylib 0x00000001139a9880 -[AWTView keyDown:] + 85
      44 AppKit 0x00007fff8a21281b -[NSWindow sendEvent:] + 1843
      45 liblwawt.dylib 0x00000001139ad2f5 -[AWTWindow_Normal sendEvent:] + 86
      46 AppKit 0x00007fff8a1b3ca2 -[NSApplication sendEvent:] + 3395
      47 libosxapp.dylib 0x0000000113a4566f -[NSApplicationAWT sendEvent:] + 179
      48 AppKit 0x00007fff8a003a29 -[NSApplication run] + 646
      49 libosxapp.dylib 0x0000000113a45557 +[NSApplicationAWT runAWTLoopWithApp:] + 156
      50 liblwawt.dylib 0x000000011399dba9 -[AWTStarter starter:] + 873
      51 Foundation 0x00007fff8c19a0de __NSThreadPerformPerform + 229
      52 CoreFoundation 0x00007fff911f68f1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      53 CoreFoundation 0x00007fff911e8062 __CFRunLoopDoSources0 + 242
      54 CoreFoundation 0x00007fff911e77ef __CFRunLoopRun + 831
      55 CoreFoundation 0x00007fff911e7275 CFRunLoopRunSpecific + 309
      56 java 0x0000000105b143b0 CreateExecutionEnvironment + 871
      57 java 0x0000000105b0eb5c JLI_Launch + 1952
      58 java 0x0000000105b1470d main + 101
      59 java 0x0000000105b0e3b4 start + 52
      60 ??? 0x0000000000000007 0x0 + 7
      )

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package test;

      import java.awt.BorderLayout;
      import javax.swing.JFrame;
      import javax.swing.JPanel;
      import javax.swing.JPasswordField;

      public class Test {

          public static void main(String[] args) {
              new Test().start();
          }
          
          public void start() {
              
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              
              JPasswordField fld = new JPasswordField(10);
              panel.add(fld);
              
              frame.setContentPane(panel);
              frame.pack();
              frame.setVisible(true);
          }
          
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I don't know.

            aniyogi Avik Niyogi (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: