-
1. Re: NoSuchMethodError when invoking getContext().addInterceptStrategy()
wfreitas Jan 21, 2009 12:21 PM (in response to liave)Hi,
I've checked the Camel javadocs. The CamelContext.addInterceptStrategy(...) method is available for Camel 1.5 but it is not for Camel 1.4.
This looks like a classpath issue. Maybe you have a POM dependency on Camel 1.5 at build time but the SMX Camel version is 1.4.
Can you paste or attach the camel SU pom.xml and xbean.xml files?
---
Wilson Freitas
Software Architect
Vetta Technologies
-
2. Re: NoSuchMethodError when invoking getContext().addInterceptStrategy()
liave Jan 21, 2009 2:43 PM (in response to wfreitas)Hi Wilson,
Thanks for your follow up - i'm really stuck with this..
Well, here is my pom.xml of the Camel SU:
*pom.xml*
And here is my SA\s classpath (in case you spot a missing jar..)
.classpath
<classpathentry kind="src" path="src/main/resources" excluding="*/.java"/>
Many thanks.
Liav.
-
3. Re: NoSuchMethodError when invoking getContext().addInterceptStrategy()
wfreitas Jan 21, 2009 3:06 PM (in response to liave)Hello again Liav,
Looks like the forum editor is not very good on posting XML text
Can you attach the files instead of pasting the content text?
Thank you.
--
Wilson Freitas
-
4. Re: NoSuchMethodError when invoking getContext().addInterceptStrategy()
liave Jan 21, 2009 4:02 PM (in response to wfreitas)Sure.
Attached you'll find the following files:
1. pom.xml
2. camel-context.xml
3. .classpath
4. My Router class
6. My interceptor class
Many thanks.
-
pom.xml 2.2 KB
-
OxpRouteBuilder.java 391 bytes
-
camel-context.xml 586 bytes
-
myClasspath 8.3 KB
-
-
5. Re: NoSuchMethodError when invoking getContext().addInterceptStrategy()
davsclaus Jan 22, 2009 1:47 PM (in response to liave)I can see Camel 1.4.x in the classpath from above
Could you try to upgrade them to a 1.5 version such as:
1.5.1.0-fuse.jar
1.5.2.0-fuse.jar
1.5.3.0-fuse.jar
-
6. Re: NoSuchMethodError when invoking getContext().addInterceptStrategy()
liave Jan 24, 2009 2:24 PM (in response to davsclaus)Hi Claus,
Nop - still i got the same error:
java.lang.NoSuchMethodError: org.apache.camel.CamelContext.addInterceptStrategy(...)
I added 1.5.3.0-fuse version to my camel-core & added it to the classpath as follows:
I'm really passionate to get this interceptor running so i'll be able to 'know' my 'from' end-point in my processor unit.
Can you think of anything?
Thanks,
Liav.
-
7. Re: NoSuchMethodError when invoking getContext().addInterceptStrategy()
davsclaus Jan 26, 2009 2:06 PM (in response to liave)Hi
I have no clue why it does not work.
How do you start it? You have asked for help in many forums so its hard to keep track, with the status.
As a workaround you can kinda add some property to the Exchange in a processor that has a fixed name
from(x).process(set a fixed value here in exchange property)... continue with routing as normal
And then you can check if the exchange.getProperty("keyToFixedValue") that contains the fixed value.
I know its a poor man substitute.
Otherwise take some time and create a sample project with your problem. Add a readme.txt with full instructions how to start and get the error. And the .zip it and let some others have a look.
-
8. Re: NoSuchMethodError when invoking getContext().addInterceptStrategy()
njiang Feb 4, 2009 11:20 PM (in response to liave)Just a note for it.
The servicemix-camel component will take the charge of loading came-core, camel-spring jars for the servicemix-camel. So please make sure you get the right version of servicemix-camel component.