Re: thread error with java.lang.Thread.State: TIMED_WAITING from jconsole

2012-02-07 Thread Francesco Malvezzi
Babak Vahdat wrote Where does that stack trace blows up on the JConsole or on your App side? Can you attach that huge stack trace as an Attachment to your Post? First of all, thank you for helping me to post a sensible message. Stack trace is too long, but you can glance it at:

Re: ZooKeeper Component Failover

2012-02-07 Thread Ioannis Canellos
The component uses a ZookeeperConfiguration object, on which you can add as many servers as you wish. So it would be something like this: ZooKeeperConfiguration configuration = new ZooKeeperConfiguration(); configuration.setServers(serversList); ZooKeeperComponent zookeeper = new

RE: Web service with more than one input in spring DSL.

2012-02-07 Thread Omar Atia
Dear Willem, Please can u provide example , for the list or object array ? as we tried object array , CXF consider it as one parameter and raise the following exception : [camel Thread 6 - MinaThreadPool] MinaProducer$ResponseHandler INFO [/0.0.0.0:5566] RECEIVED:

Problem with Smooks/TypeConverter since camel 2.9.0

2012-02-07 Thread OrackBahama
Hi, since the migration to camel version 2.9.0, I'm experiencing the following problem (in pseudocode for clarity ;-)). ( Was working in versions 2.7.x ... ) from( file://inbox-with-flatfiles-in-textformat-no-xml...) .to( smooks://smooks-config.xml ) ; causes the following exception: Caused

Re: Problem with Smooks/TypeConverter since camel 2.9.0

2012-02-07 Thread Claus Ibsen
Hi Which smooks component are you using? The one from the Smooks project itself? Or the old deprecated from camel-extra ? On Tue, Feb 7, 2012 at 10:55 AM, OrackBahama jdorfsch...@metadok.de wrote: Hi, since the migration to camel version 2.9.0, I'm experiencing the following problem (in

Re: thread error with java.lang.Thread.State: TIMED_WAITING from jconsole

2012-02-07 Thread Babak Vahdat
Hi, You do launch your Camel application under a pretty old JDK (20.1-b02) installed on your box as well and *not* the (26-b03) build! - Remove the bin directory of this old JDK installation from your unix PATH and put the bin directory of the one you already mentioned by your post - Set

Re: thread error with java.lang.Thread.State: TIMED_WAITING from jconsole

2012-02-07 Thread Claus Ibsen
Hi This is expected. The TIMED_WAITING thread is a JmsConsumer thread which pickup new messages from the ActiveMQ message queue. Currently there queue is empty so there is no messages to pickup and therefore the thread is waiting. If you put messages on that queue, then the thread will pickup

Re: thread error with java.lang.Thread.State: TIMED_WAITING from jconsole

2012-02-07 Thread Babak Vahdat
And maybe do a mvn clean install beforehand as well to make sure your class files are generated using the correct JDK compiler. Babak -- View this message in context: http://camel.465427.n5.nabble.com/thread-error-with-java-lang-Thread-State-TIMED-WAITING-from-jconsole-tp5459905p5462936.html

RE: Web service with more than one input in spring DSL.

2012-02-07 Thread Omar Atia
Thanks I understand it from the following code : http://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java -Original Message- From: Omar Atia Sent: Tuesday, February 07, 2012 11:21 AM To: users@camel.apache.org

Re: thread error with java.lang.Thread.State: TIMED_WAITING from jconsole

2012-02-07 Thread Babak Vahdat
Sorry, I messed it up! I mixed the the JDK build version versus the Hotspot build version you pasted at http://pastebin.com/WS6y9DEG. So simply forget my advice... I've still got no idea why you can not connect through the JConsole. Babak -- View this message in context:

Re: Web service with more than one input in spring DSL.

2012-02-07 Thread Willem Jiang
I need to take a look at your SEI. If your first parameter is List type, you need to put the list into an Object Array first. On 2/7/12 5:23 PM, Omar Atia wrote: Dear Willem, Please can u provide example , for the list or object array ? as we tried object array , CXF consider it as one

Re: Unit test fails after upgrading to 2.9.0. Cannot use xquery expression after xpath

2012-02-07 Thread Willem Jiang
I did a quick fix of issue on the trunk. The patch was merged into Camel-2.9.x and Camel 2.8.x branches. On Thu Feb 2 21:21:51 2012, ltsall wrote: Hi I created a jira and attached a unit test https://issues.apache.org/jira/browse/CAMEL-4970 -- View this message in context:

Re: File consumer - waiting for it to start

2012-02-07 Thread Larry Meadors
You're the man, Claus. ;-) I added a direct:stop route to my builder with the cleanup and shutdown code in it. I changed my route to send a message to it using onCompletion().onWhen(header(Exchange.BATCH_COMPLETE).isEqualTo(true)), and blammo! It all works exactly how I wanted it to. Amazing

Re: Problem with Smooks/TypeConverter since camel 2.9.0

2012-02-07 Thread Willem Jiang
You can try to convert the body to StreamSource. I think it could be better. On 2/7/12 5:55 PM, OrackBahama wrote: Hi, since the migration to camel version 2.9.0, I'm experiencing the following problem (in pseudocode for clarity ;-)). ( Was working in versions 2.7.x ... ) from(

Re: Datacoding/Alphabet issue in SMPP

2012-02-07 Thread andrer
I've had some more time to study both the jsmpp and Camel-smpp code. The way Camel-smpp abstracts the data coding by using an Alphabet property and then deriving a datacode value by using a hard coded Message Class(class 1) restricts the possible datacoding values one can send to an smsc. (I am

Re: ExceptionHandler in a ftp Route

2012-02-07 Thread Raul
Hello again Babak, I have got to associate own custom ExceptionHandler to the Consumer of my FTP Route. But I continue to have problems to control renaming/moving/deleting of FTP. I have followed the code and the problem is that the ExceptionHandler of the Consumer is diferente of

error executing mvn exec:java

2012-02-07 Thread Samruben
Hi, I am new user to apache camel. I am very much interested to learn it. I just treied to implement the walk through sample(first example) using java dsl. Bu when i execute mvn exec:java I am getting this error. [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:java

Re: error executing mvn exec:java

2012-02-07 Thread Glen Mazza
Which sample are you talking about (can you provide a URL)? Glen On 02/07/2012 12:41 PM, Samruben wrote: Hi, I am new user to apache camel. I am very much interested to learn it. I just treied to implement the walk through sample(first example) using java dsl. Bu when i execute mvn exec:java

Re: error executing mvn exec:java

2012-02-07 Thread Hadrian Zbarcea
Glen, From the log: on project *camel-example-jms-file* [1]. The camel version would have been interesting though. Hadrian [1] https://github.com/apache/camel/tree/trunk/examples/camel-example-jms-file On 02/07/2012 12:51 PM, Glen Mazza wrote: Which sample are you talking about (can

Setting for maximumRedeliveries

2012-02-07 Thread atg roxx
Hi all, Is there any other setting except from the below call for redelivers on IOException on a route. onException(IOException.class).maximumRedeliveries(3) --cheers, atgroxx

Re: error executing mvn exec:java

2012-02-07 Thread Samruben
I am using the example camel-example-jms-file provided in apache-camel-2.9.0. http://camel.apache.org/walk-through-an-example.html -- View this message in context: http://camel.465427.n5.nabble.com/error-executing-mvn-exec-java-tp5463930p5464185.html Sent from the Camel - Users mailing list

Simple langauge in 2.9

2012-02-07 Thread swwyatt
Anyone know what I'm doing wrong? In 2.8.1 I have the following: camel:choice camel:when camel:simple${file:ext} == 'aa' or ${file:ext} == 'AA'/camel:simple

Re: ExceptionHandler in a ftp Route

2012-02-07 Thread Babak Vahdat
Hi Hello again Babak, I have got to associate own custom ExceptionHandler to the Consumer of my FTP Route. But I continue to have problems to control renaming/moving/deleting of FTP. I have followed the code and the problem is that the ExceptionHandler of the Consumer is diferente of

Re: error executing mvn exec:java

2012-02-07 Thread Samruben
Thank you so much, I got it working with your guidance -- View this message in context: http://camel.465427.n5.nabble.com/error-executing-mvn-exec-java-tp5463930p5464304.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: error executing mvn exec:java

2012-02-07 Thread Samruben
Thank you so much, I got it working with your guidance -- View this message in context: http://camel.465427.n5.nabble.com/error-executing-mvn-exec-java-tp5463930p5464305.html Sent from the Camel - Users mailing list archive at Nabble.com.

Message Correlation in Request/Reply

2012-02-07 Thread Jared O'Connor
Hi Note: Please ignore my previous email to the developers mailing list; my mail client seemed to mangle the line breaks, resulting in an un-readable message. Regardless, this users list seems more appropriate, given that I am not a Camel developer. I recently encountered an interesting

Dealing with a bean's return values

2012-02-07 Thread Gershaw, Geoffrey
Hello, Hoping that someone can help me with beans in my route. I have created the following route. I am using 3 beans in the route. 1. SecurityDefinitionFilter returns Boolean if we are interested in this SecurityDefinition 2. SecDefConverter transforms SecurityDefinition to a

Re: Bindy CSV parser uses default encoding

2012-02-07 Thread Willem Jiang
FYI, I filled a JIRA[1] and already committed the patch. [1]https://issues.apache.org/jira/browse/CAMEL-4989 On 2/4/12 9:10 PM, Thomas Letsch wrote: Hi, the bindy csv component uses the default encoding when importing a file Class org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat Line

Re: Dealing with a bean's return values

2012-02-07 Thread Bilgin Ibryam
Hi Geoff, If I got it right, you are trying to achieve something like this: camel:filter camel:simple${bean:securityBean?method=interested}/camel:simple camel:bean ref=secDefConverter method=convert/ camel:filter camel:simple${body}

Re: Problem with Smooks/TypeConverter since camel 2.9.0

2012-02-07 Thread OrackBahama
Thanks for the reply - I can confirm that explicitly converting to StreamSource does work ! But I'm worrying why - by changing the camel version to 2.9 - I have to change formerly tested code ? Something in the automatic type conversion strategy must have changed. Maybe somebody can explain

Re: Question on VM Endpoint, multipleConsumers and OSGi

2012-02-07 Thread vivekvasudeva
I switched it to having multipleConsumers=true for all. Worked like a charm ...Is it possible to put it in the component doc of seda that to accomplish the pubsub, the multipleConsumers is needed on all places. Is there anything I can do to help put the same? Also to test the above I used the

Re: Question on VM Endpoint, multipleConsumers and OSGi

2012-02-07 Thread Claus Ibsen
Hi I add a little note to the option in the table of the docs. On Wed, Feb 8, 2012 at 5:39 AM, vivekvasudeva tuluvasud...@yahoo.com wrote: I switched it to having multipleConsumers=true for all. Worked like a charm ...Is it possible to put it in the component doc of seda that to accomplish

Re: Problem with Smooks/TypeConverter since camel 2.9.0

2012-02-07 Thread Claus Ibsen
Hi You did not answer which smooks component you are using? And the StAX API is part of JDK6, which apparently Smooks does not support. So I suggest to go to Smooks team and ask them to support that. On Wed, Feb 8, 2012 at 5:20 AM, OrackBahama jdorfsch...@metadok.de wrote: Thanks for the

Re: Setting for maximumRedeliveries

2012-02-07 Thread Claus Ibsen
Hi You can also set maximum redeliveries on the errorHandler as well. Then the onException can override the setting from the errorHandler. Those are the places where you can configure redelivery settings. On Tue, Feb 7, 2012 at 7:37 PM, atg roxx atgr...@gmail.com wrote: Hi all, Is there

Re: Problem with Smooks/TypeConverter since camel 2.9.0

2012-02-07 Thread Willem Jiang
There are some enhancements to prefer to Stax API instead of the old DOMSource in Camel 2.9.0. I think that could cause your test failed. As Claus has said it could be better to adapt to Stax API which will be much faster if you are using JDK 1.6. On 2/8/12 12:20 PM, OrackBahama wrote: