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 147028 - [65cat] Webservice file Refactor rename on firsttime throws a runtime exception
Summary: [65cat] Webservice file Refactor rename on firsttime throws a runtime exception
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Designer (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-12 07:50 UTC by rajivderas
Modified: 2010-10-12 06:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file with the runtime exception (76.75 KB, text/plain)
2008-09-12 07:51 UTC, rajivderas
Details
log file (213.08 KB, text/plain)
2008-09-19 10:26 UTC, rajivderas
Details
project file (576.92 KB, application/x-compressed)
2008-09-19 10:28 UTC, rajivderas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-09-12 07:50:56 UTC
Steps to reproduce:
1) Create a Web Project
2) In the Web Project create a new webservice file
3) Right click on the webservice  file in project explores and select Refactor > Rename
4) Add number 9 to the end of the file name and click refactor
 It will through a runtime exception which you can view from the IDE log.

I have attached the IDE log file also.

Dev Build 200809111401
JDK 6 Update 10
Comment 1 rajivderas 2008-09-12 07:51:52 UTC
Created attachment 69709 [details]
log file with the runtime exception
Comment 2 Martin Grebac 2008-09-18 14:48:08 UTC
I just tried the steps with latest dev build and get no exception, everything works fine for me. Am I missing something
in the reproductions steps? If so, please reopen.
Comment 3 rajivderas 2008-09-19 10:25:11 UTC
I just tried this with the latest Build 200809181401. i am attaching the log file and the project file too.
Comment 4 rajivderas 2008-09-19 10:26:40 UTC
Created attachment 70137 [details]
log file
Comment 5 rajivderas 2008-09-19 10:28:51 UTC
Created attachment 70138 [details]
project file
Comment 6 Martin Grebac 2008-09-19 10:30:48 UTC
Do you run with fresh userdir/fresh created project?
Comment 7 rajivderas 2008-09-19 10:33:14 UTC
user dir is fresh but am running this with an existing ejb module project
Comment 8 Martin Grebac 2008-09-19 10:38:41 UTC
Hmm, your reproduction steps say to create a Web project, not an EJB project. Anything else I'm missing in the
reproduction steps?
Comment 9 rajivderas 2008-09-19 10:43:08 UTC
>>>Hmm, your reproduction steps say to create a Web project, not an EJB project

Ooops..! sorry just open the ejb project that i ahve send and create a new webservice file in the flower.album.service 
package and then follow steps 2 and 3.
Comment 10 Martin Grebac 2008-09-19 10:54:36 UTC
Your project seems to be severly broken. I don't see any correctly defined web service there. I see a session bean and a
couple of WSDL files. Which file do you try to rename?
Comment 11 Martin Grebac 2008-09-19 10:56:55 UTC
Aha, I see. Will try.
Comment 12 Martin Grebac 2008-09-19 11:06:56 UTC
Even when I try to open the project, create WS in the package you mention, I'm still able to rename it and don't see the
exception.
Comment 13 Martin Grebac 2008-09-19 11:21:02 UTC
Anyway, even though I'm not able to reproduce this, you say that you rename a file. 
However, in the exception trace I see that the designer fires an event "operationRemoved" which doesn't correspond to
what you say. I'll try to do some exception handling in WSIT code, but I think the core problem is in the designer, thus
reassigning there.
Comment 14 rajivderas 2008-09-19 14:37:31 UTC
this issues can be generated randomly and i can regenerate this bug when i first start the ide and open this project 
but sometimes it doesnt happen
Comment 15 Quality Engineering 2008-09-20 06:01:15 UTC
Integrated into 'main-golden', will be available in build *200809200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3041d799fb32
User: mgrebac@netbeans.org
Log: Better error checking for #147028 - [65cat] Webservice file Refactor rename on firsttime throws a runtime exception
Need to find out what is wrong there.
Comment 16 Milan Kuchtiak 2008-11-28 08:53:06 UTC
Reassigning to mkuchtiak.
Comment 17 Denis Anisimov 2010-10-12 05:56:24 UTC
This is again the consequence of bad design for webservice model handling.
WsitServiceChangeListener is based on FileObject instead of DataObject.
Comment 18 Denis Anisimov 2010-10-12 06:14:14 UTC
changeset:   179144:f5ba9a81d646
user:        Denis Anisimov <ads@netbeans.org>
date:        Tue Oct 12 10:06:55 2010 +0400
summary:     Fix for BZ#147028 -  [65cat] Webservice file Refactor rename on firsttime throws a runtime exception