Hi,
I use servicemix-fuse 3.3.1.3 with Camel 1.4.
In my Camel Builder i try to add interceptor & it's causing me an
NoSuchMethodError.
My configure method is:
public void configure() throws Exception {
getContext().addInterceptStrategy(new MyFromEndpointInterceptor());
from("jbi:service:http://oxp/oXpInternalService")
.process(new OXpServicesAuthenticationProcessor());
}
This is the context i use (i println it)
org.apache.camel.spring.SpringCamelContext
My exception is at deploy time:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'camel:beanPostProcessor': Cannot resolve reference to bean
'camel' while setting bean property 'camelContext'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
camel': Invocation of init method failed; nested exception is
java.lang.NoSuchMethodError:
org.apache.camel.CamelContext.addInterceptStrategy(Lorg/apache/camel/spi/InterceptStrategy;)
Thanks in advance,
Liav.
--
View this message in context:
http://www.nabble.com/Why-getContext%28%29.addInterceptStrategy-is-throwing-an-exception--tp21551665s22882p21551665.html
Sent from the Camel - Users mailing list archive at Nabble.com.