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 10727 - Unable to mount CVS filesystem (IllegalArgumentException)
Summary: Unable to mount CVS filesystem (IllegalArgumentException)
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscvs (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-27 15:04 UTC by Todd Breiholz
Modified: 2002-07-19 15:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Breiholz 2001-03-27 15:04:42 UTC
I am trying to mount a CVS filesystem and receive an IllegalArgumentException 
immediately upon selecting the Mount CVS... menu item. 

I have tried this with 3.2 builds 11, 12 and 13 and get the same exception on 
each one. Build 9 seems OK (I did not try build 10).

Here is my ide.log:

>Log Session: Tuesday, March 27, 2001 8:57:41 AM CST
>System Info: 
  Product Version       = NetBeans IDE, Release 3.2 beta (Build 13)
  IDE Versioning        = IDE/1 spec=1.2.1 impl=13
  Operating System      = Windows NT version 4.0 running on x86
  Java; VM; Vendor      = 1.3.0; Java HotSpot(TM) Client VM 1.3.0-C; Sun 
Microsystems Inc.
  Java Home             = C:\jdk1.3\jre
  System Locale         = en_US
  Home Dir; Current Dir = C:\WINNT\Profiles\tbreihol; D:\nbdev\32b13
\netbeans\bin
  IDE Install; User Dir = D:\nbdev\32b13\netbeans; c:\users\todd\nb32
  CLASSPATH             = D:\nbdev\32b13\netbeans\lib\patches\openide-
compat.jar;D:\nbdev\32b13\netbeans\lib\core.jar;D:\nbdev\32b13
\netbeans\lib\openide-fs.jar;D:\nbdev\32b13\netbeans\lib\openide-
nodes.jar;D:\nbdev\32b13\netbeans\lib\openide-util.jar;D:\nbdev\32b13
\netbeans\lib\openide.jar;D:\nbdev\32b13
\netbeans\lib\ext\jaxp.jar;D:\nbdev\32b13\netbeans\lib\ext\jh.jar;D:\nbdev\32b13
\netbeans\lib\ext\jpython.jar;D:\nbdev\32b13
\netbeans\lib\ext\parser.jar;D:\nbdev\32b13
\netbeans\lib\ext\regexp.jar;D:\nbdev\32b13\netbeans\lib\ext\rmi-
ext.jar;D:\nbdev\32b13\netbeans\lib\ext\sax2.jar;D:\nbdev\32b13
\netbeans\lib\ext\servlet.jar;D:\nbdev\32b13
\netbeans\lib\ext\xerces.jar;C:\jdk1.3\lib\dt.jar;C:\jdk1.3\lib\tools.jar
-------------------------------------------------------------------------------
[INFO] Loaded modules: org.netbeans.core/1 (1.0/unspec); 
org.apache.tools.ant.module/2 (2.2.1/13); org.netbeans.modules.autoupdate/1 
(1.6.1/13); org.netbeans.modules.clazz/1 (1.6.1/13); 
org.netbeans.modules.debugger.core/2 (2.0.1/13); org.netbeans.modules.applet/1 
(1.6.1/13); org.netbeans.modules.debugger.debug/1 (1.8.1/13); 
org.netbeans.modules.debugger.jpda/1 (1.8.1/13); org.netbeans.modules.editor/1 
(1.7.1/13); org.netbeans.modules.html/1 (1.7.1/13); 
org.netbeans.modules.httpserver/1 (1.6.1/13); org.netbeans.modules.extbrowser/1 
(0.2.1/13); org.netbeans.modules.icebrowser/1 (1.6.1/13); 
org.netbeans.modules.image/1 (1.6.1/13); org.netbeans.modules.jarpackager/2 
(1.6.1/13); org.netbeans.modules.apisupport.lite/1 (0.1.1/13); 
org.netbeans.modules.java/1 (1.6.1/13); org.netbeans.modules.beans/1 
(1.6.1/13); org.netbeans.modules.jndi/1 (1.3.1/13); 
org.netbeans.modules.objectbrowser/1 (1.6.1/13); 
org.netbeans.modules.projects/1 (1.6.1/13); org.netbeans.modules.properties/1 
(1.6.1/13); org.netbeans.modules.i18n/1 (1.7/13); 
org.netbeans.modules.properties.syntax/1 (1.6.1/13); 
org.netbeans.modules.text/1 (1.6.1/13); org.netbeans.modules.usersguide/1 
(1.7.1/13); org.netbeans.modules.web.core/1 (1.2.1/13); 
org.netbeans.modules.web.core.syntax/1 (1.2.1/13); org.openidex.util/1 
(1.7.1/13); org.netbeans.modules.form/2 (1.6.1/13); 
org.netbeans.modules.i18n.form/2 (1.7/13); org.netbeans.modules.javadoc/1 
(1.6.1/13); org.netbeans.modules.scripting/1 (1.3.1/13); 
org.netbeans.modules.utilities/1 (1.6.1/13); org.netbeans.modules.rmi/1 
(1.3.1/13); org.netbeans.modules.vcscore/1 (1.4.1/13); 
org.netbeans.modules.cvsclient/1 (1.3.1/13); 
org.netbeans.modules.vcs.advanced/1 (1.4.1/13); 
org.netbeans.modules.vcs.cmdline/1 (1.7.1/13)
[org.netbeans.core.modules] *********** Exception occurred ************
Tue Mar 27 08:57:56 CST 2001org.openide.util.io.SafeException: null
java.io.OptionalDataException
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:285)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
	at org.netbeans.modules.javadoc.JavadocModule.readExternal
(JavadocModule.java:304)
	at org.openide.util.SharedClassObject$WriteReplace.readObject
(SharedClassObject.java:474)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.io.ObjectInputStream.invokeObjectReader
(ObjectInputStream.java:2213)
	at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
	at org.openide.util.io.NbObjectInputStream.readSafely
(NbObjectInputStream.java:78)
[catch] at org.netbeans.core.ModuleInstaller.deExternalizeModules
(ModuleInstaller.java:992)
	at org.netbeans.core.ModuleInstaller.initialize
(ModuleInstaller.java:244)
	at org.netbeans.core.NonGui.run(NonGui.java:465)
	at org.netbeans.core.Main.run(Main.java:168)
	at org.openide.TopManager.initializeTopManager(TopManager.java:120)
	at org.openide.TopManager.getDefault(TopManager.java:81)
	at org.netbeans.core.Main.main(Main.java:255)
	at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
	at java.lang.Thread.run(Thread.java:484)
Registering class lookup
JavadocModule: numberOfStarts=1
JavadocModule.mount: root=C:\jdk1.3\jre\..\docs
JavadocModule mounted: C:/jdk1.3/jre/../docs
*********** Exception occurred ************
Tue Mar 27 08:57:58 CST 2001org.openide.filesystems.FSException:  Root 
D:\nbdev\32b13\netbeans\javadoc does not exist.
org.openide.filesystems.FSException: Root D:\nbdev\32b13\netbeans\javadoc does 
not exist.
	at org.openide.filesystems.FSException.io(FSException.java:66)
	at org.openide.filesystems.LocalFileSystem.setRootDirectory
(LocalFileSystem.java:95)
[catch] at org.netbeans.modules.javadoc.JavadocModule.installJavadocDirectories
(JavadocModule.java:232)
	at org.netbeans.modules.javadoc.JavadocModule.restored
(JavadocModule.java:93)
	at org.netbeans.core.ModuleItem.restoreCode(ModuleItem.java:763)
	at org.netbeans.core.ModuleInstaller.initialize
(ModuleInstaller.java:267)
	at org.netbeans.core.NonGui.run(NonGui.java:465)
	at org.netbeans.core.Main.run(Main.java:168)
	at org.openide.TopManager.initializeTopManager(TopManager.java:120)
	at org.openide.TopManager.getDefault(TopManager.java:81)
	at org.netbeans.core.Main.main(Main.java:255)
	at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
	at java.lang.Thread.run(Thread.java:484)
JavadocModule.mount: root=C:\users\todd\nb32\javadoc
JavadocModule mounted: C:/users/todd/nb32/javadoc
path="" :jsp: init
*********** Exception occurred ************
Tue Mar 27 08:58:24 CST 2001java.lang.IllegalArgumentException: null
java.io.IOException
	at org.netbeans.core.ModuleFSSection.create(ModuleFSSection.java:100)
[catch] at org.netbeans.core.actions.MountAction$1.actionPerformed
(MountAction.java:83)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1450)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1504)
	at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:378)
	at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:250)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
	at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased
(BasicMenuItemUI.java:886)
	at java.awt.Component.processMouseEvent(Component.java:3717)
	at java.awt.Component.processEvent(Component.java:3546)
	at java.awt.Container.processEvent(Container.java:1164)
	at java.awt.Component.dispatchEventImpl(Component.java:2595)
	at java.awt.Container.dispatchEventImpl(Container.java:1213)
	at java.awt.Component.dispatchEvent(Component.java:2499)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
	at java.awt.Container.dispatchEventImpl(Container.java:1200)
	at java.awt.Window.dispatchEventImpl(Window.java:912)
	at java.awt.Component.dispatchEvent(Component.java:2499)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
	at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)

Tue Mar 27 08:58:24 CST 2001java.lang.IllegalArgumentException: null
java.lang.IllegalArgumentException
	at 
org.netbeans.modules.vcscore.wizard.mountcvs.util.CvsHelper.parseCvsRoot
(CvsHelper.java:191)
	at org.netbeans.modules.vcscore.wizard.mountcvs.util.CvsHelper.<init>
(CvsHelper.java:56)
	at 
org.netbeans.modules.vcscore.wizard.mountcvs.CvsWizardData.initCvsHelper
(CvsWizardData.java:254)
	at 
org.netbeans.modules.vcscore.wizard.mountcvs.CvsWizardData.getMethodType
(CvsWizardData.java:188)
	at 
org.netbeans.modules.vcscore.wizard.mountcvs.MountCvsWizard.getStrings
(MountCvsWizard.java:222)
	at org.netbeans.modules.vcscore.wizard.mountcvs.MountCvsWizard.getNames
(MountCvsWizard.java:173)
	at org.netbeans.modules.vcscore.wizard.mountcvs.CvsWizardData.<init>
(CvsWizardData.java:77)
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java:237)
	at org.openide.nodes.BeanNode.getCustomizer(BeanNode.java:300)
	at org.netbeans.core.ModuleFSSection.create(ModuleFSSection.java:82)
[catch] at org.netbeans.core.actions.MountAction$1.actionPerformed
(MountAction.java:83)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1450)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1504)
	at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:378)
	at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:250)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
	at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased
(BasicMenuItemUI.java:886)
	at java.awt.Component.processMouseEvent(Component.java:3717)
	at java.awt.Component.processEvent(Component.java:3546)
	at java.awt.Container.processEvent(Container.java:1164)
	at java.awt.Component.dispatchEventImpl(Component.java:2595)
	at java.awt.Container.dispatchEventImpl(Container.java:1213)
	at java.awt.Component.dispatchEvent(Component.java:2499)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
	at java.awt.Container.dispatchEventImpl(Container.java:1200)
	at java.awt.Window.dispatchEventImpl(Window.java:912)
	at java.awt.Component.dispatchEvent(Component.java:2499)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
	at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 Todd Breiholz 2001-03-29 15:57:05 UTC
Workaround discovered:
I set a system environment variable named CVSROOT with the correct value for my 
CVS server. The wizard appeared as expected. 

I have a coworker that does not have that environment variable set, and he did 
not get the exception.
Comment 2 Tomas Zezula 2001-04-03 16:37:25 UTC
Already fixed.
Comment 3 Tomas Zezula 2001-04-03 16:38:07 UTC
Already fixed.
Comment 4 dmladek 2001-06-26 15:02:15 UTC
ok on [NBdev-200106260100] and [Pilsen-010625_1]
Comment 5 peterp 2001-10-01 13:15:27 UTC
when $CVSROOT is set to some nonsense this exception still arises in 
latest Pilsen builds.
Comment 6 Peter S. Heijnen 2001-11-13 22:20:19 UTC
There seems to be a problem when I set CVSROOT without a username. For example, I may use ":ext:cvs-server:/cvsroot". If I do, I get 'IllegalArgumentException: null' (CvsHelper.java:191).

The same problem arises when an existing CVS work directory is specified (containing CVS/Root files with the same CVSROOT value).

If I include a username in the CVSROOT, it will work fine.

NetBeans should allow an empty username in CVSROOT. In such a case,
the active system user account name should be used. I hope this may lead to an easy fix.

(I used NetBeans 3.2.1).
Comment 7 Martin Entlicher 2001-11-14 08:33:02 UTC
This is fixed in NetBeans 3.3.
Comment 8 Jiri Kovalsky 2001-11-14 14:44:13 UTC
This is unfortunately not fixed in current development builds. "Exter-
nal" connection method requires user name. If none is specified "Next 
>" button is disabled. Please take a look at it, Martin. Lowering pri-
ority since there are workarounds.
Trying to verify in development build of NetBeans 3.3 #200111140100.
Comment 9 Martin Entlicher 2001-11-15 09:40:37 UTC
Strange... I had a feeling, that I fixed this. I'll look at it...
Comment 10 Martin Entlicher 2001-11-15 12:52:05 UTC
Oh yes, I've fixed it for "server" method only. Now it's fixed for
both server and ext method. In other words, pserver connection method
is the only one, that requires the user name.
Comment 11 Martin Entlicher 2001-11-15 12:53:13 UTC
Oh yes, I've fixed it for "server" method only. Now it's fixed for
both server and ext method. In other words, pserver connection method
is the only one, that requires the user name.
Fixed in build Nov 16.
Comment 12 Martin Entlicher 2001-11-15 12:54:59 UTC
Issuezilla is bad at resolving collisions. Need to reopen to mark it
as fixed!
Comment 13 Martin Entlicher 2001-11-15 12:56:00 UTC
Fixed !!!
Comment 14 Jiri Kovalsky 2001-11-16 11:11:54 UTC
Cool. Verified in development build of NetBeans 3.3 #200111160100.