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 115150 - Project failed to build after moving/undo file to/from other project.
Summary: Project failed to build after moving/undo file to/from other project.
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sonali Kochar
Keywords: RELNOTE
Depends on:
Reported: 2007-09-10 12:15 UTC by Michael Nazarov
Modified: 2007-09-25 18:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-09-10 12:15:47 UTC
Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709100000)
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Previous issue with NPE and CannotUndo seems to be fixed. New issue come...

Steps to reproduce:

1. Create BluePrint2 Sample and BPEL Module.
2. Add into Module Sample Loan Application Schema.
3. Add to Sample reference to Module.
4. Import into purchaseOrder schema newLoanApplication schema.
5. Move purchaseOrder into Module.
6. Undo Move operation.
7. Build Sample.

Last action will failed:

Found validation errors:
Error: If a namespace attribute is specified on an <import> then the imported definitions must be in that namespace.
Error: In part "purchaseOrder", attribute element's value "po:purchaseOrder" is not a valid xml schema element 
available in this wsdl file. : Specify a valid schema element value for element attribute.
Error: BooleanExpr: Type of the variable "purchaseOrder.purchaseOrder" can not be resolved. Expression: 
BUILD FAILED (total time: 0 seconds)
Comment 1 Sonali Kochar 2007-09-10 22:36:40 UTC
This is the same as
CannotUndoException on Undo rename

To verify, make sure all the files are closed after importing newLoanApplication.xsd. Now, move the purchaseOrder.xsd
and do undo. You should see the CannotUndoException with the same stack trace.

Comment 2 Joseph Silber 2007-09-11 13:40:24 UTC
known issue added to beta 1 release notes.
Comment 3 Sonali Kochar 2007-09-20 19:05:28 UTC
Checking in;
/cvs/xml/refactoring/src/org/netbeans/modules/xml/refactoring/,v  <--
new revision: 1.17; previous revision: 1.16
Comment 4 tonybeckham 2007-09-25 18:32:14 UTC
Fix VERIFIED with: 
Product Version: NetBeans IDE Dev (Build 200709250000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)