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 118282 - BPEL BluePrint1 build fails on Mac
Summary: BPEL BluePrint1 build fails on Mac
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-09 19:17 UTC by tonybeckham
Modified: 2007-10-19 19:31 UTC (History)
3 users (show)

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 tonybeckham 2007-10-09 19:17:15 UTC
Product Version: NetBeans IDE Dev (Build 200710090000)
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)

Steps to reproduce:
1. Create BluePrint1 sample (Sample) and BPEL module (Module).
2. Add to Module sample loan application xml schema.
3. Add to Sample reference to Module.
4. Import to purchaseOrder reference to newLoanApplication.
5. Build Sample.

Build fails :(
Comment 1 tonybeckham 2007-10-09 19:18:47 UTC
Build fail output:

Created dir: /Users/Tony/NetBeansProjects/BluePrint11/BluePrint11/build
Found validation errors:
Error: Invalid encoding name "MacRoman".
Error: Invalid encoding name "MacRoman".
BUILD FAILED (total time: 0 seconds)
Comment 2 Vladimir Yaroslavskiy 2007-10-11 10:55:41 UTC
The problem is in xml/wsdl validation, in org.netbeans.modules.xml.wsdl.validator.WSDLInlineSchemaValidator

How to reproduce on Windows XP:

1. Create SOA sample SynchronousSample
2. Open SynchronousSample.xsd in source editor
3. In first line set encoding="MacRoman"
4. Build the project

See:
Found validation errors:
Error: Invalid encoding name "MacRoman".
Comment 3 Nam Nguyen 2007-10-11 18:09:29 UTC
Based on Tony assessment, assign to Kini for evaluation.  Seem to be more than P3 if the sample could not build (on Mac).
Comment 4 Shivanand Kini 2007-10-12 03:24:55 UTC
Fixed, enabled allow-java-encodings feature on the schemafactory.

This also seems to occur in the schema editor too. request to file separate issue.
Comment 5 Shivanand Kini 2007-10-17 22:49:48 UTC
not fixed
Comment 6 Shivanand Kini 2007-10-18 20:03:06 UTC
Tony, how is the netbeans running with MacRoman by default, when on Mac OS X UTF8 is the default? Do you pass the
encoding, when you run netbeans
Comment 7 tonybeckham 2007-10-18 20:10:56 UTC
I never specify anything when running the IDE.
Comment 8 Shivanand Kini 2007-10-18 20:47:37 UTC
Tony, as part of http://www.netbeans.org/issues/show_bug.cgi?id=112814, 'yaroslavskiy' changed the blueprint samples
(removed the project encoding), can you verify whether this still occurs.
Comment 9 _ hong_lin 2007-10-19 00:40:47 UTC
Since this issue affects all SOA samples, upgrade it to P1. It is a beta2 stopper.

Tony, would you please clarify if it is only reproduced on Mac OS platform?

Thanks,
Hong
Comment 10 _ hong_lin 2007-10-19 00:49:56 UTC
Just re-read the issue report, looks like it might be reproduced on WinXP as well. 

------- Additional comments from yaroslavskiy Thu Oct 11 09:55:41 +0000 2007 -------

The problem is in xml/wsdl validation, in org.netbeans.modules.xml.wsdl.validator.WSDLInlineSchemaValidator

How to reproduce on Windows XP:
Comment 11 Nam Nguyen 2007-10-19 01:19:12 UTC
This is confusing.  

Kini:  If it is determined the fix is in the SOA sample projects then we should change category and owner properly, right?
Comment 12 Shivanand Kini 2007-10-19 01:52:42 UTC
what I am trying to see is whether this is a P1, I mean, whether the user will easily get to this state, without
manually doing anything. On windows, I do not see this problem.

Most of the time, people do not change the encoding manually, because most people do not understand them.

There is surely a problem with the schema validation part both in the Schema Editor and the WSDL editor. I am not sure
though which encodings cause this error, nor how to fix this issue.



Comment 13 Shivanand Kini 2007-10-19 02:24:10 UTC
I just downloaded the trunk build #4037 and installed it on a Mac.

Product Version: NetBeans IDE Dev (Build 20071018235728)
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)
Userdir: /Users/abuilds/.netbeans/dev

The build does not fail.
Comment 14 tonybeckham 2007-10-19 04:25:04 UTC
Do not see the problem on Mac w/ Beta2:

Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710181000)
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)



Or on XP w/ Beta2 following the steps provided by yaroslavskiy:

Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710181000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)


I think it was fixed by either "allow-java-encodings feature on the schemafactory" or the fix for issue 112814
Comment 15 tonybeckham 2007-10-19 05:01:03 UTC
see my last comment, I should have marked this as resolved then.
Comment 16 Shivanand Kini 2007-10-19 17:18:59 UTC
it was fixed by the IZ 112814.
Comment 17 tonybeckham 2007-10-19 19:30:33 UTC
Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710181000)
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)
Comment 18 tonybeckham 2007-10-19 19:31:30 UTC
Verified