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 142765 - Unable to create XML document based on more the one schema.
Summary: Unable to create XML document based on more the one schema.
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-04 09:50 UTC by Michael Nazarov
Modified: 2008-08-08 21:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (47.32 KB, image/png)
2008-08-05 09:04 UTC, Michael Nazarov
Details
schema (1.16 KB, text/xml)
2008-08-05 09:05 UTC, Michael Nazarov
Details
schema (7.76 KB, text/xml)
2008-08-05 09:06 UTC, Michael Nazarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2008-08-04 09:50:48 UTC
Product Version: NetBeans IDE Dev (Build 200808040201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Looks like REGRESSION.
Steps to reproduce from our spec:
#  Multiple XML Schema generation from local sources
   1. Choose File->New File->XML->External XML Schema Document(s), next
   2. Select from local file system, browse
   3. Choose 2 or more schema from filesystem, open, finish 
    * EXPECTED RESULT: all selected schema are added to current project 

One got error message instead saying "File not found: filename1.xsd,filename2.xsd"
Sure there is no such file because these are two different files.
Comment 1 Samaresh Panda 2008-08-04 17:12:59 UTC
Seems to be working fine for me. Michael, what does your new xml look like? Tony, can you try this and let us know?
Comment 2 Sonali Kochar 2008-08-04 18:00:51 UTC
Seems to be working for me too..Can you give me more information on how to reproduce the bug?
Comment 3 tonybeckham 2008-08-04 18:28:52 UTC
Works for me.

Product Version: NetBeans IDE Dev (Build 200808010201)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)
Comment 4 Michael Nazarov 2008-08-05 06:07:56 UTC
Strange. I'll recheck with todays build and update comments. BTW I found this in
windows platform.
Comment 5 Michael Nazarov 2008-08-05 09:03:53 UTC
Product Version: NetBeans IDE Dev (Build 200808041401)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Found as well.
Comment 6 Michael Nazarov 2008-08-05 09:04:58 UTC
Created attachment 66559 [details]
screenshot
Comment 7 Michael Nazarov 2008-08-05 09:05:54 UTC
Created attachment 66560 [details]
schema
Comment 8 Michael Nazarov 2008-08-05 09:06:30 UTC
Created attachment 66561 [details]
schema
Comment 9 Michael Nazarov 2008-08-05 09:27:31 UTC
Product Version: NetBeans IDE Dev (Build 200808050125)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)

Reproduced on MacOS with NB 6.5 Beta as well...
Comment 10 Samaresh Panda 2008-08-05 17:11:59 UTC
Are the schemas part of the project?
Comment 11 Samaresh Panda 2008-08-05 17:12:45 UTC
Why don't you attach the project?
Comment 12 tonybeckham 2008-08-05 18:31:12 UTC
I was able to reproduce now.  I Left the two files on my desktop (not a part of a project) and got the error.

Product Version: NetBeans IDE 6.5 Beta (Build 200808051501)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)


Output:


Aug 5, 2008 10:29:40 AM : Retrieving Location:
file:/Users/Tony/Desktop/CreditCoReport.xsd,file:/Users/Tony/Desktop/CreditReport.xsd 


Error: An I/O error occured. File not found:
/Users/Tony/Desktop/CreditCoReport.xsd,file:/Users/Tony/Desktop/CreditReport.xsd
Comment 13 tonybeckham 2008-08-05 18:33:10 UTC
Adding the schema one at a time works.
Comment 14 tonybeckham 2008-08-05 18:35:46 UTC
Actually it happens for schema in projects too.  It was working for me with Build 200808010201.  Something must have
changed from 08/01 to 08/04.
Comment 15 Sonali Kochar 2008-08-05 18:52:14 UTC
I havent changed this code for sometime. When you say it happens for schema in projects, can you give the exact steps?
Also, if the two schema files are not part of ur project, how are they showing in the Browse dialog box? Are you typing
in the location of the files in the table column?

Comment 16 tonybeckham 2008-08-05 19:08:53 UTC
It doesn't matter if the imported schema are a part of another NetBeans project or just exist somewhere in the file
system.  You may be confused about the issue.  This happens when you create a new file of type XML->External XML Schema
Document(s).  This wizard allows you to basically import some schema into a project.

Steps:
1. Create a Java Application
2. Select new file XML->External XML Schema Document(s)
3. Select from local filesystem radio button then browse
4. Select more than 1 schema you have and finish 
Comment 17 Sonali Kochar 2008-08-05 19:58:51 UTC
You are right Tony. I misunderstood. I see the bug now..
Comment 18 Sonali Kochar 2008-08-05 20:33:15 UTC
fixed
changeset 7aa213686081 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=7aa213686081
Comment 19 tonybeckham 2008-08-08 21:29:52 UTC
Fix verified.

Product Version: NetBeans IDE Dev (Build 200808081401)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)