Need to include Artifact name in Error/Warning messages when processing 
Contributions
-------------------------------------------------------------------------------------

                 Key: TUSCANY-2974
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2974
             Project: Tuscany
          Issue Type: Improvement
          Components: Java SCA Problem Determination
    Affects Versions: Java-SCA-2.0
            Reporter: Mike Edwards
            Assignee: Mike Edwards
            Priority: Minor
             Fix For: Java-SCA-2.0


There are often cases where the processing of artifacts within a Contribution, 
particularly Composite files, where problems are found and are reported.  
However, it is often the case that these messages do not contain the name of 
the artifact involved.  When the Contribution contains many artifacts, this is 
not at all helpful.

Here is a typical example from running one of the OASIS Assembly testcases 
recently:

INFO: Loading contribution: 
file:/C:/Strategy/SCA/OASIS-Assembly/OASIS_SCA_Tests/Assembly/TestCases/target/
17-Apr-2009 09:05:53 
org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
SEVERE: XMLSchema validation error occured in: null ,line = 40, column = 2, 
Message = cvc-complex-type.3.2.2: Attribute 'promotes' is not allowed to appear 
in element 'reference'.

- that "null" indicates a willingness to give the information about the 
artifact, but examining the code shows that the artifact name is not available 
to the error processing system.

The handling of problem reporting must be upgraded so that the artifact name is 
always included in any message.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to