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 69345 - Exceptions are thrown if a netbeans project is opened after having been updated by Sun Java Studio Creator 2 Early Access 2
Summary: Exceptions are thrown if a netbeans project is opened after having been updat...
Status: RESOLVED DUPLICATE of bug 68942
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 15:48 UTC by aboujraf
Modified: 2005-12-09 14:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans 5.0 Beta 2 - Issue log file: java.lang.IllegalArgumentException: Attempt to remove nonexistent path ClassPath (198.30 KB, text/plain)
2005-11-25 15:50 UTC, aboujraf
Details
The similar IllegalArgumentException (3.47 KB, text/plain)
2005-11-29 15:31 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aboujraf 2005-11-25 15:48:55 UTC
A java.lang.IllegalArgumentException is thrown after I opened netbeans.
Here are the steps I've executed to receive the message:
1. I create a project with netbeans 5.0 Beta 2. I write the application and the
project works perfectly.
2. I open the project with Sun Java Studio Creator 2 Early Access 2
3. I resolve the reference problems inside Sun Java Studio Creator 2 Early Access 2
4. I do not change the code of the project
5. I open netbeans 5.0 Beta 2
6. I open the project modified by Sun Java Studio Creator 2 Early Access 2
7. The IDE warn me concerning the reference problems.
8. I close the project inside netbeans 5.0 Beta 2 without modifying the code or
the reference problems.
9. the java.lang.IllegalArgumentException is thrown
Comment 1 aboujraf 2005-11-25 15:50:48 UTC
Created attachment 27288 [details]
netbeans 5.0 Beta 2 - Issue log file: java.lang.IllegalArgumentException: Attempt to remove nonexistent path ClassPath
Comment 2 Roman Strobl 2005-11-29 08:19:48 UTC
Reassigning to web, please evaluate. Seems to be an issue in the web project type?
Comment 3 Petr Pisl 2005-11-29 15:29:19 UTC
The exception is thrown because the  WebProject$ProjectOpenedHookImpl tries to
remove nonexisting libraries. In this case the dvelopmenttime libraries. 

The same exception I'm able to reproduce with these steps:
1) Open an web project
2) Make the web.xml malformed and save
3) close the ide
4) run the ide again - don't care of the NPE during the startup. It's issue #69537
5) close the web project with the malformed web.xml
Comment 4 Petr Pisl 2005-11-29 15:31:19 UTC
Created attachment 27390 [details]
The similar IllegalArgumentException
Comment 5 Jan Lahoda 2005-12-02 10:25:52 UTC
I think that the exception during closing of the project is not important: it is
caused by the exception thrown during project opening. The problem is following:
1. An exception is (probably) thrown in ProjectOpenedHook.projectOpened BEFORE
the classpaths are registered. So the classpaths are not registered.
2. The POH.projectClosed tries to unregister the classpaths, but these were
never registered, so the exception is thrown.

In this bug, the problem is caused by the "java.io.IOException:
javax.xml.transform.TransformerConfigurationException:" thrown during startup.
In case of issue #69537, the problem is caused by the NPE. So I think these bugs
are different.

Please see also issue #68942 which is very similar to this one.

Or am I missing something important?
Comment 6 Radko Najman 2005-12-09 14:15:21 UTC
From the attached stack traces it looks like a duplicate of issue #68942.

*** This issue has been marked as a duplicate of 68942 ***