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 86958 - Validation to find duplicate entries - SA00014
Summary: Validation to find duplicate entries - SA00014
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
: 92660 92661 134112 (view as bug list)
Depends on:
Blocks: 92660
  Show dependency tree
 
Reported: 2006-10-11 19:16 UTC by kiran_bhumana
Modified: 2008-10-16 00:25 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
attachment from the user who reported this bug to the engine (5.68 KB, application/octet-stream)
2006-10-11 19:16 UTC, kiran_bhumana
Details
wsdl1 (4.04 KB, application/octet-stream)
2006-10-12 18:15 UTC, kiran_bhumana
Details
wsdl2 (4.18 KB, application/octet-stream)
2006-10-12 18:15 UTC, kiran_bhumana
Details
Test project (9.36 KB, application/x-compressed)
2008-05-16 12:39 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kiran_bhumana 2006-10-11 19:16:24 UTC
BPEL project validation. when two artifacts resolved from one source file, like
one BPEL file, or one WSDL file, or one XSD file, will result in duplicate
values validation needs to ERR on such situations. A duplicate is identified if
an element's NCName and it's namespace matches exactly with another one.

BPEL SE engine throws the following for the attached deployment. To look at the
specific files deployed to the engine, i think you need to look in the MSNET.jar
within the MS.zip.

Component: com.sun.bpelse-1.0-2
    ERROR:(BPELSE)Service unit failed to load deployment error:
sch-props-correct.2: Duplicate global type: QuoteData@http://ws.cdyne.com/
(Original global type found in file: null) Detailed Message :
	1: SEVERE :Duplicate global type: QuoteData@http://ws.cdyne.com/ (Original
global type found in file: null)
Comment 1 kiran_bhumana 2006-10-11 19:16:59 UTC
Created attachment 35119 [details]
attachment from the user who reported this bug to the engine
Comment 2 Denis Anisimov 2006-10-12 09:43:51 UTC
Please provide localization of problem.

Please point to concrete declarations and files that throw a problem.
From current description I need to perform to many steps and analysis
of attached files without any additional information from you.

You need to describe the problem as much as possible when you file a bug.
Comment 3 kiran_bhumana 2006-10-12 18:15:06 UTC
Created attachment 35150 [details]
wsdl1
Comment 4 kiran_bhumana 2006-10-12 18:15:18 UTC
Created attachment 35151 [details]
wsdl2
Comment 5 kiran_bhumana 2006-10-12 18:17:16 UTC
attached the WSDL files that were the source of this problem. These files define
QuoteData two times and hence the ambiguity. and this same extension can be
drawn XSD files that were imported into the WSDLs.
Comment 6 Denis Anisimov 2006-10-13 08:35:53 UTC
Ok, 
I believe you mean that QuoteData complex type in inline xsd definition is
defined in both wsdl files.
This type is defined in the same namespace in both wsdl files.
So there is no way to find appropriate type when one used qname
{http://ws.cdyne.com/}QuoteData.
Yes, this is a problem. We can provide some assistance with such issues.
But this is not a bug for BPEL .
This is RFE.
Comment 7 Denis Anisimov 2006-11-09 12:30:36 UTC
This is SA00014 rule in static analysis rule set.
Comment 8 Sergey Lunegov 2007-02-13 10:00:42 UTC
Need tofix it in FCS
Comment 9 Sergey Lunegov 2007-02-13 10:02:18 UTC
*** Issue 92660 has been marked as a duplicate of this issue. ***
Comment 10 Nikita Krjukov 2007-03-09 14:09:09 UTC
*** Issue 92661 has been marked as a duplicate of this issue. ***
Comment 11 Vladimir Yaroslavskiy 2007-04-05 13:49:05 UTC
*** Issue 97601 has been marked as a duplicate of this issue. ***
Comment 12 Jiri Prox 2007-09-17 20:21:54 UTC
Obsolete milestone, please reevaluate
Comment 13 Sergey Lunegov 2007-10-25 11:47:18 UTC
For Sierra.
Comment 14 Andrei Chistiakov 2008-01-17 11:08:52 UTC
Changed target milestone from Sierra to 6.1 in order to display correct info on
NB 6.1 dashboard
Comment 15 Vladimir Yaroslavskiy 2008-02-19 09:43:45 UTC
SA00014:

A WS-BPEL process definition MUST be rejected if the imported documents contain conflicting definitions of a component
used by the importing process definition (as could be caused, for example, when the XSD redefinition mechanism is used).
Comment 16 Kirill Sorokin 2008-02-19 13:32:33 UTC
It is worth noting, that it is feasible to treat really identical types declarations as warnings, not errors. Real
conflicts (i.e. identical names, different contents) should be treated as errors, of course.
Comment 17 Kirill Sorokin 2008-04-29 05:27:45 UTC
*** Issue 134112 has been marked as a duplicate of this issue. ***
Comment 18 Sergey Lunegov 2008-05-05 09:05:11 UTC
It worths to implement.
Comment 19 Vladimir Yaroslavskiy 2008-05-16 12:38:07 UTC
fixed.
Comment 20 Vladimir Yaroslavskiy 2008-05-16 12:39:34 UTC
Created attachment 61478 [details]
Test project
Comment 21 ggenipudi 2008-10-16 00:25:52 UTC
tested and verified the attached project using NetBeans IDE 6.5 RC1 (Build 200810151402) and the expected warning
message is thrown during build time.

init:
clean:
init:
Created dir: C:\bpprojects\wsdlwithsameelement\SA000014\build
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:3: 1
WARNING: Documents imported in the process contain identical definition of the component "QuoteDataIdentical":
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.xsd:16: 4
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSampleDiff.wsdl:21: 8

C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:22: 4
WARNING: The process has duplicate imports.

C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:3: 1
WARNING: Documents imported in the process contain identical definition of the component "requestMessageIdentical":
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.wsdl:23: 4
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSampleIdentical.wsdl:19: 4

C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:3: 1
ERROR: Documents imported in the process contain conflicting definition of the component "QuoteDataDiff":
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.xsd:36: 4
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSampleDiff.wsdl:40: 6

C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:3: 1
ERROR: Documents imported in the process contain conflicting definition of the component "requestMessageDiff":
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.wsdl:27: 4
C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSampleIdentical.wsdl:23: 4

Found validation error(s).
BUILD FAILED (total time: 0 seconds)