I have built a custom Soap adapter using apache camel. It works just fine,
But once in while i get this error

No type converter available to convert from type: java.lang.String to the
required type: org.apache.cxf.Bus

Here's my Spring beans.xml

    <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
xmlns:cxfcore="http://cxf.apache.org/blueprint/core";>
        <cxfcore:bus bus="sfsfBus" id="Pagination.sfsfEndPoint"/>
        <camel:camelContext id="Pagination" streamCache="true">
                <camel:route id="Process_2">
                        <camel:from uri="direct:Process_2"/>
                        <camel:to id="ServiceTask_1_1501820435706"
uri="sap-soap:EmploymentTermination?entity=EmploymentTermination&amp;messageProtocol=SOAP&amp;operation=querySync&amp;receiveTimeOut=60000&amp;alias=sfsf_ace2048_cred&amp;batchSize=1&amp;address=https://salesdemo4.successfactors.com/sfapi/v1/soap&amp;id=Receiver&amp;queryMode=NORMAL&amp;query=SELECT
lastDateWorked, last_modified_on, end_date, person_id_external FROM
EmploymentTermination&amp;trustManagers=#sfsfTrustManagers&amp;sfsfServiceProvider=#sfsfServiceProvider&amp;secureStore=#sfsfSecureStore&amp;bus=#sfsfBus&amp;usrDefinedNamespaceMap=#userdefinedNamespaces&amp;batchProcess=true&amp;channelNameSuffix=Receiver&amp;cookieHandler=#httpSessionCookieHandler"/>
                </camel:route>
        </camel:camelContext>
</blueprint>    

The Pojo is here


    import org.apache.cxf.Bus;
    public class AbstractSfsfConfig {
    private Bus bus;
    public AbstractSfsfConfig(String uriRemaining) {
    this.type = uriRemaining;
    }
    public Bus getBus() {
    return bus;
    }
    public void setBus(Bus bus) {
    this.bus = bus;
    }
    }


The complete error message is this

    Failed to resolve endpoint:
soap://EmploymentTermination?address=https%3A%2F%2Fapi4preview.com%2Fsfapi%2Fv1%2Fsoap&alias=SFSF_T1&batchSize=200&bus=%23sfsfBus&entity=EmpEmploymentTermination&id=EmpTerminationSFEmpTerminationReceiver&messageProtocol=SOAP&operation=querySync&query=SELECT+lastDateWorked%2C+last_modified_on%2C+end_date%2C+person_id_external+FROM+EmpEmploymentTermination&queryMode=NORMAL&receiveTimeOut=60000&secureStore=%23sfsfSecureStore&sfsfServiceProvider=%23sfsfServiceProvider&trustManagers=%23sfsfTrustManagers&usrDefinedNamespaceMap=%23userdefinedNamespaces
due to: Could not find a suitable setter for property: bus as there isn't a
setter method with same type: java.lang.String nor type conversion possible:
No type converter available to convert from type: java.lang.String to the
required type: org.apache.cxf.Bus with value #sfsfBus]], cause:
java.lang.IllegalArgumentException: Could not find a suitable setter for
property: bus as there isn't a setter method with same type:
java.lang.String nor type conversion possible: No type converter available
to convert from type: java.lang.String to the required type:
org.apache.cxf.Bus with value #sfsfBus


to me it looks like the Spring is returning String instead of
org.apache.cxf.Bus object. can some one help me figure out what exactly is
going wrong.




--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-bus-returns-String-instead-of-a-org-apache-cxf-Bus-object-tp5782767.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to