On Mon, Oct 12, 2009 at 3:54 AM, Simon Laws <[email protected]> wrote:
> As we've been running the otests we have on occasion updated error
> message strings to include the OASIS test number or the OASIS
> compliance number. Sometimes we haven't. We should choose an approach
> and stick with it.
>
> If we are going to put something iin s my preference would be for the
> compliance number as this is likely to be more immediately useful to
> the user who sees the error message. i.e. they can look it up directly
> in the spec.
>
> They can't do this with the test number as they would have to map test
> number to tests assertion number and then onto the compliance number
> from the spec.
>
> I'm happy to fix up all the spec related error messages if people want
> to do this.
>
I think we need to be careful here, and be consistent with the spec if
we choose to go this way.
While bringing up the Atom binding, I was getting some errors messages
in some tests :
Caused by: org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200903}, Component:
AtomAggregator] - [ASM_4008] No value configured on a mustSupply
property: Component = AtomAggregator Property = feedAuthor
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:285)
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:561)
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:120)
So, considering the ASM error code, and that I was familiar with the
spec to know that this code was comming from it, the first thing that
came to mind was to go research the Assembly spec, which lead me too :
- There is no ASM_4008, but ASM40008
- The ASM40008 message says : "The value of the property @element
attribute MUST be the QName of an XSD global element." which is not
related to the error I'm getting
- The actual error is referring to ASM40011
Considering this, I'm wondering if these error codes might cause more
confusion to users/developers.
--
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/