This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 7041 - Refresh Recursively doesn't display status file correct and throws Exception
Summary: Refresh Recursively doesn't display status file correct and throws Exception
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscvs (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on: 7103
Blocks: 6857
  Show dependency tree
 
Reported: 2000-07-12 16:31 UTC by dmladek
Modified: 2003-01-12 12:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
fiel with deffined modules which makes problem to preces Refresh Recursively (2.86 KB, text/plain)
2001-07-20 20:39 UTC, dmladek
Details
ide.log file for CVS/Refresh Recursively null pointer error (45.85 KB, text/plain)
2003-01-10 19:58 UTC, rcwatson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2000-07-12 16:31:11 UTC
It's a pity but I can't give accurater information.

Sometimes it happens on our local pserver with testing repository "testrepo".
It's happend even with fresh build (no mounted cvs fs before).

I mounted new cvs:
pserver:cvs
user:me
repository:/testrepo

Checkout modules: allmoust all of them. (On Win, there problem to chckout them
all, on linux, it works fine)

But with this checkout modules if I run Refresh recursively, all of them
(folders which represent them) have a status [local] and there isn't another
way except manual Refresh to make them show real status (probably)[up-to-date]

If I don't perform refresh recursively and click on the node of this new cvs
fs, I recieve a notice that the commad faild.
And while you explere the nodes(folders) they become change status fro [local]
to another mainly to [up-to-date].
But during this activity SOMETIMEs the Exception is thrown: NullPointerException
and StringIndexOutOfBoundsException


Here you can see the output of a faild command(not run refresh recursievely).
Under it you'll find output of the Eception:

LIST:
LIST: org.netbeans.modules.vcs.cmdline.list.CvsListCommand.class cmd /X /C "set
CVSROOT=:pserver:&& cd /D C:\Space\dmladek\Build.Test\CVS\wpt0\\\.&& \"cvs\"
status -l"
LIST: cmd /X /C "set CVSROOT=:pserver:&& cd /D
C:\Space\dmladek\Build.Test\CVS\wpt0\\\.&& \"cvs\" status -l"
cvs status: didn't specify hostname in CVSROOT: :pserver:
cvs [status aborted]: Bad CVSROOT.
LIST: Command failed.

===========================================================




Wed Jul 12 15:29:41 GMT+02:00 2000java.lang.NullPointerException: null
java.lang.NullPointerException
	at
org.netbeans.modules.vcs.cmdline.list.CvsListRecursiveCommand.fillHashtable
(CvsListRecursiveCommand.java:439)
	at
org.netbeans.modules.vcs.cmdline.list.CvsListRecursiveCommand.listRecursively
(CvsListRecursiveCommand.java:568)
	at
org.netbeans.modules.vcs.cmdline.CommandLineVcsDirReaderRecursive.runClass
(CommandLineVcsDirReaderRecursive.java:114)
	at org.netbeans.modules.vcs.cmdline.CommandLineVcsDirReaderRecursive.run
(CommandLineVcsDirReaderRecursive.java:207)
	at java.lang.Thread.run(Thread.java:484)


Tue Jul 04 15:05:57 GMT+02:00 2000java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1503)
        at org.netbeans.modules.vcs.VcsDirContainer.addSubdirRecursive
(VcsDirContainer.java:139)
        at
org.netbeans.modules.vcs.cmdline.list.CvsListRecursiveCommand.fillHashtable
(CvsListRecursiveCommand.java:436)
        at
org.netbeans.modules.vcs.cmdline.list.CvsListRecursiveCommand.listRecursively
(CvsListRecursiveCommand.java:568)
        at
org.netbeans.modules.vcs.cmdline.CommandLineVcsDirReaderRecursive.runClass
(CommandLineVcsDirReaderRecursive.java:114)
        at org.netbeans.modules.vcs.cmdline.CommandLineVcsDirReaderRecursive.run
(CommandLineVcsDirReaderRecursive.java:207)
        at java.lang.Thread.run(Thread.java:484)
Comment 1 Martin Entlicher 2000-08-03 15:21:59 UTC
Partially fixed. Exeptions should not occure any more, correct statuses when one
directory structure is checked out into multiple destinations will be fixed
later.
Comment 2 dmladek 2000-08-03 15:43:59 UTC
for help to solve part "correct statuses" I attached deffined modules in which
is this problem.
----------------
I'm not going to split this bug in to 2 which one of them is fixed and second
one not.So,just FYI
This fixed part will be check in with Prioryty P2.
and the unfixed part and whole bug with P4.
Comment 3 dmladek 2000-08-03 15:44:59 UTC
Created attachment 73 [details]
fiel with deffined modules which makes problem to preces Refresh Recursively
Comment 4 dmladek 2001-02-05 12:57:59 UTC
Automaticaly changed Version from "Other" to "Dev"
Version "Other" is nonsence
Comment 5 dmladek 2001-05-29 09:51:09 UTC
this bug depended on issue #7041
It is fixed completly now.
verified on [NBdev-198]
Comment 6 rcwatson 2003-01-10 19:58:24 UTC
Created attachment 8532 [details]
ide.log file for CVS/Refresh Recursively null pointer error
Comment 7 rcwatson 2003-01-10 20:02:22 UTC
See attached ide.log.  Whenever i try to use the CVS > 
Refresh Recursively command, I get a java.lang.NullPointer 
exception.

Version dropdown in your bug reporting form only goes up 
to 3.3dev, but I'm using Netbeans 3.4.
Comment 8 Martin Entlicher 2003-01-10 20:30:03 UTC
This bug is quite old and was already fixed.

To rcwatson: your bug is different and is almost certainly caused by a
corrupted CVS profile. This is apparent from the preceding:
org.netbeans.modules.vcscore.util.VariableInputFormatException:
Unrecognized input component '$[? FILES_IS_FOLDER] [ASK_FOR'
It seems, that CvsListRecursiveCommand tries to load an nonexistent
command. It should probably print some error instead of throwing NPE,
but the problem is in the corrupted CVS profile.
Please unmount the affected filesystem and mount it again with the
original CVS profile. This should fix the problem.

The 3.4 version is not available in the dropdown intentionally. vcscvs
module is not a part of NetBeans 3.4 distribution. You're using
vcsgeneric module with the CVS profile instead.
Comment 9 Jiri Kovalsky 2003-01-12 12:09:54 UTC
Agreed. Verified as already fixed.