RE: Weather component uri problem in case using it in spring/blueprint

2014-04-09 Thread XiLai Dai
It's my fault, I forgot to escape the xml letters in case using it in spring/blueprint! Thanks Claus! -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Thursday, April 10, 2014 2:49 PM To: users@camel.apache.org Subject: Re: Weather component uri problem in case

Re: Weather component uri problem in case using it in spring/blueprint

2014-04-09 Thread Claus Ibsen
Hi Is it because & must be escaped as & in XML ? eg &mode=xml On Thu, Apr 10, 2014 at 8:42 AM, XiLai Dai wrote: > Hi, > > With this blueprint configuration: > > xmlns="http://camel.apache.org/schema/blueprint";> > > > ... > > > > Will get build error: > [ERROR] Bundle org.talend

Weather component uri problem in case using it in spring/blueprint

2014-04-09 Thread XiLai Dai
Hi, With this blueprint configuration: http://camel.apache.org/schema/blueprint";> ... Will get build error: [ERROR] Bundle org.talend.ipaas:camel-example-simple:bundle:0.0.1-SNAPSHOT : Unexpected exception in processing spring r esources(OSGI-INF/blueprint/blueprint.xml): java

AW: camel xpath

2014-04-09 Thread jhm
I think the problem is the leading slash / so your root element has to be . Because I think this is not the case (but you havent shown that xml) other xpaths will work Jan import org.apache.camel.builder.RouteBuilder; import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Test

Re: camel xpath

2014-04-09 Thread Claus Ibsen
Hi Maybe you need to enable stream caching, see this FAQ http://camel.apache.org/why-is-my-message-body-empty.html Or your xpath expression needs to use namespaces if your xml documentation uses that. On Thu, Apr 10, 2014 at 6:28 AM, Lydie wrote: > So I still have an error: > > I never go to my

Re: Java heap space with FILE producer and larges files

2014-04-09 Thread Claus Ibsen
That is because you have enabled tracing, you should turn that off. http://camel.apache.org/tracer.html On Wed, Apr 9, 2014 at 4:08 PM, bbk wrote: > Thank you for your response. > > But I have the same problem but somewhere and I don't find that is causing. > The trace is: > > Error during type

Re: camel xpath

2014-04-09 Thread Lydie
So I still have an error: I never go to my first choice: 'enabled': /authorizationCheck='enabled' This what I get when I print my ROUTE_CONFIGURATION_HEADER: 21:17:30,030 INFO [proxy] (qtp1338

Re: inter-bundle camel routing

2014-04-09 Thread pradeep
Hi, Yes, you can use camel direct-vm instead of direct component and it is for synchronous behavior. For async communication you can use camel-vm component. Refer this documentation for more info: camel-VM: http://camel.apache.org/vm.html Camel-Direct-vm: https://camel.apache.org/direct-vm.html

Re: Missing "detail" element in SOAP fault

2014-04-09 Thread Gnanaguru S
Hi Williem, I see this issue is fixed. But I still get the faultcode like this. By the way, I am setting a header for the faultcode in my route. Please suggest. http://schemas.xmlsoap.org/soap/envelope/";> *soap:Server* 4jKitj1j My route: ( Am using '*M

Camel with ActiveMQ

2014-04-09 Thread anujkhandelwal
Hi, I have a good understanding of ActiveMQ. I am apache exploring camel to extend the use of ActiveMQ. I was reading the basic articles and websites. Just stuck with some questions: 1. Does camel need ActiveMQ broker to run or it can work without ActiveMQ also ? 2. What are the possible use ca

inter-bundle camel routing

2014-04-09 Thread samslara
Hi, I have a question about how to route messages between OSGi bundles within the same container. If I have two bundles, B1 and B2, which have their own camel routes and I want them to send messages to each other, say from B1 to B2, what's the best practice approach on how to do this? So for ex

Re: Is Camel affected by the OpenSSL heart bleed bug?

2014-04-09 Thread Richard Kettelerij
Camel, CXF, Karaf are all written in Java and Java has its own crypto/SSL implementation. There's no dependency on OpenSSL in any of those applications/frameworks. Of course if you're running Camel/CXF/Karaf on a server that does use OpenSSL for something else (let's say you're running Camel or CX

Re: Troubles to add WSS4JOutInterceptor to my cxf endpoint

2014-04-09 Thread Colm O hEigeartaigh
Hi, I've fixed the NPE in WSS4J. With WSS4J 1.6.x, you need to specify a "samlPropFile" value when adding a SAML Token. For example: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/test/resources/saml_sv.properties?view=markup http://svn.apache.org/viewvc/webservices/wss4j

Re: add SAML TOKEN to SOAP header

2014-04-09 Thread Colm O hEigeartaigh
Hi, I've fixed the NPE in WSS4J. Yes, there is an asymmetry for the SAML case between the outbound and inbound configurations. This is mainly for historical reasons, not to break backwards compatibility with older deployments. On the outbound side, the "Unsigned" action just creates a SAML Token a

Is Camel affected by the OpenSSL heart bleed bug?

2014-04-09 Thread bocamel
We are using Camel (with CXF and Karaf). Does anyone know if we should be concerned with this new OpenSSL security bug? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Is-Camel-affected-by-the-OpenSSL-heart-bleed-bug-tp5750006.html Sent from the Camel - Users mailin

Re: Camel with ActiveMQ

2014-04-09 Thread hekonsek
Hi Anuj, > 1. Does camel need ActiveMQ broker to run or it can work without ActiveMQ > also ? ActiveMQ is only one among many [1] components supported by Camel. So yes, you can run Camel without AMQ. > 2. What are the possible use cases where I can use camel with ActiveMQ ? Well, actually whene

Re: CXF jaxrs custome exception mapper with camel

2014-04-09 Thread Sergey Beryozkin
Please watch https://issues.apache.org/jira/browse/CAMEL-7357 Cheers, Sergey On 08/04/14 18:51, Sergey Beryozkin wrote: On 08/04/14 05:59, vrahul wrote: Cxf with camel always surprised me. ExceptionMapper is a basic requirement expected from the restfull server. Please let me know once you ar

Re: Java heap space with FILE producer and larges files

2014-04-09 Thread bbk
Thank you for your response. But I have the same problem but somewhere and I don't find that is causing. The trace is: Error during type conversion from type: org.apache.camel.component.file.Generi cFile to the required type: java.lang.String with value GenericFile[...] due java.lang.OutOfMemoryE

Re: error blocking camel-mail consumer

2014-04-09 Thread Claus Ibsen
On Tue, Apr 8, 2014 at 2:02 PM, wrote: > Hello, > >> You can try with mapMailMessage=false, and then use Camel's error >> handler if parsing the body / attachments of the mail fails. > this would only prevent this special error, but perhaps there will others > rise in the future. > >> Though the

No Direc-vm in RouteContext

2014-04-09 Thread Max Bridgewater
Hi, I just realized that you cannot have a direct-vm in a route context.I assume that would be the same with vm. Makes completely sense since direct-vm can only exist once in the VM while routeContext can be imported in many different camel contexts. The error messages though were a bit baffling:

Re: How to call processor thru configuration file ?

2014-04-09 Thread Charlie Mordant
Hi, You can use inOut instead of to in order to have the output of your processor in the body of the exchange: http://camel.apache.org/request-reply.html. Hope it'll help. Regards 2014-04-07 19:20 GMT+02:00 scottmiles : > My application needs to work as middleware where it has got orders(in f

Re: Java heap space with FILE producer and larges files

2014-04-09 Thread Claus Ibsen
On Wed, Apr 9, 2014 at 11:27 AM, bbk wrote: > Hi > > The problem is when I do on the large files: > - exchange.getIn().getBody(InputStream.class) > - exchange.getIn().getBody(String.class) here is your problem as you convert the payload to a String which reads in the entire file to memory. Do

Re: Java heap space with FILE producer and larges files

2014-04-09 Thread bbk
Hi The problem is when I do on the large files: - exchange.getIn().getBody(InputStream.class) - exchange.getIn().getBody(String.class) ... So, how can I resolve this problem? -- View this message in context: http://camel.465427.n5.nabble.com/Java-heap-space-with-FILE-producer-and-larges-fil