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 112679 - Reference for XML schema from other project always broken.
Summary: Reference for XML schema from other project always broken.
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-13 16:45 UTC by Michael Nazarov
Modified: 2007-09-18 22:21 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (20.17 KB, image/png)
2007-08-13 16:45 UTC, Michael Nazarov
Details
Screenshot of not broken references (75.44 KB, application/octet-stream)
2007-08-13 19:45 UTC, tonybeckham
Details
working with cross project reference (83.12 KB, application/octet-stream)
2007-08-14 17:54 UTC, tonybeckham
Details
Log (759.72 KB, text/plain)
2007-08-15 16:36 UTC, Michael Nazarov
Details
new resolver jar (82.12 KB, application/octet-stream)
2007-08-16 18:46 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-08-13 16:45:04 UTC
Build 200708130000.

Stept to reproduce:

1. Create BluePrint1 sample and BPEL module.
2. Add to Module sample LoanApplication Schema.
3. Add to Sample reference to Module.
4. Import to purchaseOrder reference to newLoanApplication.

Check that reference showed as Broken.

5. Open import dialog again and import same file again.
6. Step 5 can be repeated many times. All references are broken.

See screenshot also.
Comment 1 Michael Nazarov 2007-08-13 16:45:53 UTC
Created attachment 46520 [details]
screenshot
Comment 2 Michael Nazarov 2007-08-13 16:48:23 UTC
BTW this is SHOWSTOPPER for cross project references testing on MacOS platform.
Comment 3 Samaresh Panda 2007-08-13 19:30:20 UTC
Tony, can you please try it on your Mac?
Comment 4 Samaresh Panda 2007-08-13 19:37:00 UTC
If it is indeed reproducible in Mac, please attach the log file...wondering if this is related to yet another JDK
problem in Mac. Seems to be working nicely on Windows and Linux.
Comment 5 tonybeckham 2007-08-13 19:44:26 UTC
I cannot reproduce this with this system configuration-

Product Version: NetBeans IDE Dev (Build 200708130000) 
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 
System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)

Maybe the steps are not clear enough to be done in the exact way to cause the problem.  If you can still reproduce this
can you please give more detailed steps.  

see screenshot.
Comment 6 tonybeckham 2007-08-13 19:45:56 UTC
Created attachment 46539 [details]
Screenshot of not broken references
Comment 7 _ hong_lin 2007-08-14 09:02:01 UTC
Tony,

You did not use cross-project reference feature to reproduce this issue. Please try the following steps again to see if
you still can't reproduce the issue. Thanks.

1. Create a BluePrint1 sample project
2. Create a new BPEL module project BpelModule1. (File -> New Project -> SOA -> BPEL Module)
3. Add Loan Application Sample XML Schema newLoanApplication.xsd to BpelModule1.
4. Configure BluePrint1 project to reference to BpelModule1.
   * Right-click BluePrint1, select Properties
   * In Properties window, select Categories: Project References"
   * Click "Add Project" button to add BpelModule1 as a project reference to BluePrint1.
   * Click OK to close Properties window.
5. Open purchaseOrder.xsd in BluePrint1 project.
6. In Schema view, import newLoanApplication.xsd to purchaseOrder.xsd. (Right-click Reference Schemas
   -> Add -> Import).
7. Expand the import item in the second column. 
   Will see "Broken reference" message in the third column.
8. Import the same file again. 
9. Step 9 can be repeated many times. All references are broken.
Comment 8 Michael Nazarov 2007-08-14 10:18:02 UTC
Yes, Tony, you used both schemas within same project without cross-project reference. This works fine.
Comment 9 tonybeckham 2007-08-14 17:54:49 UTC
Created attachment 46593 [details]
working with cross project reference
Comment 10 tonybeckham 2007-08-14 17:56:07 UTC
Trying again with the detailed steps, using cross project reference, I still see no problem. (see screenshot)  And I
can't add the project again, I guess because it is not broken unless I am still getting the steps wrong.

This was done using Build 200708140000 on Mac.
Comment 11 Samaresh Panda 2007-08-14 18:02:24 UTC
I'll have to mark it worksforme, and please do not create P1 bugs unless you're dead sure. All bugs can't be just P1.
Comment 12 _ hong_lin 2007-08-14 21:53:59 UTC
Hi Sam, we can reproduce this bug here. I tried today as well. We will try again with a new build tomorrow.
It was a stopper for Cross-Project Reference, P1 was necessary. There were some changes, bug fixes this week which
caused Cross-Project Reference not very stable. 
Comment 13 _ hong_lin 2007-08-14 21:54:52 UTC
BTW, Tony, Thanks for verifying this issue for us.
Comment 14 Samaresh Panda 2007-08-14 23:11:37 UTC
It'll be nice if the log file is attached.
Comment 15 _ hong_lin 2007-08-14 23:35:33 UTC
yes, you are right. Will do it tomorrow.
Comment 16 Michael Nazarov 2007-08-15 09:55:05 UTC
I never set P1 just for fun and always check issue at least two times before filing. So I'm "dead sure"!

Hong, thanks for confirmation.
Comment 17 Michael Nazarov 2007-08-15 16:36:16 UTC
Created attachment 46672 [details]
Log
Comment 18 Michael Nazarov 2007-08-15 16:38:06 UTC
Checked with todays (Aug 15) build.
Reproducible as well. Check attached log.
Comment 19 Nam Nguyen 2007-08-16 01:24:17 UTC
This might be related to issue 112458 .  There was some refactoring of BPEL and XSLT projects.
Comment 20 Nam Nguyen 2007-08-16 01:26:48 UTC
I did not mean to mark as FIXED.
Comment 21 Samaresh Panda 2007-08-16 16:05:59 UTC
Looking at the log file, this issue looks same as 98212. I believe if we fix one the other should be fixed. Hoping the
xml-commons source code from apache will give us some clue.
Comment 22 Samaresh Panda 2007-08-16 18:46:01 UTC
Created attachment 46758 [details]
new resolver jar
Comment 23 Samaresh Panda 2007-08-16 19:22:18 UTC
Copy the attached jar to <NB_INSTALL_DIR>/netbeans/ide8/modules/ext and restart the IDE.

You may see a lot of INFO exceptions in console, but thats OK, do not panic. I just want you to verify if the issues get
resolved or not? Once you guys verify the same, I'll see how the console messages can be suppressed.
Comment 24 Michael Nazarov 2007-08-17 12:52:46 UTC
Yes, looks like this jar file helps!
Comment 25 tonybeckham 2007-08-17 17:42:46 UTC
The patch works for this on Mac OS also.  I was actually able to reproduce this (finally) and now I can say that the jar
file resolves the problem.
Comment 26 Samaresh Panda 2007-08-21 00:46:53 UTC
I've couple of questions w.r.t. the naming/patching/licensing of this jar and as soon as I have the right answer I'll
commit the jar. Please stay tuned.
Comment 27 Samaresh Panda 2007-08-22 19:31:57 UTC
Added:
/cvs/libs/resolver/external/resolver.jar,
initial revision: 1.1
/cvs/libs/resolver/external/resolver.patch,v  <--  resolver.patch
initial revision: 1.1
/cvs/libs/resolver/external/resolver-license.txt,v  <--  resolver-license.txt
initial revision: 1.1
/cvs/libs/resolver/external/readme.txt,v  <--  readme.txt
initial revision: 1.1

Removed:
/cvs/libs/resolver/external/resolver-1_1_nb.jar
/cvs/libs/resolver/external/resolver-1_1_nb.patch
/cvs/libs/resolver/external/resolver-1_1_nb-license.txt

Updated:
/cvs/libs/resolver/nbproject/project.properties,
new revision: 1.4; previous revision: 1.3
/cvs/libs/resolver/nbproject/project.xml
new revision: 1.4; previous revision: 1.3
/cvs/libs/resolver/manifest.mf,
new revision: 1.4; previous revision: 1.3
/cvs/libs/resolver/src/org/apache/xml/resolver/Bundle.properties,
new revision: 1.3; previous revision: 1.2
Comment 28 tonybeckham 2007-09-18 22:21:05 UTC
Fixed VERIFIED in Build 200709180000.