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

Hotspot Error when running EncryptedChatDemo with Devanagari Input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.1
    • client-libs
    • 2d
    • x86
    • windows_2000



      Name: jk109818 Date: 07/15/2002


      FULL PRODUCT VERSION :
      C:\>java -version
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
      Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)


      FULL OPERATING SYSTEM VERSION : Win 2000 proffessional
      Edition


      A DESCRIPTION OF THE PROBLEM :
      I was working with the INdic Fonts that are supported by
      the IMF of JDK 1.4.1-beta version.
      I used an demo application of
      https://www.sun.com/developers/edu/camps/demos/encryptedchat
      to test whether I will be able to activate the Indic font
      for the chat. ANd as soon as i wrote few character in the
      text area, it is showing the exception.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.download the demo from
      https://www.sun.com/developers/edu/camps/demos/encryptedchat
      2. set the env using setenv
      3. start the server
      4. start the client
      5. right click the title bar and select the Input method
      6. select Devanagari Input
      7. Try to type something in text area


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Able to type in devanagari

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D1B3669
      Function=Java_sun_awt_font_NativeFontWrapper_registerFonts+0x14A0
      Library=C:\j2sdk1.4.1\jre\bin\fontmanager.dll

      Current Java thread:
      at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
      - locked <06B5AEF8> (a java.lang.Class)
      at sun.java2d.SunGraphicsEnvironment.addPathFonts
      (SunGraphicsEnvironment.java:736)
      at sun.java2d.SunGraphicsEnvironment.registerFonts
      (SunGraphicsEnvironment.java:587)
      at sun.java2d.SunGraphicsEnvironment.access$100
      (SunGraphicsEnvironment.java:49)
      at sun.java2d.SunGraphicsEnvironment$2.run
      (SunGraphicsEnvironment.java:209)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.java2d.SunGraphicsEnvironment.loadFonts
      (SunGraphicsEnvironment.java:203)
      - locked <02EB0788> (a sun.awt.Win32GraphicsEnvironment)
      at sun.java2d.SunGraphicsEnvironment.getAllFonts
      (SunGraphicsEnvironment.java:282)
      at sun.awt.font.FontResolver.<init>(FontResolver.java:46)
      at sun.awt.font.FontResolver.getInstance(FontResolver.java:150)
      at java.awt.font.StyledParagraph.addFonts(StyledParagraph.java:395)
      at java.awt.font.StyledParagraph.<init>(StyledParagraph.java:92)
      at java.awt.font.TextMeasurer.initAll(TextMeasurer.java:208)
      at java.awt.font.TextMeasurer.<init>(TextMeasurer.java:149)
      at java.awt.font.LineBreakMeasurer.<init>(LineBreakMeasurer.java:292)
      at javax.swing.text.TextLayoutStrategy.sync(TextLayoutStrategy.java:310)
      at javax.swing.text.TextLayoutStrategy.insertUpdate
      (TextLayoutStrategy.java:52)
      at javax.swing.text.FlowView.loadChildren(FlowView.java:124)
      at javax.swing.text.CompositeView.setParent(CompositeView.java:122)
      at javax.swing.plaf.basic.BasicTextUI$RootView.setView
      (BasicTextUI.java:1213)
      at javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:592)
      at javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:580)
      at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate
      (BasicTextUI.java:1713)
      at javax.swing.text.AbstractDocument.fireInsertUpdate
      (AbstractDocument.java:184)
      at javax.swing.text.AbstractDocument.handleInsertString
      (AbstractDocument.java:749)
      at javax.swing.text.AbstractDocument.insertString
      (AbstractDocument.java:706)
      at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
      at javax.swing.text.JTextComponent.replaceInputMethodText
      (JTextComponent.java:3477)
      at javax.swing.text.JTextComponent.processInputMethodEvent
      (JTextComponent.java:3225)
      at java.awt.Component.processEvent(Component.java:4907)
      at java.awt.Container.processEvent(Container.java:1566)
      at java.awt.Component.dispatchEventImpl(Component.java:3598)
      at java.awt.Container.dispatchEventImpl(Container.java:1623)
      at java.awt.Component.dispatchEvent(Component.java:3439)
      at sun.awt.im.InputMethodContext.dispatchInputMethodEvent
      (InputMethodContext.java:104)
      at
      com.sun.inputmethods.internal.indicim.IndicInputMethodImpl.handleKeyTyped
      (IndicInputMethodImpl.java:280)
      at com.sun.inputmethods.internal.indicim.IndicInputMethod.dispatchEvent
      (IndicInputMethod.java:232)
      at sun.awt.im.InputContext.dispatchEvent(InputContext.java:236)
      at sun.awt.im.InputMethodContext.dispatchEvent
      (InputMethodContext.java:180)
      at java.awt.Component.dispatchEventImpl(Component.java:3548)
      at java.awt.Container.dispatchEventImpl(Container.java:1623)
      at java.awt.Component.dispatchEvent(Component.java:3439)
      at java.awt.KeyboardFocusManager.redispatchEvent
      (KeyboardFocusManager.java:1688)
      at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent
      (DefaultKeyboardFocusManager.java:593)
      at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent
      (DefaultKeyboardFocusManager.java:765)
      at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions
      (DefaultKeyboardFocusManager.java:698)
      at java.awt.DefaultKeyboardFocusManager.dispatchEvent
      (DefaultKeyboardFocusManager.java:559)
      at java.awt.Component.dispatchEventImpl(Component.java:3468)
      at java.awt.Container.dispatchEventImpl(Container.java:1623)
      at java.awt.Window.dispatchEventImpl(Window.java:1585)
      at java.awt.Component.dispatchEvent(Component.java:3439)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy
      (EventDispatchThread.java:197)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy
      (EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      Dynamic libraries:
      0x00400000 - 0x00406000 C:\j2sdk1.4.1\bin\java.exe
      0x77F80000 - 0x77FFB000 C:\WINNT\System32\ntdll.dll
      0x77DB0000 - 0x77E0B000 C:\WINNT\system32\ADVAPI32.dll
      0x77E80000 - 0x77F35000 C:\WINNT\system32\KERNEL32.DLL
      0x77D40000 - 0x77DB0000 C:\WINNT\system32\RPCRT4.DLL
      0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
      0x6D330000 - 0x6D45C000 C:\j2sdk1.4.1\jre\bin\client\jvm.dll
      0x77E10000 - 0x77E74000 C:\WINNT\system32\USER32.dll
      0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
      0x6CA60000 - 0x6CA68000 C:\WINNT\System32\LPK.DLL
      0x66650000 - 0x666A4000 C:\WINNT\System32\USP10.dll
      0x6D1D0000 - 0x6D1D7000 C:\j2sdk1.4.1\jre\bin\hpi.dll
      0x6D300000 - 0x6D30D000 C:\j2sdk1.4.1\jre\bin\verify.dll
      0x6D210000 - 0x6D229000 C:\j2sdk1.4.1\jre\bin\java.dll
      0x6D320000 - 0x6D32D000 C:\j2sdk1.4.1\jre\bin\zip.dll
      0x6D000000 - 0x6D0FA000 C:\j2sdk1.4.1\jre\bin\awt.dll
      0x77800000 - 0x7781D000 C:\WINNT\System32\WINSPOOL.DRV
      0x75E60000 - 0x75E7A000 C:\WINNT\System32\IMM32.dll
      0x77A50000 - 0x77B46000 C:\WINNT\system32\ole32.dll
      0x6D180000 - 0x6D1D0000 C:\j2sdk1.4.1\jre\bin\fontmanager.dll
      0x6E420000 - 0x6E426000 C:\WINNT\System32\INDICDLL.dll
      0x51000000 - 0x51044000 C:\WINNT\System32\ddraw.dll
      0x728A0000 - 0x728A6000 C:\WINNT\System32\DCIMAN32.dll
      0x72D90000 - 0x72E03000 C:\WINNT\System32\D3DIM.DLL
      0x10000000 - 0x10008000 C:\PROGRA~1\MOUSEW~1\SYSTEM\LgMousHk.dll
      0x7CA00000 - 0x7CA23000 C:\WINNT\System32\rsaenh.dll
      0x77C10000 - 0x77C6D000 C:\WINNT\System32\USERENV.dll
      0x77440000 - 0x774B5000 C:\WINNT\system32\CRYPT32.dll
      0x77430000 - 0x77440000 C:\WINNT\system32\MSASN1.DLL
      0x782F0000 - 0x78532000 C:\WINNT\system32\shell32.dll
      0x70BD0000 - 0x70C34000 C:\WINNT\system32\SHLWAPI.DLL
      0x71780000 - 0x7180A000 C:\WINNT\system32\COMCTL32.DLL
      0x75170000 - 0x751BF000 C:\WINNT\System32\netapi32.dll
      0x77BE0000 - 0x77BEF000 C:\WINNT\System32\SECUR32.DLL
      0x751C0000 - 0x751C6000 C:\WINNT\System32\NETRAP.DLL
      0x75150000 - 0x75160000 C:\WINNT\System32\SAMLIB.DLL
      0x75030000 - 0x75043000 C:\WINNT\System32\WS2_32.DLL
      0x75020000 - 0x75028000 C:\WINNT\System32\WS2HELP.DLL
      0x77950000 - 0x77979000 C:\WINNT\system32\WLDAP32.DLL
      0x77980000 - 0x779A4000 C:\WINNT\System32\DNSAPI.DLL
      0x75050000 - 0x75058000 C:\WINNT\System32\WSOCK32.DLL
      0x6D2D0000 - 0x6D2DE000 C:\j2sdk1.4.1\jre\bin\net.dll
      0x785C0000 - 0x785CC000 C:\WINNT\System32\rnr20.dll
      0x77340000 - 0x77353000 C:\WINNT\System32\iphlpapi.dll
      0x77520000 - 0x77525000 C:\WINNT\System32\ICMP.DLL
      0x77320000 - 0x77337000 C:\WINNT\System32\MPRAPI.DLL
      0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.DLL
      0x773B0000 - 0x773DE000 C:\WINNT\System32\ACTIVEDS.DLL
      0x77380000 - 0x773A2000 C:\WINNT\System32\ADSLDPC.DLL
      0x77830000 - 0x7783E000 C:\WINNT\System32\RTUTILS.DLL
      0x77880000 - 0x7790D000 C:\WINNT\System32\SETUPAPI.DLL
      0x774E0000 - 0x77512000 C:\WINNT\System32\RASAPI32.DLL
      0x774C0000 - 0x774D1000 C:\WINNT\System32\RASMAN.DLL
      0x77530000 - 0x77552000 C:\WINNT\System32\TAPI32.DLL
      0x77360000 - 0x77379000 C:\WINNT\System32\DHCPCSVC.DLL
      0x775A0000 - 0x77625000 C:\WINNT\System32\CLBCATQ.DLL
      0x777E0000 - 0x777E8000 C:\WINNT\System32\winrnr.dll
      0x777F0000 - 0x777F5000 C:\WINNT\System32\rasadhlp.dll
      0x74FD0000 - 0x74FEF000 C:\WINNT\system32\msafd.dll
      0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
      0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
      0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
      0x690A0000 - 0x690AB000 C:\WINNT\System32\PSAPI.DLL

      Local Time = Fri Jul 13 00:17:31 2001
      Elapsed Time = 52
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.1-beta-b14 mixed mode)
      #


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      download it from
      https://www.sun.com/developers/edu/camps/demos/encryptedchat
      ---------- END SOURCE ----------
      (Review ID: 159273)
      ======================================================================

            Unassigned Unassigned
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: