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 45629 - Illegal Argument Exception when trying to open a project
Summary: Illegal Argument Exception when trying to open a project
Status: CLOSED DUPLICATE of bug 46630
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-28 09:59 UTC by hlein
Modified: 2008-12-22 22:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages log (228.01 KB, text/plain)
2004-06-28 10:00 UTC, hlein
Details
Message log trying to open project after clean install (13.44 KB, text/plain)
2004-06-30 08:56 UTC, hlein
Details
zipped messages.log (4.79 MB, application/x-zip-compressed)
2004-07-01 15:09 UTC, hlein
Details
Message log when trying to open project (334.52 KB, text/plain)
2004-07-29 07:27 UTC, hlein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hlein 2004-06-28 09:59:29 UTC
There is an illegal argument exception when trying
to open a project. The exception occurs before
opening the filechooser window.

So, it is not possible to open existing projects.
New projects can be created and worked on. They
may even be closed and reopened as from the "Last
Used Projects" as long as they appeear here.
Comment 1 hlein 2004-06-28 10:00:09 UTC
Created attachment 16030 [details]
messages log
Comment 2 Jesse Glick 2004-06-28 20:31:55 UTC
Looks like some Windows-specific masterfs problem but I don't
recognize it.
Comment 3 rmatous 2004-06-29 10:38:58 UTC
I wasn't able to reproduce. 

Tested on the same build, used the project path
/D:/HL-O2E/JavaProjects/O2E7-Front/build/classes/o2e7front

But tested on 1.5.0-beta3.

I did a little commit to get information what URI has an authority
component. See

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterURLMapper.java
new revision: 1.5; previous revision: 1.4

Authority component means actually that there is host part of URI
which isn't acceptable. 

Please use with this patch (e.g. wait for next daily build) and
provide as much info as you can - describe what you were doing (all
details). Is it reproducible ? Does it depend on path name (unsusual
characters), or is it RANDOM ? Did you build it from command line or
from IDE ?
Comment 4 hlein 2004-06-30 08:54:39 UTC
The problem still exists in build 200406291800.
Java 1.5.0 beta3 cannot be downloaded yet.
I doubt it has something to do with the project path as it happens
(systematically) before you can select some path / project.
I attach a message log created from new .netbeans/dev2 path (first
start of new NB installation).
 
Comment 5 hlein 2004-06-30 08:56:21 UTC
Created attachment 16071 [details]
Message log trying to open project after clean install
Comment 6 rmatous 2004-06-30 11:14:05 UTC
Primarily caused by JDK bug with Bug Id:  5049016 reported  by Jan
Chalupa (1.5 REGRESSION).

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterURLMapper.java
new revision: 1.6; previous revision: 1.5

Thanks for evaluation. Now should be OK.
Comment 7 hlein 2004-07-01 15:06:25 UTC
Problem still seems to be present with slightly different behaviour.
The Open Project window opens, but there is an infinite number of
illegal argument exceptions.
Netbeans may only be killed.

Attached messages.log from first start after install.
Comment 8 hlein 2004-07-01 15:09:44 UTC
Created attachment 16107 [details]
zipped messages.log
Comment 9 rmatous 2004-07-01 16:47:48 UTC
I mentioned in my previous comment that this issue is caused by JDK
bug. AFAIK there is no final official release of 1.5 so please test on
JDK 1.4 or wait for production build of JDK 1.5.



  
Comment 10 hlein 2004-07-01 17:22:59 UTC
Sorry for the inconvenience. My understanding was that it has been
bypassed by revision 1.6 of MasterURLMapper.java.

I'll wait and retry with newer Java versions when available.
Comment 11 rmatous 2004-07-28 13:23:24 UTC
There was reported duplicate issue #46630. 

So, I added additional message into revision  1.104   of
/cvs/openide/src/org/openide/filesystems/FileUtil.java.

Please test with current 1.5 JDK and use this revision of FileUtil and
then attach log file. Thanks.


*** This issue has been marked as a duplicate of 46630 ***
Comment 12 hlein 2004-07-29 07:27:11 UTC
Created attachment 16535 [details]
Message log when trying to open project
Comment 13 hlein 2004-07-29 07:31:42 UTC
Hi,

I do not know if the requested version of FileUtil.java is used in
Build 200407281800 used for the attachement 2004-07-28 23:27 PDT.

But another information that might be helpful:
I have two installations (same Windows, same Java, same Netbeans). One
is on a "standalone" PC, the other one on my business PC, integrated
into a Windows domain. It happens only on my business PC.
 
Comment 14 Marian Mirilovic 2005-07-12 10:17:35 UTC
closed