cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenny MacLeod (JIRA)" <>
Subject [jira] Updated: (CXF-2327) [SoapBindingFactory] Verify QName properties before calling constructor
Date Wed, 01 Jul 2009 12:08:47 GMT


Kenny MacLeod updated CXF-2327:

    Affects Version/s: 2.2.2

> [SoapBindingFactory] Verify QName properties before calling constructor
> -----------------------------------------------------------------------
>                 Key: CXF-2327
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: Soap Binding
>    Affects Versions: 2.1.2, 2.2.2
>            Reporter: Kenny MacLeod
>            Priority: Minor
> The QName constructor verifies that the localPart property is not null. However, when
this exception is thrown during a WSDL2Java invocation, all you get is a pretty useless "local
part cannot be "null" when creating a QName" message. 
> It would be good if CXF were to check these values before constructing a QName, and if
the localPart is null then throw a more meaningful exception, indicating where in the WSDL
it is occurring.
> A concrete example is the SoapBindingFactory.initializeMessage method.  If QName's constructor
throws an exception anywhere in here, it's very hard to figure out which part of the WSDL
was bad, since there are so many nested structures. If this method were to proactively check
that localPart was null before constructing QName, it could throw an excepyion indicating
which part of the WSDL was at fault, making diagnosis a lot easier.

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

View raw message