PreviousNextTracker indexSee it online !

(119/211) 3775 - FSB roots:/ node (win xp) NPE (lots of network drives)

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:01 Assigned
Priority 5 Labels Windows Specific
Status open Group severe bug
Resolution None

Comments

2013-01-27 23:06:29
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:41
malmeje

Hi,

Sure, I'll accept the patch.

Thank you very much.

2013-01-28 18:57:12
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:58
ezust

oops. I meant to say this bug report is \*INCOMPLETE\*

2013-01-29 16:50:11
malmeje

What kind of information do you need to make the report complete?

2013-01-29 17:08:15
ezust

oops. maybe it is enough information. I did not try to reproduce it on windows yet.

2013-01-29 17:08:15
ezust

- **summary**: Root node in file browser --> Root node in file browser (Windows XP)

2013-02-12 07:01:39
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:45
ezust

- **summary**: Root node in file browser (Windows XP) --> NPE with invlid filter in the FSB filter field.

2013-02-12 07:20:45
ezust

What is in the contents of your "Filter:" field in the file system browser?

2013-02-13 11:52:35
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:51
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-13 21:57:51
ezust

- **summary**: NPE with invlid filter in the FSB filter field. --> File System Browser roots:/ node (windows) NPE

2013-02-14 13:09:34
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.

2013-07-04 16:00:10
malmeje

Hi,

I have some information to add to this bug report.

I could reproduce and refine the analysis of the trouble. As already mentioned, when I click the "roots:" item in the file browser window, the system generates an error and the window freezes. The file system content never appears.

But if I move the vertical scroll bar on the right side of the file system content after a few minutes, the "c:\" item appears. Then if I click the (+) check box, the full file system content is correctly displayed. I guess this is more a display problem than a file system reading problem.

I hope this helps.

2013-07-04 16:10:52
ezust

Just guessing now: perhaps to reproduce, one needs a certain number of mapped network drives to be unreachable at the time one tries to browse roots:/ ?

Is it possible to browse each of your mapped network drives with the internet exploder?

2013-07-04 16:10:52
ezust

- **summary**: File System Browser roots:/ node (windows) NPE --> FSB roots:/ node (windows) NPE (lots of network drives)

2013-07-04 16:14:02
ezust

Has this ever happened from Windows 7 or is this Windows XP only?

2013-07-04 16:17:05
malmeje

Except the CD drive (d:\\), I can browse all drives. It happens on Windows XP. Since I don't have a Windows 7 workstation, I don't know whether the problem happens there too.

2013-07-04 16:21:38
ezust

- **summary**: FSB roots:/ node (windows) NPE (lots of network drives) --> FSB roots:/ node (win xp) NPE (lots of network drives)

2013-07-04 16:44:38
ezust

If you put disk in the CD drive, does it still happen?
Do any of the network drives have an empty label?

2013-07-05 07:02:34
malmeje

I still have the problem when there is a CD in the drive. All drives have a label.

2013-08-01 09:58:29
jmmalmedy

Just for information, I still have the problem with the new jEdit 5.1.

2013-08-01 09:59:29
malmeje

Just for information, I still have the problem with the new jEdit 5.1.

2013-10-07 21:55:38
ezust

- **labels**: 102674 --> Windows Specific