camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deepaktaker <deepakta...@gmail.com>
Subject No type converter available to convert from type: java.lang.String to the required type: org.apache.cxf.Bus
Date Thu, 17 Aug 2017 06:00:58 GMT
Im getting this error intermittent error message. I have no idea why this
happens. could some one please help me identifying the problem.

The problem is during the endpoint creation.

Failed to resolve endpoint:
sf-soap://EmpEmploymentTermination?address=https%3A%2F%2Fapi4preview.sfsf.com%2Fsfapi%2Fv1%2Fsoap&alias=SFSF_T1&batchSize=200&bus=%23sfsfBus&entity=EmpEmploymentTermination&id=EmpTerminationSFEmpTerminationReceiver&messageProtocol=SOAP&operation=querySync&query=SELECT+lastDateWorked%2C+end_date%2Clast_modified_on%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


Here's the Trace log from camel
------------------------------------------

org.apache.cxf.interceptor.StaxInEndingInterceptor@5aa8efd2|
2017 08 11
18:28:56#+00#DEBUG#org.apache.cxf.phase.PhaseInterceptorChain##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Invoking handleMessage on
interceptor org.apache.cxf.jaxws.interceptors.SwAInInterceptor@7ac8eccc|
2017 08 11
18:28:56#+00#DEBUG#org.apache.cxf.phase.PhaseInterceptorChain##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Invoking handleMessage on
interceptor org.apache.cxf.jaxws.interceptors.HolderInInterceptor@19b29c10|
2017 08 11
18:28:56#+00#DEBUG#org.apache.cxf.phase.PhaseInterceptorChain##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Invoking handleMessage on
interceptor
org.apache.cxf.ws.policy.PolicyVerificationInInterceptor@12f1c224|
2017 08 11
18:28:56#+00#DEBUG#org.apache.cxf.ws.policy.PolicyVerificationInInterceptor##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Verified policies for
inbound message.|
2017 08 11
18:28:56#+00#TRACE#org.apache.camel.impl.DefaultComponent##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Creating endpoint
uri=[sf-soap://EmpEmploymentTermination?address=https%3A%2F%2Fapi4preview.sf.com%2Fsfapi%2Fv1%2Fsoap&alias=SFSF_T1&batchSize=200&bus=%23sfsfBus&entity=EmpEmploymentTermination&id=EmpTerminationSFEmpTerminationReceiver&messageProtocol=SOAP&operation=querySync&query=SELECT+lastDateWorked%2C+end_date%2Clast_modified_on%2C+person_id_external+FROM+EmpEmploymentTermination&queryMode=NORMAL&receiveTimeOut=60000&secureStore=%23sfsfSecureStore&sfsfServiceProvider=%23sfsfServiceProvider&trustManagers=%23sfsfTrustManagers&usrDefinedNamespaceMap=%23userdefinedNamespaces],
path=[EmpEmploymentTermination],
parameters=[{address=https://api4preview.sf.com/sfapi/v1/soap,
alias=SFSF_T1, batchSize=200, bus=\#sfsfBus,
entity=EmpEmploymentTermination, id=EmpTerminationSFEmpTerminationReceiver,
messageProtocol=SOAP, operation=querySync, query=SELECT lastDateWorked,
end_date,last_modified_on, person_id_external FROM EmpEmploymentTermination,
queryMode=NORMAL, receiveTimeOut=60000, secureStore=\#sfsfSecureStore,
sfsfServiceProvider=\#sfsfServiceProvider,
trustManagers=\#sfsfTrustManagers,
usrDefinedNamespaceMap=\#userdefinedNamespaces}]|
2017 08 11
18:28:56#+00#DEBUG#org.apache.camel.util.IntrospectionSupport##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Configured property:
address on bean: com.sf.it.rt.adapter.sfsf.core.config.SfsfWsConfig@31355bb2
with value: https://api4preview.sfsf.com/sfapi/v1/soap|
2017 08 11
18:28:56#+00#DEBUG#org.apache.camel.util.IntrospectionSupport##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Configured property: alias
on bean: com.sf.it.rt.adapter.sfsf.core.config.SfsfWsConfig@31355bb2 with
value: SFSF_T1|
2017 08 11
18:28:56#+00#DEBUG#org.apache.camel.util.IntrospectionSupport##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Configured property:
batchSize on bean:
com.sf.it.rt.adapter.sfsf.core.config.SfsfWsConfig@31355bb2 with value: 200|
2017 08 11
18:28:56#+00#TRACE#org.apache.camel.util.IntrospectionSupport##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Setter "public void
com.sf.it.rt.adapter.sfsf.core.config.AbstractSfsfConfig.setBus(org.apache.cxf.Bus)"
with parameter type "interface org.apache.cxf.Bus" could not be used for
type conversions of \#sfsfBus|
2017 08 11
18:28:56#+00#ERROR#org.apache.camel.processor.DefaultErrorHandler##anonymous#Camel
(Global_Pay_EMEA_Reg) thread #752 -
Multicast#na#avphcie#e0726iflmap#web##na#na#na#na#Failed delivery for
(MessageId: ID-vsa2760138-46631-1501882023469-488-12 on ExchangeId:
ID-vsa2760138-46631-1501882023469-488-8). Exhausted after delivery attempt:
1 caught: org.apache.camel.ResolveEndpointFailedException: Failed to resolve
endpoint:
sf-soap://EmpEmploymentTermination?address=https%3A%2F%2Fapi4preview.sfsf.com%2Fsfapi%2Fv1%2Fsoap&alias=SFSF_T1&batchSize=200&bus=%23sfsfBus&entity=EmpEmploymentTermination&id=EmpTerminationSFEmpTerminationReceiver&messageProtocol=SOAP&operation=querySync&query=SELECT+lastDateWorked%2C+end_date%2Clast_modified_on%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




Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                      
                                
Elapsed (ms)
[route1519         ] [route1519         ]
[quartz2://GlobalPayEMEARegTimerEventDefinition2495371?fireNow=true&trigger.rep]
[     14008]
[Process_1         ] [CallActivity_22_15] [setHeader[scriptFile]                         
                              
] [         0]
[Process_1         ] [setHeader17213    ] [setHeader[scriptFileType]                     
                              
] [         1]
[Process_1         ] [bean3029          ] [bean[ref:scriptprocessor
method:process]                                      ] [        11]
[Process_1         ] [CallActivity_290_1] [direct:Process_4                              
                              
] [      1585]
[Process_4         ] [CallActivity_48_15] [setHeader[scriptFile]                         
                              
] [         1]
[Process_4         ] [setHeader17139    ] [setHeader[scriptFileType]                     
                              
] [         0]
[Process_4         ] [bean3015          ] [bean[ref:scriptprocessor
method:process]                                      ] [        18]
[Process_4         ] [CallActivity_70_15] [setHeader[SystemDate]                         
                              
] [         1]
[Process_4         ] [ServiceTask_74_150] [setHeader[destinationManagerImpl]             
                              
] [         1]
[Process_4         ] [setHeader17140    ] [setHeader[destinationAlias]                   
                              
] [         0]
[Process_4         ] [setHeader17141    ] [setHeader[AutheticationType]                  
                              
] [         1]
[Process_4         ] [setHeader17142    ] [setHeader[SystemQueryOption]                  
                              
] [         1]
[Process_4         ] [setHeader17143    ] [setHeader[retrieveAllPages]                   
                              
] [         1]
[Process_4         ] [setHeader17144    ] [setHeader[clientSidePageSize]                 
                              
] [         0]
[Process_4         ] [setHeader17145    ] [setHeader[ODataMethod]                        
                              
] [         1]
[Process_4         ] [setHeader17146    ] [setHeader[Address]                            
                              
] [         0]
[Process_4         ] [setHeader17147    ] [setHeader[Content-Type]                       
                              
] [         1]
[Process_4         ] [setHeader17148    ] [setHeader[ComponentContentType]               
                              
] [         1]
[Process_4         ] [to5341            ] [odata:/v2:PayPeriod                           
                              
] [      1542]
[Process_4         ] [CallActivity_89_15] [setHeader[payDate]                            
                              
] [         1]
[Process_4         ] [setHeader17149    ] [setHeader[payPeriodEndDate]                   
                              
] [         0]
[Process_4         ] [setHeader17150    ] [setHeader[payPeriodBeginDate]                 
                              
] [         0]
[Process_4         ] [CallActivity_284_1] [setHeader[scriptFile]                         
                              
] [         1]
[Process_4         ] [setHeader17151    ] [setHeader[scriptFileType]                     
                              
] [         1]
[Process_4         ] [bean3016          ] [bean[ref:scriptprocessor
method:process]                                      ] [        10]
[Process_1         ] [CallGateway_293_15] [when[simple{${header.payFlag} ==
'true' \|\| ${property.ManualRun} == 'YES'}]cho] [     11332]
[Process_1         ] [ServiceTask_139_15]
[sf-soap:FO_company?entity=FO_company&messageProtocol=SOAP&operation] [     
1272]
[Process_1         ] [CallActivity_140_1] [setHeader[countryCode]                        
                              
] [         1]
[Process_1         ] [ParallelGateway_1_] [multicast                                     
                              
] [     10058]
[Process_1         ] [to5349            ] [direct://SequenceFlow_2                       
                              
] [     10049]
[route1520         ] [CallActivity_32_15] [direct:Process_8                              
                              
] [     10048]
[Process_8         ] [CallGateway_135_15] [when[simple{${property.ManualRun}
== 'YES'}]choice[]                          ] [     10049]
[Process_8         ] [CallActivity_67_15] [setHeader[scriptFile]                         
                              
] [         1]
[Process_8         ] [setHeader17152    ] [setHeader[scriptFileType]                     
                              
] [         0]
[Process_8         ] [bean3017          ] [bean[ref:scriptprocessor
method:process]                                      ] [        58]
[Process_8         ] [ServiceTask_61_150]
[sf-soap:CompoundEmployee?entity=CompoundEmployee&messageProtocol=SO] [     
2059]
[Process_8         ] [CallGateway_124_15] [when[xpath{XPath:
count(//CompoundEmployee)=0}]choice[]                       ] [      7930]
[Process_8         ] [ServiceTask_2     ]
[enrich[{sf-soap:FO_costCenter?entity=FO_costCenter&messageProtocol=] [     
7909]
[Process_8         ] [ServiceTask_3     ]
[enrich[{sf-soap:EmpEmploymentTermination?entity=EmpEmploymentTermin] [        
7]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------org.apache.camel.ResolveEndpointFailedException:
Failed to resolve endpoint:
sf-soap://EmpEmploymentTermination?address=https%3A%2F%2Fapi4preview.sfsf.com%2Fsfapi%2Fv1%2Fsoap&alias=SFSF_T1&batchSize=200&bus=%23sfsfBus&entity=EmpEmploymentTermination&id=EmpTerminationSFEmpTerminationReceiver&messageProtocol=SOAP&operation=querySync&query=SELECT+lastDateWorked%2C+end_date%2Clast_modified_on%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
	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:588)
	at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
	at
org.apache.camel.util.ExchangeHelper.resolveEndpoint(ExchangeHelper.java:89)
	at org.apache.camel.processor.Enricher.resolveEndpoint(Enricher.java:291)
	at org.apache.camel.processor.Enricher.process(Enricher.java:165)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
com.sf.it.op.agent.collector.camel.MplInterceptor$MplAsyncProcessor.process(MplInterceptor.java:184)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
	at
org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:117)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
com.sf.it.op.agent.collector.camel.MplInterceptor$MplAsyncProcessor.process(MplInterceptor.java:184)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
	at
org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:117)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
com.sf.it.op.agent.collector.camel.MplInterceptor$MplAsyncProcessor.process(MplInterceptor.java:184)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
	at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
com.sf.it.op.agent.collector.camel.MplInterceptor$MplAsyncProcessor.process(MplInterceptor.java:184)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
	at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
com.sf.it.op.agent.collector.camel.MplInterceptor$MplAsyncProcessor.process(MplInterceptor.java:184)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:95)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)
	at
org.apache.camel.processor.MulticastProcessor.doProcessParallel(MulticastProcessor.java:827)
	at
org.apache.camel.processor.MulticastProcessor.access$200(MulticastProcessor.java:85)
	at
org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:320)
	at
org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:305)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:807)
Caused by: 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
	at
org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:588)
	at
org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:616)
	at
org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:473)
	at
org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:483)
	at
org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:255)
	at
org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:259)
	at
com.sf.it.rt.adapter.sfsf.component.SfsfComponent.createConfig(SfsfComponent.java:81)
	at
com.sf.it.rt.adapter.sfsf.component.SfsfComponent.createEndpoint(SfsfComponent.java:30)
	at
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:114)
	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:568)
	... 53 common frames omitted
|
2017 08 11
18:28:56#+00#ERROR#com.sf.it.rt.adapter.sfsf.component.internal.SfsfOnCompletionService##anonymous#DefaultQuartzScheduler-Global_Pay_EMEA_Reg_Worker-1#na#avphcie#e0726iflmap#web##na#na#na#na#Execution
is failed for camelContextId Global_Pay_EMEA_Reg, sfsfId
PicklistSFPickListReceiver|
2017 08 11 
--------------------------------------------------

Thanks in advance.



--
View this message in context: http://camel.465427.n5.nabble.com/No-type-converter-available-to-convert-from-type-java-lang-String-to-the-required-type-org-apache-cxs-tp5810933.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message