PreviousNextTracker indexSee it online !

(190/215) 3599336 - File System Browser roots:/ node (windows) NPE

I'm using jEdit 5.0.0 on Windows XP SP3.

In the file browser (or file opening window), when I select the root node, "loading" is displayed but the file list is never refreshed.

The activity logs contains the following error report:

18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: Exception in thread "AWT-EventQueue-0"
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: java.lang.NullPointerException
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.regex.Matcher.getTextLength(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.regex.Matcher.reset(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.regex.Matcher.(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.regex.Pattern.matcher(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.GlobVFSFileFilter.accept(GlobVFSFileFilter.java:65)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.io.GlobVFSFileFilter.accept(GlobVFSFileFilter.java:54)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.browser.VFSBrowser.directoryLoaded(VFSBrowser.java:1380)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.browser.BrowserView$2.run(BrowserView.java:189)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.event.InvocationEvent.dispatch(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.access$000(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$1.run(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$1.run(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessController.doPrivileged(Native Method)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(Unknown Source)

There is a thread in the forum about this problem:
http://community.jedit.org/?q=node/view/37802

Submitted malmeje - 2013-01-03 - 15:54:01z Assigned nobody
Priority 5 Category virtual file systems
Status Open Group severe bug
Resolution None Visibility No

Comments

2013-01-27 - 23:06:29z
alaa-k
Hi, I would like to work in this bug. would you accept the patch later when I solve it?
2013-01-28 - 16:59:41z
malmeje
Hi,

Sure, I'll accept the patch.

Thank you very much.
2013-01-28 - 18:57:12z
ezust
Anyone can submit a patch to fix any bug at any time. Please open a separate ticket in jedit-patches tracker.
You do not need to ask permission to work on something. And you do not need to be a member of the project.
An active core developers is responsible for reviewing and accepting it, not usually the reporter.
IMHO, this bug report is complete because it does not contain enough information to reproduce.
2013-01-28 - 18:57:58z
ezust
oops. I meant to say this bug report is *INCOMPLETE*
2013-01-29 - 16:50:11z
malmeje
What kind of information do you need to make the report complete?
2013-01-29 - 17:08:15z
ezust
oops. maybe it is enough information. I did not try to reproduce it on windows yet.
2013-02-12 - 07:01:39z
ezust
I am unable to reproduce this on Windows with jEdit 5.1pre1 , Windows7, and Sun/Oracle Java 6. I don't have WIndows XP.

Please attach a complete activity log when it happens as an attachment. I suspect it is just taking a long time to get all of your drives.
2013-02-12 - 07:20:45z
ezust
What is in the contents of your "Filter:" field in the file system browser?
2013-02-13 - 11:52:35z
malmeje
The activity log (already pasted in the bug report) mentions clearly an exception. It is not just taking a long time. The file list remains empty even after an hour.

I have tried with and without filter and got the same problem.

The new summary you gave to this bug is wrong.
2013-02-13 - 21:57:51z
ezust
It seems to be somehow related to a glob filter. So I am surprised you get the same thing with and without the filter checkbox checked.
ok, I changed the subject back. But I don't know how to reproduce this issue.
2013-02-14 - 13:09:34z
malmeje
I just made a new test. I confirm you again that I get this problem with or without filter. And the file list is never displayed even after a very long time.

I understand this problem is not easy to reproduce.

This problem happens on my corporate computer and on my colleague's computers too. I guess there is a problem with the mapped network drives (a lot). The problem happens only when I attempt to display the content of the root node. If I self introduce something in the path field (like "c:\", "w:\", ...) the file list is correctly displayed.

I have no problem on my personal computers where some network drives are mapped too.

Attachments