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.
Summary: | Unable to create an xml document from a schema | ||
---|---|---|---|
Product: | xml | Reporter: | cyrill <cyrill> |
Component: | Tools | Assignee: | Nikita Krjukov <supernikita> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | supernikita |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Maven project where the issue was found |
Description
cyrill
2009-11-13 03:24:59 UTC
Vladimir, please take a look. I can't reproduce the problem according the steps. I tried analyzing source code and here is some considerations. There is following code at the line where exception happens: Project project = FileOwnerQuery.getOwner(anyFileObjectExistingInAProject); assert(project != null); So the exception can happen only if method getOwner() returns null. The method can return "null if there is no known project containing it". I took the quotation from the comment. So I think the following is possible: -- There was something wrong with the project where XML was being added. -- There is an error inside of the org.netbeans.api.project module where the FileOwnerQuery class locates. Anyway it's necessary to be able to reproduce the bug. Maybe reporter could provide us the project where the XML was tried to be added. Created attachment 91013 [details]
Maven project where the issue was found
What is the build version do you use ? Please also specify JDK version and OS. Fixed in trunk http://hg.netbeans.org/main/rev/2dc0bca3f72f The project was very helpful. The exception happens only in maven project because of its specific. It turned out that after downloading smooks-1.1.xsd file it's put not to the project but somewhere to the user directory. It differs from another projects, which put such files somewhere inside of themselves. BTW, I've noted that the generated file contains attribute schema location with a strange content. It has the URL to the schema, but it is repeated twice. BTW; I am running Fedora 11 (32-Bit) with Sun JDK 1.6_17. What's the Dev-Version which includes the fix? Will there be one today? Integrated into 'main-golden', will be available in build *200911160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2dc0bca3f72f User: supernikita@netbeans.org Log: #176769 - Unable to create an xml document from a schema |