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 98326 - XML schema elements can not be deleted or renamed
Summary: XML schema elements can not be deleted or renamed
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 13:41 UTC by Oleg Barbashov
Modified: 2007-03-22 20:01 UTC (History)
1 user (show)

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 Oleg Barbashov 2007-03-20 13:41:43 UTC
Steps to reproduce:
1. Open a new BPEL project.
2. Add the XML schema and open it in the Design Mode.
3. Add a new element.
4. Right click on this element and pick "Delete" from context menu.

The exception is generated and element is not deleted:

"java.lang.ClassNotFoundException:
org.netbeans.modules.websvc.wsitconf.refactoring.WSITRefactoringFactory not a
subclass of org.netbeans.modules.refactoring.spi.RefactoringPluginFactory
	at
org.openide.util.lookup.MetaInfServicesLookup.search(MetaInfServicesLookup.java:261)
	at
org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:102)
	at org.openide.util.lookup.AbstractLookup$R.beforeLookup(AbstractLookup.java:1016)
	at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:562)
	at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:427)
	at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:400)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.getPlugins(AbstractRefactoring.java:103)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPreCheck(AbstractRefactoring.java:297)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.preCheck(AbstractRefactoring.java:154)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.fastCheckParameters(AbstractRefactoring.java:211)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.checkParameters(AbstractRefactoring.java:193)
	at
org.netbeans.modules.xml.refactoring.spi.SharedUtils.refactor(SharedUtils.java:309)
	at
org.netbeans.modules.xml.refactoring.spi.SharedUtils.silentDeleteRefactor(SharedUtils.java:285)
	at
org.netbeans.modules.xml.schema.abe.nodes.ABEAbstractNode.safeDelete(ABEAbstractNode.java:507)
	at
org.netbeans.modules.xml.schema.abe.nodes.ABEAbstractNode.remove(ABEAbstractNode.java:316)
	at
org.netbeans.modules.xml.schema.abe.nodes.ABEAbstractNode.destroy(ABEAbstractNode.java:353)
	at
org.openide.explorer.ExplorerActionsImpl$DeleteActionPerformer.doDestroy(ExplorerActionsImpl.java:602)
	at
org.openide.explorer.ExplorerActionsImpl$DeleteActionPerformer.actionPerformed(ExplorerActionsImpl.java:552)
	at
org.openide.util.actions.CallbackSystemAction$DelegateAction$1.run(CallbackSystemAction.java:546)
	at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:89)
	at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:82)
	at
org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:30)
	at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:80)
	at org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:49)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)"
Comment 1 Oleg Barbashov 2007-03-20 14:13:26 UTC
5. Double click on element to rename it. Enter new element's name and press enter.

Changes in name is discarded.
Comment 2 _ hong_lin 2007-03-21 20:50:01 UTC
This bug blocks Loan Processing blue print sample tutorial development. Please
fix it as soon as possible.
Comment 3 _ hong_lin 2007-03-21 20:54:51 UTC
Since this is a regression bug, the priority is upgraded.
Comment 4 Nam Nguyen 2007-03-21 21:36:44 UTC
I don't understand why this is schematools bug?  Just from the stack trace i
would say that this issue is dual but not within xml/refactoring or ABE control.
First, the NB refactoring API itself should handle bad refactoring plugin
registrations such that one should not affect functionality of the rest.
Comment 5 Samaresh Panda 2007-03-21 22:14:15 UTC
WSITRefactoringFactory is owned by websvc team.
Comment 6 Sonali Kochar 2007-03-21 23:17:33 UTC
(i) The stack trace is coming from Websvc code, however it shouldnt affect the
refactoring functionality. Please see issue#98387 :: WSITRefactoringFactory
throws a ClassNotFoundException

(ii) I have filed a separate bug for the "Delete" action. Please see
issue#98568::XML Schema elements cannot be deleted in Design view

(iii) I have fixed the unable to rename element in Design view issue as reported
in this bug. The code was putback in build number# 070321_9

Testing::
1. Open a new BPEL project.
2. Add the XML schema and open it in the Design Mode.
3. Double click on element to rename it. Enter new element's name and press enter.

Result:: The element should be renamed.
Comment 7 _ hong_lin 2007-03-22 20:01:36 UTC
Verified the fix is in Hual daily build 200703220921