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 98734 - IllegalArgumentException upon rename of file
Summary: IllegalArgumentException upon rename of file
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
: 93515 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-22 22:16 UTC by Joelle Lam
Modified: 2009-12-21 05:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IllegalArgumentException output in messages.log (3.15 KB, text/html)
2007-03-22 22:17 UTC, Joelle Lam
Details
Redo the exceptions attachment, previous one is not readable! (3.49 KB, text/plain)
2008-03-20 19:27 UTC, _ potingwu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joelle Lam 2007-03-22 22:16:19 UTC
An IllegalArgumentException occurs when you try to rename a jsp page name (in
the jsf framework) to an already existing file name.  For instance you start with:
page1.jsp and page2.jsp.  If you try to rename page1.jsp to page2.jsp (using
double click on the delegate nodes in the project window) you get the following
popup:  

A java.lang.IllegalArgumentException exception has occurred.
Please report this at http://www.netbeans.org/issues.html, including a copy of
your messages.log file.
The messages.log file is located in your
C:\users\js138578\vwp_bin\src\visualweb\visualwebsuite\build\testuserdir\system
folder

However, when I do this same rename in web projects, I get a clean information
popup that says I can not rename it as such. 

I will attach the IllegalArgumentException.
Comment 1 Joelle Lam 2007-03-22 22:17:29 UTC
Created attachment 39843 [details]
IllegalArgumentException output in messages.log
Comment 2 Petr Pisl 2007-03-23 11:36:22 UTC
Do you rename which data object? The jsp data object or the visual jsp data
object? From the exception is not clear and from your description it looks like
you are talking about the visual jsp. 
Comment 3 Joelle Lam 2007-03-23 15:12:37 UTC
It is the jsp dataobject. Simply create a web jsf project (not vwp framework). 
I get this exception in my development environment where vwp is not installed. 
Just rename the file to another filename which already exists.  You will see
this error as well.
Comment 4 Andrei Badea 2007-10-17 16:57:09 UTC
*** Issue 93515 has been marked as a duplicate of this issue. ***
Comment 5 _ potingwu 2008-03-20 19:27:18 UTC
Created attachment 58783 [details]
Redo the exceptions attachment, previous one is not readable!
Comment 6 _ potingwu 2008-03-20 19:46:34 UTC
It is not related to any framework implementation! I can reproduce it on a simple web project without any framework.

1. Create a simple web project without any framework
2. Add 2 JSP files, e.g., P1 and P2
3. Rename P1 to P2

Then you will see the exception I just attached and a dialog shows:
    "Cannot rename file P1.jsp in ... to P2.jsp"

I think the mesg should also mention the reason "P2.jsp already exists", and handle the exception properly.
Comment 7 Jiri Prox 2008-04-11 01:20:18 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 8 Quality Engineering 2009-12-21 05:45:45 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team