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 85894 - REGRESSION: IllegalStateException on renaming schema in Projects tree
Summary: REGRESSION: IllegalStateException on renaming schema in Projects tree
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-27 15:35 UTC by Andrei Chistiakov
Modified: 2006-10-03 11:16 UTC (History)
3 users (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 Andrei Chistiakov 2006-09-27 15:35:29 UTC
Reproduced in build 060927.

This is a regression since build 060910.

To reproduce the bug:
- create two new schemas schema1 and schema2;
- import schema2 into schema1;
- in Projects invoke 'Rename' popup menu command on the schema2 file and rename
it to schema21;
- push 'Do Refactoring'.
java.lang.IllegalStateException: attempted model write without invoking
startTransaction
	at org.netbeans.modules.xml.xam.AbstractModel.validateWrite(AbstractModel.java:354)
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.verifyWrite(AbstractDocumentComponent.java:619)
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.setAttribute(AbstractDocumentComponent.java:90)
	at
org.netbeans.modules.xml.schema.model.impl.ImportImpl.setSchemaLocation(ImportImpl.java:69)
	at
org.netbeans.modules.xml.schema.refactoring.SchemaRefactoringEngine._refactorUsages(SchemaRefactoringEngine.java:147)
	at
org.netbeans.modules.xml.schema.refactoring.SchemaRefactoringEngine.refactorUsages(SchemaRefactoringEngine.java:128)
	at
org.netbeans.modules.xml.refactoring.RefactoringManager.process(RefactoringManager.java:392)
	at
org.netbeans.modules.xml.refactoring.ui.j.ui.RefactoringPanel$1.run(RefactoringPanel.java:450)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 Nam Nguyen 2006-09-27 17:00:53 UTC
The cause or regression is a typo.  Will check in fix when codeline is open.
Comment 3 Martin Schovanek 2006-09-29 11:25:39 UTC
Please, can you verify the fix in latest release55_dev build.
Comment 4 Andrei Chistiakov 2006-09-29 11:53:11 UTC
Verified in build 060929_1 (release55_dev branch).
Comment 5 Martin Schovanek 2006-09-29 12:32:59 UTC
By the "High Resistance Mode Fixing Rules" this issue should not be marked as
VERIFIED until verification in relese55 build, changed back to "RESOLVED FIXED".
Comment 6 Martin Schovanek 2006-09-29 12:33:42 UTC
resolved fixed
Comment 7 Nam Nguyen 2006-09-29 16:32:44 UTC
Fix committed to release55.
Comment 8 Andrei Chistiakov 2006-10-03 11:16:31 UTC
Verified in build 061002_2 (release55).