#2988 AutoDetection.getDetectedEncoding: exception from help searc

closed-works-for-me
nobody
None
5
2007-11-23
2007-11-21
Alan Ezust
No

Using: jEdit 4.3pre12 (SVN)

Steps to reproduce: Help - go to the "Search" tab of the sidebar, and try to search for something.

5:18:24 PM [error] AWT-EventQueue-0: java.lang.Exception
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.AutoDetection.getDetectedEncoding(AutoDetection.java:119)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.AutoDetection$Result.<init>(AutoDetection.java:165)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.MiscUtilities.isBinary(MiscUtilities.java:741)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.VFSFile.isBinary(VFSFile.java:297)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.VFS.listFiles(VFS.java:1124)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.VFS._listDirectory(VFS.java:714)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.VFS._listDirectory(VFS.java:679)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.VFS._listDirectory(VFS.java:646)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.help.HelpIndex.indexDirectory(HelpIndex.java:128)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.help.HelpIndex.indexEditorHelp(HelpIndex.java:94)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.help.HelpSearchPanel.getHelpIndex(HelpSearchPanel.java:73)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.help.HelpSearchPanel.access$000(HelpSearchPanel.java:36)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.help.HelpSearchPanel$ActionHandler.actionPerformed(HelpSearchPanel.java:196)
5:18:24 PM [error] AWT-EventQueue-0: at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.gui.HistoryTextField.fireActionPerformed(HistoryTextField.java:226)
5:18:24 PM [error] AWT-EventQueue-0: at org.gjt.sp.jedit.gui.HistoryTextField.processKeyEvent(HistoryTextField.java:247)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Component.processEvent(Component.java:5815)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Container.processEvent(Container.java:2058)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Component.dispatchEventImpl(Component.java:4410)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Container.dispatchEventImpl(Container.java:2116)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Component.dispatchEvent(Component.java:4240)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Component.dispatchEventImpl(Component.java:4282)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Container.dispatchEventImpl(Container.java:2116)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Window.dispatchEventImpl(Window.java:2429)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.Component.dispatchEvent(Component.java:4240)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
5:18:24 PM [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Discussion

  • Logged In: YES
    user_id=1483238
    Originator: NO

    I tried to reproduce this, but I couldn't. Could you look into Activity
    Log to see what file isBinary() tried to test? It might be an additional
    doc file from some plugin.

     
  • Alan Ezust
    Alan Ezust
    2007-11-23

    Logged In: YES
    user_id=935841
    Originator: YES

    Yes, I thought that, but I can't reproduce it at the moment either. I will reopen / post more info when I can reproduce it again.

     
  • Alan Ezust
    Alan Ezust
    2007-11-23

    • priority: 8 --> 5
    • status: open --> closed-works-for-me