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&messageProtocol=SOAP&operation=querySync&receiveTimeOut=60000&alias=sfsf_ace2048_cred&batchSize=1&address=https://salesdemo4.successfactors.com/sfapi/v1/soap&id=Receiver&queryMode=NORMAL&query=SELECT
lastDateWorked, last_modified_on, end_date, person_id_external FROM
EmploymentTermination&trustManagers=#sfsfTrustManagers&sfsfServiceProvider=#sfsfServiceProvider&secureStore=#sfsfSecureStore&bus=#sfsfBus&usrDefinedNamespaceMap=#userdefinedNamespaces&batchProcess=true&channelNameSuffix=Receiver&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.