Re: xslt: TransformerException: include href is empty

2013-04-04 Thread per.ce...@gmail.com
Hi Thanks for your reply. I'm using version 2.10.4. I saw in the relese notes of 2.11 something written about corrections for xslt. Do you think this correction should fix my problem? I can also post an example if needed. Regards, Per -- View this message in context: http://camel.465427.n

Re: xslt: TransformerException: include href is empty

2013-04-04 Thread Claus Ibsen
Hi The xslt fixes is mostly about loading resources. Are you sure the document function is a valid xslt function? On Thu, Apr 4, 2013 at 8:53 AM, per.ce...@gmail.com wrote: > Hi > > Thanks for your reply. > I'm using version 2.10.4. I saw in the relese notes of 2.11 something > written about c

Re: xslt: TransformerException: include href is empty

2013-04-04 Thread per.ce...@gmail.com
Yes, it's valid and works with other tools. Below is an example. The file 1.xml, placed in the directory ./xmlin/rcv/ 1 The file DocTest.xsl, placed in the directory target/classes (that is part of the classpath) http://exslt.org/dates-and-times"; version="1.1" xmlns:xsl="http://www.w3.or

2.11: NPE with replaceFirst()

2013-04-04 Thread mdo
Hello, I have a simple language expression like the one shown below. http4:${header.myUrlString.replaceFirst("http:","")} It does work with Camel 2.10.x but throws a NPE with 2.11-SNAPSHOT because the replacement ("") parameter sent to the String/Matcher classes is null. I've got it working aga

Camel Route stops processing abruptly

2013-04-04 Thread Hema T
I have a camel route that receives messages on a tcp endpoint. On sending continuous large volume of data, the process stops abruptly without any error or exception in the log file. On restarting the application it works fine again, and again stops after receiving thousands of messages. Anyone fa

Re: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.activemq.camel.converter]

2013-04-04 Thread sarfaraj
After restarting servicemix again i see the same above error. I don't know what happening exactly. Sometime i get that error sometime i am not. Any one had the same experience ? -- View this message in context: http://camel.465427.n5.nabble.com/Failed-to-load-type-converters-because-of-Cannot

WARN | Transport Connection to: tcp://127.0.0.1:54626 failed: java.net.SocketException: Connection reset.

2013-04-04 Thread shyam
WARN | Transport Connection to: tcp://127.0.0.1:54626 failed: java.net.SocketException: Connection reset. This WARNING message is displaying in activemq server console while iam reading the data ans sending mesages to the MOM activemq. why this is occuring ,if it comes this may i need to restart

CSV component and Mac line endings (carriage return only)

2013-04-04 Thread mdo
Hello, I tried to parse some CSV files that have only carriage returns as line ending (like some legacy Mac apps produce) instead of \r\n or \n. Obviously this is not supported at the moment (but I applied a workaround for now by using a regexReplaceAll on the streamed CSV contents in the Camel ro

Re: Camel Route stops processing abruptly

2013-04-04 Thread mdo
Hello Hema, in which context does your route run, OSGi container, standalone Java application ...? Did you try to raise the log level? In what way does it "stop" -- does it simply hang or does the process die? What does your route do with the received messages? Regards, mdo. -- View this m

Re: Camel Route stops processing abruptly

2013-04-04 Thread Hema T
The route is written in a groovy file and it runs in tomcat server. The application simply hangs after sometime. Here is the code snippet from my route (it used IPF framework) from(RFC5424_TLS_AUTH_MUST_ENDPOINT) .routeId(MINA_RFC5424_TLS_AUTH_MUST_ID) .process {

Repeatedly getting WARN | Transport Connection to: tcp://127.0.0.1:52479 failed: java.net.SocketException: Connection reset

2013-04-04 Thread shyam
INFO | jolokia-agent: No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is WARN | Transport Connection to: tcp://127.0.0.1:52479 failed: java.net.SocketException: Connection reset WARN | Transport Connection to: tcp://127.0.0.1:59418 failed: java.net.SocketExcepti

Re: WARN | Transport Connection to: tcp://127.0.0.1:54626 failed: java.net.SocketException: Connection reset.

2013-04-04 Thread Claus Ibsen
Hi You should mail this question to the Apache ActiveMQ mailing list / forum. And also please do not post the same question multiple times with different subjects. It makes it harder for people to follow, and post help etc - as the conversation is spread across multiple mail subjects etc. On

Developing a new component: why copy exchanges?

2013-04-04 Thread ladoe00
Hi, I am working on developing a new component in Camel and this component will behave a lot like the SedaComponent. I am looking at how the SedaComponent was written and there is something I can't explain to myself. The SedaProducer creates a correlated copy before inserting the exchange in

Re: Camel Route stops processing abruptly

2013-04-04 Thread Christian Müller
What's the value of RFC5424_TLS_AUTH_MUST_ENDPOINT? Sent from a mobile device Am 04.04.2013 12:58 schrieb "Hema T" : > The route is written in a groovy file and it runs in tomcat server. The > application simply hangs after sometime. Here is the code snippet from my > route (it used IPF framework

Re: One processor for multiple camelContext

2013-04-04 Thread valerian.merkling
Hi : Willem.Jiang wrote >> But how i can make this works : >> >> File2 : >> / > >> > >> > >> > > / >> > You need to make sure Camel can find out the bean test from the Spring > application context. Ok. But how is it possible ? -- View this message in context: http://camel.4654

Re: Way to determine if Route is running or not

2013-04-04 Thread vishal1981
thanks! I will explore that. -- View this message in context: http://camel.465427.n5.nabble.com/Way-to-determine-if-Route-is-running-or-not-tp5730299p5730335.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: 2.11: NPE with replaceFirst()

2013-04-04 Thread Claus Ibsen
Hi Yeah the NPE would be a bug. Feel free to log a JIRA ticket On Thu, Apr 4, 2013 at 12:04 PM, mdo wrote: > Hello, > > I have a simple language expression like the one shown below. > > http4:${header.myUrlString.replaceFirst("http:","")} > > It does work with Camel 2.10.x but throws a NPE with

When is an (S)FTP file no longer "in progress"?

2013-04-04 Thread Chris Wolf
Hi, I created a custom Processor with producer template to perform SFTP rather then using the sftp component normally, due to the lack of dynamic URI capability for consumer. onent.file.remote.SftpConsumer TRACE Skipping as file is already in progress: CBOE34_MKT_20120319_DAILY.csv The type of

Re: Camel-AMQP connection factory

2013-04-04 Thread Claus Ibsen
Hi You need to use the amqp protocol. See this page http://activemq.apache.org/amqp.html On Thu, Apr 4, 2013 at 6:56 AM, Gnanaguru S wrote: > Hello, > > I am trying to do a simple use case to test camel-amqp. Gladly activemq 5.8 > has the support for AMQP. > > How can I specify the connection se

npe when receiving a soapfault

2013-04-04 Thread Nico Mommaerts
Hey, I'm using Camel (2.10.3) to proxy a webservice (and insert some custom headers): from("cxf:bean:brokerOrderLimit?dataFormat=CXF_MESSAGE") .process(soapHeadersEnricher) .to("cxf:bean:thalerOrderLimit?dataFormat=CXF_MESSAGE"); When the 'thalerOrderLimit' bean sends back a SOAPFault I just wa

Re: Camel CXF RS: New Simple binding style for JAX-RS

2013-04-04 Thread redben
Hi, That is great ! Up till now i have been adding "@Context UriInfo uriInfo" to all my rest services method signatures, so I can easily access arguments. But this surely is more elegant and keeps those signatures clean. Thanks. -- View this message in context: http://camel.465427.n5.nabble.

Re: Transactional batching

2013-04-04 Thread boday
thanks Scott, I noticed that SJMS supports batched Tx, but given that it hasn't been released yet, I assume others have had to work around this issue using camle-jms in the past...sounds like I'll need to roll my own or rely on aggregator/hawtdb EIP until 2.11 can be used... sully6768 wrote > Hi

servlet event based file consuming using file component

2013-04-04 Thread praveenbillampati
Hi All, I have requirement to consume files from a file endpoint only when it gets an event, inform of servlet hit. As per our architectural standard we are not allowed write any implementations of camel interfaces. We should strict to use spring flavored xml for camel configurations. I have gone

Re: CSV component and Mac line endings (carriage return only)

2013-04-04 Thread Babak Vahdat
Hi No the version 1.0-r706899_5 is the most recent version of this SMX bundle and *not* 1.0-r706900_3, as you can see from it's POM history: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/commons-csv-1.0/pom.xml?view=log Other way is to check the file timestamp of the different versi

Re: Way to determine if Route is running or not

2013-04-04 Thread vishal1981
It works. Thanks that's exactly what I needed. BTW - Claus you have always been very supportive. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Way-to-determine-if-Route-is-running-or-not-tp5730299p5730363.html Sent from the Camel - Users mailing list archive at Nabb

Re: placeholder in from uri

2013-04-04 Thread Christian Müller
Hello Olivier! May be this unit test is helpful for you: https://svn.apache.org/repos/asf/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/CamelBlueprint3Test.java https://svn.apache.org/repos/asf/camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apac

Changing the jetty:http Content-Type request header

2013-04-04 Thread wpking
I'm building a scala/akka-camel SOAP WS client using the jetty:http camel component. What is the recommended way of changing the Content-Type http request header to application/soap+xml ? Thanks in advance for your suggestions. -- View this message in context: http://camel.465427.n5.nabble.com

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread Chris Geer
Have you tried setHeader("Content-Type", "application/soap+xml")? On Thu, Apr 4, 2013 at 2:46 PM, wpking wrote: > I'm building a scala/akka-camel SOAP WS client using the jetty:http camel > component. What is the recommended way of changing the Content-Type http > request header to application/

Re: CSV component and Mac line endings (carriage return only)

2013-04-04 Thread mdo
Hey Babak, thanks for your comprehensive answer! I tried Bindy before, but for my use case I preferred the CSV component because it delivered a simple string list and I did not have to supply a mapping to a Java class. BeanIO also is about mapping to POJOs as far as I see. I saw a thread (

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread William King
there is no setHeader method on CamelMessage in akka-camel but there are some other header related methods. back to tinkering ... On Thu, 04 Apr 2013 16:48:16 -0500, Chris Geer wrote: Have you tried setHeader("Content-Type", "application/soap+xml")? On Thu, Apr 4, 2013 at 2:46 PM, wpki

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread Chris Geer
William, I guess I was responding on how camel-jetty works. If you set the Content-Type header it will use that in the request/return. Can you be more specific in what you are trying to do? I'm not familiar with akka-camel (or scala) but looking at the CamelMessage documentation [1] it does appear

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread William King
it does, thanks. my confusion arises from not completely understanding how the CamelMessage headers are used to build the http request headers by an an akka actor tinkering around, I see a few familiar things int the CamelMessage header (like Content-Length) and some unfamiliar Camel specific

Re: Splitter, Aggregation and Timeouts

2013-04-04 Thread Raul Kripalani
Then you're really after a split pattern rather than a multicast. Create a bean that does the lookup and returns a List of ids. Then plug it into the split EIP with: .split(method(MyBean.class)). The splitter will process each List element individually. Regards, Raúl. Thanks, Is there a way t

Re: Splitter, Aggregation and Timeouts

2013-04-04 Thread Raul Kripalani
Take a look at the "Using a Pojo to do the splitting" section in the Split EIP docs. I can't give you a deep link now, sorry. Regards, Raúl. On 5 Apr 2013 01:14, "Raul Kripalani" wrote: > Then you're really after a split pattern rather than a multicast. > > Create a bean that does the lookup an

Krati Component isn't preserving headers

2013-04-04 Thread rodolfo
Hello I'm using KratiConstants.KRATI_OPERATION_GET to find something within a Krati repository and it's working fine but I noticed all my original headers were cleared. Is there any workaround for this behavior in order to preserve the headers ? Thanks, Rodolfo -- View this message in conte

Camel JMS Component With XA transaction Manager connection to IBM MQ problem

2013-04-04 Thread Russell
Try to use Camel JMS component to connect MQ Series using Websphere XA transaction Manager Here is my setting.

Re: Camel/JMS with Atomikos UserTransactionManager not consuming Messages

2013-04-04 Thread yxzhao
I saw you commented out the dataSource declaration with com.atomikos.jdbc.AtomikosDataSourceBean on the bottom and used org.apache.commons.dbcp.managed.BasicManagedDataSource instead. What was the reason for that? I don't see a way of setting the jta transaction manager with atomikos data source

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread Chris Geer
On Thu, Apr 4, 2013 at 4:31 PM, William King wrote: > it does, thanks. my confusion arises from not completely understanding how > the > CamelMessage headers are used to build the http request headers by an an > akka actor > I can only speak for camel-jetty but if you look at the component page

Re: Camel Route stops processing abruptly

2013-04-04 Thread Hema T
The endpoint is defined to receive specific protocol messages: public static final String RFC5424_TLS_AUTH_MUST_ENDPOINT = "rae-iti20://0.0.0.0:16503" + "?codec=#atnaCodec&secure=true&clientAuth=MUST&sslContext=#sslContext" + "&sslCiphers=TLS_RSA_WITH_AES_128_CBC_SHA&sslProtoco