Re: Camel 3.4.3 REST DSL - valid JSON response?

2020-08-20 Thread Alex Soto
Your binding mode is JSON. bindingMode=“json" You are supposed to return an object, but you are returning a JSON string. Add bindingMode=“off” to this rest service. Best regards, Alex soto > On Aug 20, 2020, at 12:20 PM, Gerald Kallas wrote: > > bindingMode="json"

Re: MethodNotFoundException upgrading to Camel 3.4.2 (Blueprint and Karaf)

2020-08-20 Thread Alex Soto
Done: https://issues.apache.org/jira/browse/CAMEL-15435 <https://issues.apache.org/jira/browse/CAMEL-15435> Best regards, Alex soto > On Aug 20, 2020, at 1:08 AM, Jean-Baptiste Onofre wrote: > > Hi Alex, > > Not yet, I will get back on this one asap. > Did

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Alex Soto
I am not sure you can do that but can try. Also, I don’t understand why you would want to share a servlet across bundles. Best regards, Alex soto > On Aug 19, 2020, at 12:02 PM, Gerald Kallas wrote: > > Thanks Alex. > > That seems to be a problem as I'll have every Blueprin

Re: How to configure shutdown timeout

2020-08-19 Thread Alex Soto
Thanks Alex, Also looking for a way to configure this in a Blueprint XML file. Best regards, Alex soto > On Aug 18, 2020, at 11:13 AM, Alex Dettinger wrote: > > Hi Alex, > > It seems the timeout is tuned after the context creation. One may achieve > the desired

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Alex Soto
Again, all files need to be in the same bundle. Best regards, Alex soto > On Aug 19, 2020, at 7:59 AM, Gerald Kallas wrote: > > Thanks Daniel. > > Not sure if I did explain right. > > I want to define > >interface="

Re: MethodNotFoundException upgrading to Camel 3.4.2 (Blueprint and Karaf)

2020-08-19 Thread Alex Soto
Any update on this, JB? Best regards, Alex soto > On Aug 15, 2020, at 4:06 AM, Jean-Baptiste Onofre wrote: > > Hi, > > It seems to be related to a change on the camel-bean processor. > > Let me reproduce it and make a bisect to identify the change. > > Thanks !

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-18 Thread Alex Soto
I think you are missing: http://www.osgi.org/xmlns/blueprint/v1.0.0; > > xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; > >

How to configure shutdown timeout

2020-08-18 Thread Alex Soto
regards, Alex soto

Re: MethodNotFoundException upgrading to Camel 3.4.2 (Blueprint and Karaf)

2020-08-17 Thread Alex Soto
Thank you, JB, I hope it is an easy fix. Best regards, Alex soto > On Aug 15, 2020, at 4:06 AM, Jean-Baptiste Onofre wrote: > > Hi, > > It seems to be related to a change on the camel-bean processor. > > Let me reproduce it and make a bisect to identify th

MethodNotFoundException upgrading to Camel 3.4.2 (Blueprint and Karaf)

2020-08-14 Thread Alex Soto
a:511) ~[?:?] at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:391) ~[?:?] ... 22 more Any ideas? Best regards, Alex soto

Re: Rest registry has no services

2020-07-22 Thread Alex Soto
: exchange.getContext().getRestConfiguration().getContextPath(); And the registry sometimes has data: exchange.getContext().getRestRegistry() But sometimes it doesn’t, all during in the same execution session. Best regards, Alex soto > On Jul 22, 2020, at 2:13 AM, Jean-Bapti

Re: DefaultTracer traceBeforeRoute not calling dumpTrace

2020-07-21 Thread Alex Soto
PR here: https://github.com/apache/camel/pull/4027 <https://github.com/apache/camel/pull/4027> Best regards, Alex soto > On Jul 21, 2020, at 9:57 AM, Alex Soto wrote: > > Thanks Claus, will create a PR > > Best regards, > Alex soto > > > > >>

Rest registry has no services

2020-07-21 Thread Alex Soto
ing? Thanks and best regards, Alex soto

Re: DefaultTracer traceBeforeRoute not calling dumpTrace

2020-07-21 Thread Alex Soto
Thanks Claus, will create a PR Best regards, Alex soto > On Jul 19, 2020, at 3:53 AM, Claus Ibsen wrote: > > Hi > > Created a JIRA to not forget > https://issues.apache.org/jira/browse/CAMEL-15311 > > On Fri, Jul 17, 2020 at 10:40 AM Claus Ibsen wrot

Re: org.apache.karaf.specs.locator not found

2020-07-13 Thread Alex Soto
I am sorry I posted this to the wrong mailing list. Best regards, Alex soto > On Jul 13, 2020, at 12:22 PM, Jean-Baptiste Onofre wrote: > > Hi Alex, > > I don’t see this error on Jenkins, so I guess this error is in your itest. > > Can you share a simple

Re: org.apache.karaf.specs.locator not found

2020-07-13 Thread Alex Soto
the OsgiLocator package. Best regards, Alex soto > On Jul 13, 2020, at 12:11 PM, Alex Soto wrote: > > With Karaf 4.2.9 and Pax-Exam 4.13.3, and openjdk version "11.0.7" > 2020-04-14, running integration tests produces warning: > > WARNING: package or

org.apache.karaf.specs.locator not found

2020-07-13 Thread Alex Soto
Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Any idea? Best regards, Alex soto

DefaultTracer traceBeforeRoute not calling dumpTrace

2020-07-10 Thread Alex Soto
is not calling it, instead logging directly with INFO level. Best regards, Alex soto

Re: Camel-exec issue (script works but returns 1 inside a route)

2020-05-28 Thread Alex Soto
Also, take a look at org.apache.karaf.itests.KarafTestSupport.executeCommand from org.apache.karaf.itests common Best regards, Alex soto > On May 28, 2020, at 9:50 AM, Alex Soto wrote: > > Hi Gerald, > > There is no "/opt/apache-karaf/bin/user-add”

Re: Camel-exec issue (script works but returns 1 inside a route)

2020-05-28 Thread Alex Soto
know which service deals with the JAAS subsystem, but I suspect there is one, in which case, you can reference the service, as in: Then call “myService” as a bean: And avoid interacting with the shell. I hope this helps. Best regards, Alex soto > On May 23, 2020, at

Re: add/remove JAAS users and roles within a Camel route?

2020-05-21 Thread Alex Soto
table, LDAP server, etc. Best regards, Alex soto > On May 20, 2020, at 3:48 PM, Gerald Kallas wrote: > > Tx JB. > > So in this case, how can i call the jaas:* service from a Camel route? I did > some research but wasn't able to find this .. > > Regards > -

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-18 Thread Alex Soto
Thank you, Grzegorz, this is excellent news! I'm looking forward for this to be improved in version 8, as it is very useful, and not only for Keycloak. In particular, for securing Camel Rest services, and perhaps there are many other use cases as well. Best regards, Alex soto > On May

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-15 Thread Alex Soto
.v20191022 | No authenticator for: {RoleInfo,C[admin],None} Which suggest something is misconfigured. Best regards, Alex soto > On May 15, 2020, at 2:23 PM, Gerald Kallas wrote: > > 2020-05-15T18:20:50,256 | WARN | qtp1611313605-201 | SecurityHandler >

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-15 Thread Alex Soto
I’m not sure what is happening, but I noticed, you have ‘basic’ as lowercase, maybe it is case sensitive. Try uppercase: login.config.authMethod = BASIC Also, what is in your 'etc/jetty.xml’ and ‘etc/org.ops4j.pax.web.cfg’ files ? Best regards, Alex soto > On May 15, 2020, at 11:22

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-15 Thread Alex Soto
> 7.2.11 | registering JasperInitializer > 2020-05-14T21:15:19,003 | INFO | paxweb-context-4-thread-22 | > CamelHttpTransportServlet| 288 - org.apache.camel.camel-servlet - > 3.0.0 | Initialized CamelHttpTransportServlet[name=MyServlet, contextPath=] > 2020-05-

Re: REST API - Basic Authentication?

2020-05-13 Thread Alex Soto
I found a solution. See here: http://karaf.922171.n3.nabble.com/Basic-authentication-of-WAB-using-Jaas-in-Karaf-tp4058251p4058280.html <http://karaf.922171.n3.nabble.com/Basic-authentication-of-WAB-using-Jaas-in-Karaf-tp4058251p4058280.html> Best regards, Alex soto > On May

Re: REST API - Basic Authentication?

2020-05-12 Thread Alex Soto
Hello, I am facing the same issue, using Camel Rest DSL on top of Servlet, Blueprint, Karaf, Pax-Web, Jetty, how to add Basic authentication to the Rest endpoints? Any pointers/examples will be appreciated. Best regards, Alex soto > On Feb 4, 2020, at 3:15 AM, Gerald Kal

Re: Route Tracing with Camel 3.0 and BluePrint

2020-02-13 Thread Alex Soto
Bringing this up again, not getting headers in Camel traces with Blueprint. Anybody experiencing the same? Best regards, Alex soto > On Feb 6, 2020, at 9:29 AM, Alex Soto wrote: > > I’m sorry Guillaume, but I don’t see the similarity, although you may know > something I don

Re: Rest DSL Query Params not copied to Exchange Header

2020-02-07 Thread Alex Soto
parameters (good). Best regards, Alex soto > On Feb 7, 2020, at 1:29 PM, Zoran Regvart wrote: > > query Hi Alex, > perhaps I can shed some light on this, the header in header filter > strategy refers to Camel message headers and external (say HTTP) > headers. I think (haven't

Re: Rest DSL Query Params not copied to Exchange Header

2020-02-07 Thread Alex Soto
both should behave the same way, preferable not being affected by the header filter strategy. Best regards, Alex soto > On Feb 6, 2020, at 4:44 PM, Alex Soto wrote: > > Look like it is caused by my: > > > > Which is very strange, since the ones that have defaul

Camel Simple type:name.field not working

2020-02-06 Thread Alex Soto
I have this in my route: ${type:java.util.Collections.EMPTY_LIST}

Re: Rest DSL Query Params not copied to Exchange Header

2020-02-06 Thread Alex Soto
parameters, since this is done by Camel and it is still useful. Is there a way to control this? Best regards, Alex soto > On Feb 6, 2020, at 3:34 PM, Alex Soto wrote: > > Hello: > > Running Camel 3.0.1. I have a Rest DSL, where Query Params are not being > copi

Rest DSL Query Params not copied to Exchange Header

2020-02-06 Thread Alex Soto
. The documentation https://camel.apache.org/manual/latest/rest-dsl.html <https://camel.apache.org/manual/latest/rest-dsl.html> seems to imply that the query parameters are copied to the Exchange headers, but this is not happening. Any idea? Best regards, Alex soto

Re: SEDA consumer and parallelism

2020-02-06 Thread Alex Soto
in the SEDA consumer is not causing the desired effect. Best regards, Alex soto > On Feb 6, 2020, at 12:09 PM, WEIQUAN YUAN wrote: > > as it is known that SEDA component is asyn component, but direct is sync > one, can you use direct instead of seda? > > On Wed, Jan 29, 2020 at

Re: Route Tracing with Camel 3.0 and BluePrint

2020-02-06 Thread Alex Soto
I’m sorry Guillaume, but I don’t see the similarity, although you may know something I don’t. In any case do you know of a workaround?, basically I need to be able to enable tracing of exchange headers (in Blueprint) for troubleshooting, but I have not yet found how. Best regards, Alex soto

Route Tracing with Camel 3.0 and BluePrint

2020-02-05 Thread Alex Soto
hange headers are still not logged. Any idea? Best regards, Alex soto

Re: Blueprint Rest DSL with JSonApi DataFormat

2020-02-04 Thread Alex Soto
an array of classes as required by the data format property in Rest DSL restConfiguration Blueprint XML? Best regards, Alex soto > On Feb 4, 2020, at 10:58 AM, Alex Soto wrote: > > Tried this: > > bindingMode=“json”> > > >

Re: Blueprint Rest DSL with JSonApi DataFormat

2020-02-04 Thread Alex Soto
Tried this: Produces error: Error binding property (dataFormatTypes=org.my.class.here) with name: dataFormatTypes on bean: org.apache.camel.component.jsonapi.JsonApiDataFormat@409e7690 with value: org.my.class.here Best regards, Alex soto > On Feb 4, 2

Blueprint Rest DSL with JSonApi DataFormat

2020-02-04 Thread Alex Soto
Hello, I am trying to use the JSonApi data format with Camel Rest DSL. There are not examples, as far as I know. So I am configuring it like this:

Re: SEDA consumer and parallelism

2020-01-29 Thread Alex Soto
Thanks Claus, I tested adding synchronous=true to the SEDA consumer, but it does not make any difference. The only thing that worked was to add asyncDelayed=“false” to the delay EIP. Is this perhaps a bug? Best regards, Alex soto > On Jan 29, 2020, at 1:48 PM, Claus Ibsen wr

Re: SEDA consumer and parallelism

2020-01-29 Thread Alex Soto
Thanks Claus…. Oh, I see, after returning from the delay, it is a different thread that processes the rest of the route. Where should the synchronous=true be added, in the Producer or Consumer or both URIs? Best regards, Alex soto > On Jan 29, 2020, at 11:13 AM, Claus Ibsen wr

SEDA consumer and parallelism

2020-01-29 Thread Alex Soto
or less like this: 1000 From logs, I can see messages being processed in parallel by this route. Any idea? (Camel version is 3.0.1) Best regards, Alex soto

Re: java.lang.NoClassDefFoundError: groovy/lang/Script

2020-01-29 Thread Alex Soto
Thank you JB, I created a new ticket: https://issues.apache.org/jira/browse/CAMEL-14457 <https://issues.apache.org/jira/browse/CAMEL-14457> Best regards, Alex soto > On Jan 29, 2020, at 3:15 AM, Claus Ibsen wrote: > > On Wed, Jan 29, 2020 at 6:57 AM Jean-Baptiste On

Re: java.lang.NoClassDefFoundError: groovy/lang/Script

2020-01-28 Thread Alex Soto
Maybe ticket https://issues.apache.org/jira/browse/CAMEL-4171 <https://issues.apache.org/jira/browse/CAMEL-4171> should be reopened, or a new one created, not sure. Will leave it to somebody that knows better. Best regards, Alex soto > On Jan 28, 2020, at 1:51 PM, Alex So

Re: java.lang.NoClassDefFoundError: groovy/lang/Script

2020-01-28 Thread Alex Soto
Adding: DynamicImport-Package: groovy.*, org.codehaus.groovy.* To my bundle seems to work. So I suppose this should be added somewhere in a Camel bundle? Best regards, Alex soto > On Jan 28, 2020, at 1:29 PM, Alex Soto wrote: > > This appears to be a regression, as I

Re: java.lang.NoClassDefFoundError: groovy/lang/Script

2020-01-28 Thread Alex Soto
This appears to be a regression, as I remember seeing this problem in the past: https://issues.apache.org/jira/browse/CAMEL-4171 <https://issues.apache.org/jira/browse/CAMEL-4171> I will try your suggestion Best regards, Alex soto > On Jan 28, 2020, at 1:24 PM, Jean-Baptiste Onof

java.lang.NoClassDefFoundError: groovy/lang/Script

2020-01-28 Thread Alex Soto
(GroovyExpression.java:73) … I am running Camel in Karaf OSGi environment with camel-groovy feature installed. In old Karaf 2.X, I had to install features camel-script, and camel-script-groovy, but they are no longer available. Best regards, Alex soto

Re: org.apache.camel.NoSuchLanguageException: No language could be found for: simple

2020-01-27 Thread Alex Soto
dleContext)); itCamelContext.setDataFormatResolver(new OsgiDataFormatResolver(bundleContext)); Language simple = itCamelContext.resolveLanguage("simple"); assertNotNull(simple); Best regards, Alex soto > On Jan 25, 2020, at 3:29 AM, Claus

org.apache.camel.NoSuchLanguageException: No language could be found for: simple

2020-01-24 Thread Alex Soto
running as part of an OSGi environment (Karaf) Best regards, Alex soto

Rest DSL, Servlet, Jetty, Multi part file upload

2019-03-25 Thread Alex Soto
atus = httpclient.executeMethod(httppost); The problem is that upload handler never receives any attachments. Any help would be appreciated. Best regards, Alex soto

Re: Custom data format, OSGi, Blueprint, Rest DSL, Bundle is waiting for dependencies

2019-03-12 Thread Alex Soto
is properly registered. Best regards, Alex soto > On Mar 12, 2019, at 10:44 AM, Alex Soto wrote: > > Hello, > > I am trying to use a custom Data Format with Camel Rest DSL in an OSGi > container (Karaf) but the bundle fails to initialize with error: > >

Custom data format, OSGi, Blueprint, Rest DSL, Bundle is waiting for dependencies

2019-03-12 Thread Alex Soto
I am instantiating the data format class as a Blueprint bean: Then, in my Camel Context I register the custom data format: Which I then reference in the Rest DSL configuration: Any idea of what is going on here? Best regards, Alex soto

Rest DSL XML Binding SAX Parse Exception

2018-08-28 Thread Alex Soto
kage contains ObjectFactory and all proper annotations. What else does Camel need to properly bind the XML to the Java class? Why is it not parsing the XML correctly? Best regards, Alex soto

Re: Empty/null response from netty4-http template producer

2018-03-28 Thread Alex Soto
Created issue : https://issues.apache.org/jira/browse/CAMEL-12414 <https://issues.apache.org/jira/browse/CAMEL-12414> Best regards, Alex soto > On Mar 28, 2018, at 12:46 PM, Alex Soto <alex.s...@envieta.com> wrote: > > Anybody has any insight on what may be happening? S

Re: Empty/null response from netty4-http template producer

2018-03-28 Thread Alex Soto
Anybody has any insight on what may be happening? Should I submit a Jira ticket? Best regards, Alex soto > On Mar 27, 2018, at 3:18 AM, Owain McGuire <owain@integration.technology> > wrote: > > Alex, > > Just had a quick look. > > The post in the Rest

Re: Empty/null response from netty4-http template producer

2018-03-27 Thread Alex Soto
, cap: 38, components=1)) HTTP/1.1 200 OK content-length: 38 content-type: application/octet-stream connection: keep-alive I have looked into the unit tests in Camel source, which are doing something similar and it works there, so I can’t figure out why it wouldn’t work for me. Can you take a took now

Re: Empty/null response from netty4-http template producer

2018-03-26 Thread Alex Soto
raf-netty-producer-test/tree/master> Can anybody take a look and let me know what I am doing wrong? Thanks and best regards, Alex soto > On Feb 22, 2018, at 5:42 PM, Alex Soto <alex.s...@envieta.com> wrote: > > Hello, > > I am having some problems migrating to Camel 2.20

Camel Blueprint property not found in SSLContextParameters

2018-03-16 Thread Alex Soto
it is imported by Bundle B, but it looks as if it is bundle B the one doing the property lookup. This was working fine in Camel 2.17.4. Any idea? Best regards, Alex soto

Re: Blueprint, property-place-holder error name is already instanciated as null and cannot be removed

2018-02-23 Thread Alex Soto
Thank you Grzegorz, but I was using Camel 2.20.2, so I think it already contains your fix. Best regards, Alex soto > On Feb 23, 2018, at 2:07 PM, Grzegorz Grzybek <gr.grzy...@gmail.com> wrote: > > Hello > > Please check https://issues.apache.org/jira/browse/CAMEL-1225

Re: Blueprint, property-place-holder error name is already instanciated as null and cannot be removed

2018-02-23 Thread Alex Soto
I just created a ticket for this issue: https://issues.apache.org/jira/browse/CAMEL-12291 <https://issues.apache.org/jira/browse/CAMEL-12291> Feel free to amend if necessary. Best regards, Alex soto > On Feb 23, 2018, at 2:07 PM, Grzegorz Grzybek <gr.grzy...@gmail.com> wr

Re: Blueprint, property-place-holder error name is already instanciated as null and cannot be removed

2018-02-23 Thread Alex Soto
Thank you Guillaume, You are correct, I tried your suggestion locally and it does work. I don’t know what are the potential side effects of this change though. Probably better that somebody more familiar with this code takes a look and fixes it. Best regards, Alex soto > On Feb 23, 2

Re: Blueprint, property-place-holder error name is already instanciated as null and cannot be removed

2018-02-23 Thread Alex Soto
rote: > > Is that really the XML? It’s not well formed - you start with a > cm:property-placeholder element and end with a cm:default-properties element. > >> On Feb 22, 2018, at 12:48 PM, Alex Soto <alex.s...@envieta.com> wrote: >> >> Hello, >> >>

Empty/null response from netty4-http template producer

2018-02-22 Thread Alex Soto
http:https://localhost:8895/service?sslContextParameters=#sslParams=true;, requestMessage.message, byte[].class); assertNotNull(response); I appreciate any help with this problem. Best regards, Alex soto

Blueprint, property-place-holder error name is already instanciated as null and cannot be removed

2018-02-22 Thread Alex Soto
: Then it works fine, no errors. So this seems to be related to the property placeholders. Has anybody seen this? I appreciate any insight on how to solve this problem. Best regards, Alex soto

Re: Netty4-HTTP - synchronous - No response received from remote server error

2017-11-30 Thread Alex Soto
Yet another problem is that the exception is thrown even though I am passing option throwExceptionOnFailure=false I hope somebody can help me figure out what I am doing wrong. Best regards, Alex soto > On Nov 30, 2017, at 9:22 AM, Alex Soto <alex.s...@envieta.com> wrote: > >

Netty4-HTTP - synchronous - No response received from remote server error

2017-11-30 Thread Alex Soto
annelInactive(AbstractChannelHandlerContext.java:241)[32:io.netty.transport:4.0.43.Final] Notice the error occurs in a different thread. I don’t know why this error is occurring because there is a response, and why is it not handling the exchange synchronous ? Best regards, Alex soto

Re: Property with key XXX not found in properties from text (blueprint, sslContextParameters)

2017-02-02 Thread Alex Soto
I found this which looks very similar to my problem: https://access.redhat.com/solutions/1428583 <https://access.redhat.com/solutions/1428583> Anybody knows about this? Best regards, Alex soto > On Jan 11, 2017, at 2:55 PM, Alex Soto <alex.s...@envieta.com> wrote: > >

Re: How to destroy Netty Pools in Blueprint

2016-08-24 Thread Alex Soto
a destroy method. As they are, these classes seem to be of very little use, if at all. Best regards, Alex soto > On Aug 24, 2016, at 11:43 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > > You can maybe build your own pojo that shutdown the pool and has a > void method so you can

How to destroy Netty Pools in Blueprint

2016-08-24 Thread Alex Soto
2.17.0) Best regards, Alex soto

Re: poll enrich and file endpoint

2016-08-18 Thread Alex Soto
Dennis, In your case, I think you are missing the idempotent option in the File URI. Best regards, Alex soto > On Aug 18, 2016, at 10:59 AM, Dennis Bohnstedt Hansen <d...@miracle.dk> wrote: > > Hi > > I’m seeing the same problem with pollEnrich, using a dynamic en

Re: poll enrich and file endpoint

2016-08-18 Thread Alex Soto
problem where it does not work correctly when used under high concurrency. Thank you Claus. Best regards, Alex soto > On Aug 18, 2016, at 2:12 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > > Its easier to do a message transformation and set the body as a java.io.File >

poll enrich and file endpoint

2016-08-16 Thread Alex Soto
is still present in the directory. Am I setting the options correctly? How can this be accomplished? Best regards, Alex soto

Re: Camel blueprint: Unable to load class org.apache.camel.builder.LoggingErrorHandler

2016-06-03 Thread Alex Soto
That worked, thanks! Best regards, Alex soto > On Jun 2, 2016, at 11:20 PM, Quinn Stevenson <qu...@pronoia-solutions.com> > wrote: > >> org.apache.camel.builder.LoggingErrorHandler

Camel blueprint: Unable to load class org.apache.camel.builder.LoggingErrorHandler

2016-06-01 Thread Alex Soto
r;version="[2.17,3)” Any ideas? Best regards, Alex soto

Re: Accessing the HTTP Response Code with netty4

2016-04-11 Thread Alex Soto
It was my fault, I had a custom Trace Formatter that was printing null mistakenly. Best regards, Alex soto > On Apr 9, 2016, at 3:11 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > > That would be a bit odd as this is the code that maps the netty status to > Came

Accessing the HTTP Response Code with netty4

2016-04-08 Thread Alex Soto
. . . The problem is that the CamelHttpResponseCode is always null. I can see it the trace logs: Headers:{CamelHttpResponseCode=null, Connection=keep-alive, CamelHttpResponseText=Not Modified, Content-Length=0} How can I check the HTTP response code? Best regards, Alex soto

Re: Bean instance is null. OGNL bean expressions requires bean instances.

2016-02-29 Thread Alex Soto
Thank you Claus, Best regards, Alex soto > On Feb 28, 2016, at 1:30 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > > I logged a ticket > https://issues.apache.org/jira/browse/CAMEL-9653 > > On Sat, Feb 27, 2016 at 7:25 AM, Claus Ibsen <claus.ib...@gmail.com>

Bean instance is null. OGNL bean expressions requires bean instances.

2016-02-26 Thread Alex Soto
Hello, Running Camel 2.16.1, I am trying to invoke a static method as follows: However I get an exception with this message: Bean instance is null. OGNL bean expressions requires bean instances. Any idea why? Thanks and best regards, Alex soto

Re: Unknown File Language Syntax

2016-02-24 Thread Alex Soto
So, to summarize: if I have ${} then use , if not, use I am not sure I have seen this explained anywhere in the documentation, perhaps it should be, to save others time. Thanks for the help Claus. Best regards, Alex soto > On Feb 24, 2016, at 12:04 PM, Claus Ibsen <cl

Re: Unknown File Language Syntax

2016-02-24 Thread Alex Soto
, changing back to works now without any issue. Best regards, Alex soto > On Feb 24, 2016, at 10:58 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > > Hi > > Yeah there was a bug in the backwards compatible parser (checking the > old simple style) > https://issues.a

Re: Unknown File Language Syntax

2016-02-24 Thread Alex Soto
Startup resolution is fine, as the home directory is not expected to change. So it is and not ? This is strange, I wouldn’t have guessed it. Thanks Best regards, Alex soto > On Feb 24, 2016, at 10:21 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > > The

Re: Unknown File Language Syntax

2016-02-24 Thread Alex Soto
Sorry, I am using Camel 2.16.0 Do you mean, like this? file:{{env:HOME}}/.ra/chains?autoCreate=falsenoop=trueidempotent=false My intention is to have {{env:HOME}} substituted with the home directory at runtime Best regards, Alex soto > On Feb 24, 2016, at 10:09 AM, Cl

Unknown File Language Syntax

2016-02-24 Thread Alex Soto
) at org.apache.camel.builder.SimpleBuilder.createExpression(SimpleBuilder.java:107) ... 85 more Best regards, Alex soto

filtering, but not removing http producer headers

2015-11-10 Thread Alex Soto
Hello, I have a route with some custom headers that I need to preserve after sending an HTTP client request (HTTP producer), however, I do not want these headers to be sent as HTTP headers to the remote server. Is there a way to accomplish this? Best regards, Alex soto

Re: filtering, but not removing http producer headers

2015-11-10 Thread Alex Soto
Thanks, I will give it a try. Do you know if there is some concern using exchange properties that I should worry about, perhaps with multi-threading? Best regards, Alex soto > On Nov 10, 2015, at 2:57 PM, Daniel Lamb <dan...@discoverygarden.ca> wrote: > > Store the header

Re: filtering, but not removing http producer headers

2015-11-10 Thread Alex Soto
Great, in this case I am not doing any aggregation, so that won’t be a problem. I just finished testing, and it worked, so thats for the help. Best regards, Alex soto > On Nov 10, 2015, at 3:23 PM, Daniel Lamb <dan...@discoverygarden.ca> wrote: > > If you do some parallel proc

Re: filtering, but not removing http producer headers

2015-11-10 Thread Alex Soto
. Best regards, Alex soto > On Nov 10, 2015, at 2:30 PM, Alex Soto <alex.s...@envieta.com> wrote: > > Hello, > > I have a route with some custom headers that I need to preserve after sending > an HTTP client request (HTTP producer), however, I do not want the

Nett shared worker pool

2015-10-12 Thread Alex Soto
Best regards, Alex soto

Re: Nett shared worker pool

2015-10-12 Thread Alex Soto
I am trying to follow documentation to: Reusing Netty boss and worker thread pools with Netty4 component, but if the page is referring to Netty3, how would this work with Netty-4? Any pointers? Best regards, Alex soto > On Oct 12, 2015, at 10:03 AM, Claus Ibsen <claus.ib...@gma

Re: Nett shared worker pool

2015-10-12 Thread Alex Soto
Thank you Claus! I found good example in the unit test of camel-netty4 component. In case it helps anybody here is the fragment: http://camel.apache.org/schema/spring;> Best regards, Alex soto > On Oct 12, 2015, at 10:15 AM, Claus Ibsen <

Camel headers and Netty4 HTTP producer

2015-08-21 Thread Alex Soto
? Best regards, Alex soto

Netty4 HTTP client body type

2015-07-28 Thread Alex Soto
as a CompositeByteBuf, but isn’t Camel supposed to convert this automatically? Best regards, Alex soto

Re: Remove breadcrumbId from Rest Service Response Headers

2015-06-16 Thread Alex Soto
test execution, so the question is: How should I write the integration test code in order to verify the header is not present? Is there some flag or setting I can set to prevent the ProducerTemplate from adding a bread crumb header? Best regards, Alex soto On Jun 15, 2015, at 10:02 PM

Re: Remove breadcrumbId from Rest Service Response Headers

2015-06-15 Thread Alex Soto
); assertEquals(500, code); final MapString, Object headers = out.getHeaders(); assertNotNull(headers); assertFalse(headers.containsKey(Exchange.BREADCRUMB_ID)); Last assertion is not passing!!! Best regards, Alex soto On Jun 14, 2015, at 11:44 AM, Claus

Remove breadcrumbId from Rest Service Response Headers

2015-06-10 Thread Alex Soto
regards, Alex soto

Re: Using shared Netty configuration with Rest DSL

2015-05-22 Thread Alex Soto
It is working now. Thanks! Best regards, Alex soto On May 22, 2015, at 3:53 AM, Willem Jiang willem.ji...@gmail.com wrote: You can setup the endpoint property just like this restConfiguration component=netty4-http” camel:componentProperty key=“configuration value=#configuration

Using shared Netty configuration with Rest DSL

2015-05-21 Thread Alex Soto
', passphrase='null', bossGroup=null, workerGroup=null, networkInterface='null’}] I could not find any examples of how to accomplish this. Any hints? Best regards, Alex soto