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 178465 - DPL project builds successfully in IDE but fails in commandline
Summary: DPL project builds successfully in IDE but fails in commandline
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-11 02:29 UTC by senthilprabhu
Modified: 2009-12-18 07:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to reproduce (48.80 KB, application/octet-stream)
2009-12-11 02:29 UTC, senthilprabhu
Details
Commandline Build Output (1.33 KB, text/plain)
2009-12-11 02:31 UTC, senthilprabhu
Details
IDE Build Output (11.43 KB, text/plain)
2009-12-11 02:34 UTC, senthilprabhu
Details
Test project (11.33 KB, application/zip)
2009-12-14 04:50 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description senthilprabhu 2009-12-11 02:29:52 UTC
Created attachment 92404 [details]
Project to reproduce

I have attached the DynamicPartnerLink project which uses addressing.xsd file in the WSDL file. When building this project in IDE, the project builds.

But when built in commandline, build fails with the following error
[validate-project] [Fatal Error] :1:1: Content is not allowed in prolog.
[validate-project] E:/space/jdev/sp201017/paths/jbidev/jbi/shasta/engines/bpel/nb/DPL_BpelEPRInRequestBpel/src/BpelEPRInRequest.bpel:0:
8
[validate-project] ERROR: In part "EPR", attribute element's value "wsa:EndpointReference" is not a valid xml schema element available i
n this wsdl file. : Specify a valid schema element value for element attribute.

Issue is found in GFESB build: 20091210-0720
Comment 1 senthilprabhu 2009-12-11 02:31:55 UTC
Created attachment 92405 [details]
Commandline Build Output
Comment 2 Sergey Lunegov 2009-12-11 02:34:06 UTC
Vladimir, please take a look ASAP.
Comment 3 senthilprabhu 2009-12-11 02:34:23 UTC
Created attachment 92406 [details]
IDE Build Output
Comment 4 Vladimir Yaroslavskiy 2009-12-12 06:57:25 UTC
the problem is in addressing.xsd file which contains special bytes (Byte-Order Mark, BOM). Parser which is called from command line doesn't process these bytes correctly and warns about invalid content.

The issue will be fixed in gfesbv23 only: more complex investigations are required. Note that there is easy workaround - delete these bytes from the schema.
Comment 5 Vladimir Yaroslavskiy 2009-12-14 04:50:08 UTC
Created attachment 92516 [details]
Test project

Steps to reproduce:

Unzip and build Synchronous project from command line.

Error message before fix:
[Fatal Error] :1:1: Content is not allowed in prolog.
...

After fix the project should be built successfully.
Comment 6 Vladimir Yaroslavskiy 2009-12-14 04:51:11 UTC
Investigation shows that the fix is easy and no risky, therefore fix will be in gfesbv22 too.
Comment 7 Vladimir Yaroslavskiy 2009-12-14 06:26:30 UTC
fixed in gfesbv23: 538b2bbd91e9
fixed in gfesbv22: 913b2c9f5de5
Comment 8 senthilprabhu 2009-12-18 07:52:53 UTC
The project is building successfully in the commandline.

[:C:/Documents and .../Desktop/Synchronous] nbant clean dist_se
Buildfile: build.xml

do-clean:
   [delete] Deleting directory C:\Documents and Settings\sp201017\Desktop\Synchronous\build

do-dist:
    [mkdir] Created dir: C:\Documents and Settings\sp201017\Desktop\Synchronous\build
     [copy] Copying 4 files to C:\Documents and Settings\sp201017\Desktop\Synchronous\build
      [jar] Building jar: C:\Documents and Settings\sp201017\Desktop\Synchronous\build\SEDeployment.jar

BUILD SUCCESSFUL
Total time: 11 seconds


This issue is verified to work properly in GFESB build 20091217-0720. This issue can be closed.