cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (Created) (JIRA)" <>
Subject [jira] [Created] (CXF-4054) Unclear error messages given if client policy configuration can't be found.
Date Mon, 23 Jan 2012 17:18:40 GMT
Unclear error messages given if client policy configuration can't be found.

                 Key: CXF-4054
             Project: CXF
          Issue Type: Bug
            Reporter: Glen Mazza
            Assignee: Glen Mazza
            Priority: Minor

Dennis has noted:

With this tutorial:, in particular,
the WSC config file within it:

<beans xmlns=""

   <jaxws:client name="{}DoubleItPort" createdFromAPI="true">
         <entry key="ws-security.callback-handler" value="client.ClientKeystorePasswordCallback"/>
         <entry key="" value=""/>
         <entry key="" value=""/>
         <entry key="ws-security.encryption.username" value="myservicekey"/>


Usage of an incorrect port name in the "name" attribute of the jaxws:client element gives
unhelpful/confusing error messages.  

If the port name doesn't exist at all (e.g., "{}DoubleItXYZ"),
the reader gets this error:

WARNING: Interceptor for {}DoubleItService#{}DoubleIt
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: No signature username found.
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
	at org.apache.cxf.endpoint.ClientImpl.doInvoke(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.frontend.ClientProxy.invokeSync(
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
	at $Proxy24.doubleIt(Unknown Source)
	at client.WSClient.doubleIt(
	at client.WSClient.main(

I'm not sure what should be done in this case -- because a non-matching port name like the
above should indeed be ignored (as it could refer to another port in another WSDL), but perhaps
a clearer error given that no configuration was provided for the client endpoint for the port
being used.

If the service name was erroneously used instead of the port name, this error is given:

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '{}DoubleItService': Error
setting property values; nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'bus' of bean class [org.apache.cxf.service.ServiceImpl]: Bean property 'bus'
is not writable or has an invalid setter method. Does the parameter type of the setter match
the return type of the getter?

Here, an error message given that the port, and not the service name, should be referred to.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message