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 103288 - XML Schema support unit test is failing
Summary: XML Schema support unit test is failing
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-03 21:54 UTC by Sonali Kochar
Modified: 2016-07-07 09:56 UTC (History)
0 users

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 Sonali Kochar 2007-05-03 21:54:46 UTC
The SchemaRefactoringTest in the XML Schema core module is failing with the
following exception.

Testcase:
testFindUsages(org.netbeans.modules.xml.schema.core.SchemaRefactoringTest):
Caused an ERROR
null
java.lang.NullPointerException
        at org.netbeans.modules.xml.schema.core.Util.copyResource(Util.java:192)
        at
org.netbeans.modules.xml.schema.core.Util.createJavaTestProject(Util.java:167)
        at
org.netbeans.modules.xml.schema.core.SchemaRefactoringTest.setUp(SchemaRefactoringTest.java:73)


Testcase:
testFileRefactoring(org.netbeans.modules.xml.schema.core.SchemaRefactoringTest):	Caused
an ERROR
C:/Documents and Settings/Sonali/Local
Settings/Temp/TestJavaProject/nbproject/build-impl.xml
org.openide.filesystems.FileAlreadyLockedException: C:/Documents and
Settings/Sonali/Local Settings/Temp/TestJavaProject/nbproject/build-impl.xml
        at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:179)
        at
org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:166)
        at org.netbeans.modules.xml.schema.core.Util.copyResource(Util.java:185)
        at
org.netbeans.modules.xml.schema.core.Util.createJavaTestProject(Util.java:167)
        at
org.netbeans.modules.xml.schema.core.SchemaRefactoringTest.setUp(SchemaRefactoringTest.java:73)


Testcase:
testLocalElementRename(org.netbeans.modules.xml.schema.core.SchemaRefactoringTest):
Caused an ERROR
C:/Documents and Settings/Sonali/Local
Settings/Temp/TestJavaProject/nbproject/build-impl.xml
org.openide.filesystems.FileAlreadyLockedException: C:/Documents and
Settings/Sonali/Local Settings/Temp/TestJavaProject/nbproject/build-impl.xml
        at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:179)
        at
org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:166)
        at org.netbeans.modules.xml.schema.core.Util.copyResource(Util.java:185)
        at
org.netbeans.modules.xml.schema.core.Util.createJavaTestProject(Util.java:167)
        at
org.netbeans.modules.xml.schema.core.SchemaRefactoringTest.setUp(SchemaRefactoringTest.java:73)


Testcase:
testRefactorUsagesUndoRedo(org.netbeans.modules.xml.schema.core.SchemaRefactoringTest):
Caused an ERROR
C:/Documents and Settings/Sonali/Local
Settings/Temp/TestJavaProject/nbproject/build-impl.xml
org.openide.filesystems.FileAlreadyLockedException: C:/Documents and
Settings/Sonali/Local Settings/Temp/TestJavaProject/nbproject/build-impl.xml
        at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:179)
        at
org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:166)
        at org.netbeans.modules.xml.schema.core.Util.copyResource(Util.java:185)
        at
org.netbeans.modules.xml.schema.core.Util.createJavaTestProject(Util.java:167)
        at
org.netbeans.modules.xml.schema.core.SchemaRefactoringTest.setUp(SchemaRefactoringTest.java:73)


Testcase:
testMultiFiles(org.netbeans.modules.xml.schema.core.SchemaRefactoringTest):
Caused an ERROR
C:/Documents and Settings/Sonali/Local
Settings/Temp/TestJavaProject/nbproject/build-impl.xml
org.openide.filesystems.FileAlreadyLockedException: C:/Documents and
Settings/Sonali/Local Settings/Temp/TestJavaProject/nbproject/build-impl.xml
        at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:179)
        at
org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:166)
        at org.netbeans.modules.xml.schema.core.Util.copyResource(Util.java:185)
        at
org.netbeans.modules.xml.schema.core.Util.createJavaTestProject(Util.java:167)
        at
org.netbeans.modules.xml.schema.core.SchemaRefactoringTest.setUp(SchemaRefactoringTest.java:73)


Testcase:
testInvalidDeleteUndoRedo(org.netbeans.modules.xml.schema.core.SchemaRefactoringTest):
Caused an ERROR
C:/Documents and Settings/Sonali/Local
Settings/Temp/TestJavaProject/nbproject/build-impl.xml
org.openide.filesystems.FileAlreadyLockedException: C:/Documents and
Settings/Sonali/Local Settings/Temp/TestJavaProject/nbproject/build-impl.xml
        at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:179)
        at
org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:166)
        at org.netbeans.modules.xml.schema.core.Util.copyResource(Util.java:185)
        at
org.netbeans.modules.xml.schema.core.Util.createJavaTestProject(Util.java:167)
        at
org.netbeans.modules.xml.schema.core.SchemaRefactoringTest.setUp(SchemaRefactoringTest.java:73)


Testcase:
testRefactorLocalElementUndoRedo(org.netbeans.modules.xml.schema.core.SchemaRefactoringTest):
Caused an ERROR
C:/Documents and Settings/Sonali/Local
Settings/Temp/TestJavaProject/nbproject/build-impl.xml
org.openide.filesystems.FileAlreadyLockedException: C:/Documents and
Settings/Sonali/Local Settings/Temp/TestJavaProject/nbproject/build-impl.xml
        at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:179)
        at
org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:166)
        at org.netbeans.modules.xml.schema.core.Util.copyResource(Util.java:185)
        at
org.netbeans.modules.xml.schema.core.Util.createJavaTestProject(Util.java:167)
        at
org.netbeans.modules.xml.schema.core.SchemaRefactoringTest.setUp(SchemaRefactoringTest.java:73)


Testcase:
testMultipleRefactoringEffectsOnUndo(org.netbeans.modules.xml.schema.core.SchemaRefactoringTest):
Caused an ERROR
C:/Documents and Settings/Sonali/Local
Settings/Temp/TestJavaProject/nbproject/build-impl.xml
org.openide.filesystems.FileAlreadyLockedException: C:/Documents and
Settings/Sonali/Local Settings/Temp/TestJavaProject/nbproject/build-impl.xml
        at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:179)
        at
org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:166)
        at org.netbeans.modules.xml.schema.core.Util.copyResource(Util.java:185)
        at
org.netbeans.modules.xml.schema.core.Util.createJavaTestProject(Util.java:167)
        at
org.netbeans.modules.xml.schema.core.SchemaRefactoringTest.setUp(SchemaRefactoringTest.java:73)


Test org.netbeans.modules.xml.schema.core.SchemaRefactoringTest FAILED
D:\Sonali\nb_all\nbbuild\templates\common.xml:472: Some tests failed; see
details above.
Comment 1 Samaresh Panda 2008-06-26 15:11:46 UTC
We should fix this somehow.
Comment 2 Martin Balin 2016-07-07 09:56:23 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss