camel-openapi-java - rendering the API causes ClassCastException

2022-05-18 Thread Martin Lichtin
There's a bean with this annotation     @Size(min = 1, max = 10)     @NotNull     private java.lang.String name; looks like causing 2022-05-18T11:56:27,906 | WARN  | qtp534549026-548 | RestOpenApiProcessor | mel.openapi.RestOpenApiProcessor   78 | 257 -

Re: Karaf BundleStateService not accessible

2022-05-18 Thread Martin Lichtin
it to improve this. Can you please share a test case to reproduce it (I tried and it works fine for me) ? Thanks, Regards JB On Mon, May 16, 2022 at 11:56 AM Martin Lichtin wrote: I was wondering of any side-effects once this message appears BlueprintCamelStateService 137 | 134

Karaf BundleStateService not accessible

2022-05-16 Thread Martin Lichtin
I was wondering of any side-effects once this message appears BlueprintCamelStateService  137 | 134 - org.apache.camel.karaf.camel-blueprint - 3.14.3 | Karaf BundleStateService not accessible. Bundle state won't reflect Camel context state not instantly seeing an issue, just curious about

Adding Routes while camelContext status is Initializing

2022-05-10 Thread Martin Lichtin
Is there potentially a race condition when calling addRoutes while camelContext status is 'Initializing'? I noticed the routes are not actually added in such a case, but no error or warning appears, they're just silently ignored. Creating the CamelContext with blueprint, then adding the

Sometimes ConcurrentModificationException during Karaf bundle blueprint startup

2022-05-08 Thread Martin Lichtin
Would you have an idea what could provoke this? It happens infrequently 2022-05-08T22:14:54,999 | ERROR | rint Event Dispatcher: 1 | BlueprintCamelContext    | .blueprint.BlueprintCamelContext  190 | 188 - org.apache.camel.karaf.camel-blueprint - 3.14.3 | Error occurred during

Camel 3.14.2 features, xml-specs-api loading jaxb-runtime/2.3.1_1

2022-05-03 Thread Martin Lichtin
Camel 3.14.2 features, xml-specs-api loading jaxb-runtime/2.3.1_1 mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-runtime/2.3.1_1 but better would be to load jaxb-runtime version 2.3.2_1 as this version contains the "com.sun.istack" classes that 2.3.1_1 is missing.

Camel 3.14.2 - camel-cxf-transport restricted version for cxf to 3.4

2022-05-02 Thread Martin Lichtin
Any reason the version for org.apache.cxf packages is so restricted? e.g. in the camel-cxf-transport  MANIFEST: Import-Package: ., org.apache.cxf.transport;version="[3.4,3.4]" means exactly version 3.4.0 is required.

Timer route stop causes RejectedExecutionException - camel 3.14.2

2022-05-02 Thread Martin Lichtin
Is there a way to avoid such exceptions on a timer:// route stop? java.util.concurrent.RejectedExecutionException: null     at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:429) ~[?:?]     at

Migration from 2.x to 3.x

2021-08-27 Thread Martin Lichtin
Hi, the migration says "Support for multiple CamelContexts has been removed and only 1 CamelContext per deployment is supported." The term "deployment" seem loose. My concern here is that in OSGi each bundle has its own CamelContext (e.g. via blueprint configuration), how will that work? -

Camel 2.x http4 component - proxy configuration

2021-06-15 Thread Martin Lichtin
https://camel.apache.org/components/2.x/http4-component.html The documentation lists two Uri parameters, "proxyAuthHost" and "proxyHost" (and again two for 'Port'). Is there a difference, or are both offering the same functionality to configure the proxy host. - Martin PS: Noticed

Re: Re: How to configure shutdown timeout

2020-08-24 Thread Martin Lichtin
� ��� � On 19.08.2020 16:01, Alex Soto wrote: 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.

Re: Re: Camel to not lookup OSGi services when looking up a bean

2020-07-03 Thread Martin Lichtin
juil. 2020 à 11:43, Martin Lichtin a écrit : Hi JB I would, if that was the issue. However in all the CamelContexts I'm only using regular beans, not calling an OSGi service. Ideally there should be a way to tell Camel to not look into the OSGi registry when resolving bean names. But seems

Re: Re: Camel to not lookup OSGi services when looking up a bean

2020-07-01 Thread Martin Lichtin
juin 2020 à 09:29, Martin Lichtin a écrit : Thanks. Unfortunately the cache does not seem to kick in. Also it's supposed to be turned on by default (xsd: "Caches the bean lookup, to avoid lookup up bean on every usage. Default value: true". The bean is called from a REST CamelContext

Re: Re: Camel to not lookup OSGi services when looking up a bean

2020-06-29 Thread Martin Lichtin
) In Camel 3.x there is a new scope option instead On Thu, Jun 25, 2020 at 5:09 PM Martin Lichtin wrote: Is there a way to tell Camel to not search OSGi services when looking up a bean? It seems by default it's continuously looking up the service references, would like to turn this off

Re: Re: Camel to not lookup OSGi services when looking up a bean

2020-06-27 Thread Martin Lichtin
It's Camel 2.24.3 On 25.06.2020 17:10, Andrea Cosentino wrote: What is the camel version for this? Il giorno gio 25 giu 2020 alle ore 17:09 Martin Lichtin ha scritto: Is there a way to tell Camel to not search OSGi services when looking up a bean? It seems by default it's continuously

Camel to not lookup OSGi services when looking up a bean

2020-06-25 Thread Martin Lichtin
Is there a way to tell Camel to not search OSGi services when looking up a bean? It seems by default it's continuously looking up the service references, would like to turn this off. Stack Trace    Sample Count    Percentage(%) java.util.TreeMap.getEntryUsingComparator(Object)    17    3.753   

Re: swagger.json generation without host set to 0.0.0.0

2018-07-17 Thread Martin Lichtin
elho Soares On Thu, Jul 12, 2018 at 4:55 PM Martin Lichtin wrote: Anyone know how I can configure so the generated swagger.json does not set host: "0.0.0.0"? With this 0.0.0.0 I cannot, for example, import the Swagger directly into Postman and make calls to the API. https://swagger

swagger.json generation without host set to 0.0.0.0

2018-07-12 Thread Martin Lichtin
Anyone know how I can configure so the generated swagger.json does not set host: "0.0.0.0"? With this 0.0.0.0 I cannot, for example, import the Swagger directly into Postman and make calls to the API. https://swagger.io/docs/specification/2-0/api-host-and-base-path/ says the "host" can be

File2 error during commit, how can I handle the exception?

2018-05-20 Thread Martin Lichtin
Using the File2 component (2.19.5), I'm provoking a situation with the "move" folder no longer being writable. This causes the following exception to occur and logged during the "commit" phase. And then, with every consumer poll, the same file is being imported again and again! Not a good

Re: Re: DirectConsumerNotAvailableException: No consumers available on endpoint

2018-05-05 Thread Martin Lichtin
m/apache/camel/blob/camel-2.19.x/camel-core/src/main/docs/direct-component.adoc> which you may need to set to true on your own in 2.19.5. On Thu, Apr 26, 2018 at 6:24 PM, Martin Lichtin <lich...@yahoo.com.invalid> wrote: After upgrading from 2.18 to 2.19.5, I'm often seeing this excepti

DirectConsumerNotAvailableException: No consumers available on endpoint

2018-04-26 Thread Martin Lichtin
After upgrading from 2.18 to 2.19.5, I'm often seeing this exception at startup. It looks like the auto-started route is not immediately ready? Using a producer template, it can happen that "DirectConsumerNotAvailableException" is thrown. At next try (e.g. a second later) it works. How can this

Question about Exchange properties when using File component

2018-04-17 Thread Martin Lichtin
Started using the File component (2.19.5) and seeing exchange properties with prefixed names that don't seem to make sense: "CompletePathAndFilename"-CamelFileLockFileAcquired=true, "CompletePathAndFilename"-CamelFileLockFileName="CompletePathAndFilename".camelLock, where

Re: Camel REST: jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError)

2017-12-06 Thread Martin Lichtin
To make REST use my own ObjectMapper, I try below but it doesn't work. Anyone have an example that does?       http://camel.apache.org/schema/blueprint;>                   Thanks for a hint. On 01.11.2017 22:21, Martin Lichtin wrote: I'm runn

Camel REST: jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError)

2017-11-01 Thread Martin Lichtin
I'm running into a jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) with a REST route that uses bindingMode="json" to marshal/unmarshal. It loops like:     ...     at

Re: Re: OnException - out body length limited by input body length

2017-09-27 Thread Martin Lichtin
the Camel* headers, the params from the Url query string, etc... On 25.09.2017 15:26, Claus Ibsen wrote: Remove the Content-Length header when you change the body On Mon, Sep 25, 2017 at 2:47 PM, Martin Lichtin <lich...@yahoo.com.invalid> wrote: Using an to handle an exception, I want t

OnException - out body length limited by input body length

2017-09-25 Thread Martin Lichtin
Using an to handle an exception, I  want to mark the situation as 'handled' and set the body with information from the exception. Eg:       java.lang.Exception       false         500         ${exception.stacktrace}            Problem is: the body

Re: Rest DSL - how to pass PUT body as method argument

2017-09-18 Thread Martin Lichtin
. with null On 16.09.2017 18:34, Martin Lichtin wrote: Camel Rest DSL Want to ask how can one pass the body of a PUT request to a method positional argument. Eg, with bindingMode=json will the magic ${body} work?                 with the method in Java as     update(String id

Rest DSL - how to pass PUT body as method argument

2017-09-16 Thread Martin Lichtin
Camel Rest DSL Want to ask how can one pass the body of a PUT request to a method positional argument. Eg, with bindingMode=json will the magic ${body} work?                 with the method in Java as update(String id, MyOrder myOrder) Searched the docs (including Camel

Issue with CamelServlet when upgrading to 2.18 (OSGi)

2017-06-10 Thread Martin Lichtin
Trying to upgrade from 2.17.7 to 2.18.4 I'm running into the following problem: org.osgi.service.blueprint.container.ComponentDefinitionException: org.apache.aries.proxy.FinalModifierException: The methods protected final void

Runtime endpoint registry is in extended mode

2017-05-29 Thread Martin Lichtin
Upgrading from 2.16.x to 2.17.7 I see many Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000) messages.I'm not setting the statisticslevel, and the default level should not be extended?

Re: Re: In 'onException' - how to decide per-message whether to 'continue' route or not

2017-05-20 Thread Martin Lichtin
); } }) On 13.05.2017 09:35, Claus Ibsen wrote: You can add onWhen where you can do a predicate to decide that per message On Sat, May 13, 2017 at 9:00 AM, Martin Lichtin <lich...@yahoo.com.invalid> wrote: One can define a route exception handling to catch and continue: rd.onException(Exception

In 'onException' - how to decide per-message whether to 'continue' route or not

2017-05-13 Thread Martin Lichtin
One can define a route exception handling to catch and continue: rd.onException(Exception.class).continued(true).process(myExceptionHandler) However, how can one decide on a per-message basis (ie. in myExceptionHandler) whether to continue with the route or not? Thanks - Martin

Re: Using rollback() inside onException

2017-04-01 Thread Martin Lichtin
markRollbackOnly() - I’ve never used rollback()) are in routes where something besides an exception determines whether or not I want to rollback the transaction. For what it’s worth ... On Mar 31, 2017, at 6:18 AM, Martin Lichtin<lich...@yahoo.com.INVALID> wrote: Hi Wanted to ask, what

Using rollback() inside onException

2017-03-31 Thread Martin Lichtin
Hi Wanted to ask, what would be a reason to explicitly call rollback() in an onException(). For example, would this make sense? .onException(Exception.class).rollback().end() I'm under the expression above line could just be left out, as Camel anyway lets the exception up and that will

Camel context shutdown waiting for ExecutorService

2016-09-07 Thread Martin Lichtin
Hi All Having an issue with Camel context shutdown taking much longer than expected. The trace below shows it quite well. There's 2 seconds "graceful" shutdown, but then it takes 2x10 seconds to "really" shutdown. Any ideas why that could be? Also, how can I reduce the 10 seconds termination

Re: How to concurrently shutdown routes

2016-07-20 Thread Martin Lichtin
You would need to build your custom > shutdown, and that can be a bit more complex if some routes have inter > related dependencies, so you cannot shutdown X before Y etc. > > On Thu, Jul 14, 2016 at 12:01 PM, Martin Lichtin > > lichtin@.com > wrote: >> Is there

How to concurrently shutdown routes

2016-07-14 Thread Martin Lichtin
Is there a way to shutdown some routes in a context concurrently? The default shutdown strategy seems to handle one route after the other. To speed things up, I'm looking for a way to shutdown a set of routes at once.

Re: Internal exception thrown for each call to producerTemplate.sendBodyAndHeaders

2016-03-24 Thread Martin Lichtin
hat version of Camel do you use. And what is the real stacktrace printed > > And what is the *actual* url you call. As that plain string should be > parsable. > > > > On Thu, Mar 24, 2016 at 10:39 AM, Martin Lichtin > > lichtin@.com > wrote: >> When usi

Internal exception thrown for each call to producerTemplate.sendBodyAndHeaders

2016-03-24 Thread Martin Lichtin
When using a producer template to send messages to a JMS queue, such as producerTemplate.sendBodyAndHeaders("jms:queue:myQ", body, headers); we see how this internally always creates an exception: java.lang.Throwable.(String) line: 267 java.lang.Exception.(String) line: 52

Re: Re: camel:context-inflight returns 'Object name cannot be null'

2015-06-07 Thread Martin Lichtin
PM, Martin Lichtin lich...@yahoo.com.invalid wrote: Trying a new command. karaf camel:context-inflight myCamelContext Error executing command: Object name cannot be null

camel:context-inflight returns 'Object name cannot be null'

2015-06-04 Thread Martin Lichtin
Trying a new command. karaf camel:context-inflight myCamelContext Error executing command: Object name cannot be null

Re: Issue with timer:// route, NoSuchBeanException on route shutdown

2015-05-29 Thread Martin Lichtin
In the end, the solution was to replace to uri=bean:myBean / with bean ref=myBean / This way, the bean is still referencend and can be called while the other context is shutting down. - Martin Martin Lichtin-2 wrote This didn't make a difference. However, something else I noticed

Re: Issue with timer:// route, NoSuchBeanException on route shutdown

2015-05-27 Thread Martin Lichtin
if blueprint shutdown in reverse order and therefore the bean before camel etc. On Tue, May 26, 2015 at 9:56 PM, Martin Lichtin lich...@yahoo.com.invalid wrote: Using Blueprint in an OSGi bundle: bean id=myBean init-method=init destroy-method=destroy class=myPkg.MyBean /bean camelContext

Re: Re: Issue with timer:// route, NoSuchBeanException on route shutdown

2015-05-26 Thread Martin Lichtin
at 12:41 PM, Martin Lichtin lich...@yahoo.com.invalid wrote: Is anyone else seeing this issue on shutting down a simple timer-based route such as route id=myRoute from uri=timer://myTimer?fixedRate=trueamp;period 00 / to uri=bean:myBean / /route

Issue with timer:// route, NoSuchBeanException on route shutdown

2015-05-26 Thread Martin Lichtin
Is anyone else seeing this issue on shutting down a simple timer-based route such as route id=myRoute from uri=timer://myTimer?fixedRate=trueamp;period=2000 / to uri=bean:myBean / /route On shutting down, it reports 2015-05-22 01:20:14,970 |

Re: Re: Issue with timer:// route, NoSuchBeanException on route shutdown

2015-05-26 Thread Martin Lichtin
:41 PM, Martin Lichtin lich...@yahoo.com.invalid wrote: Is anyone else seeing this issue on shutting down a simple timer-based route such as route id=myRoute from uri=timer://myTimer?fixedRate=trueamp;period 00 / to uri=bean:myBean / /route

Re: Issue with 'javax.annotation' when installing 'camel' followed by 'cxf' feature

2015-04-07 Thread Martin Lichtin
/1.2 ahead of installing the 'camel' feature, then I can later install 'cxf'. James Carman wrote You need to update jre.properties to make sure you have the right version coming from the jre. What jdk? On Monday, April 6, 2015, Martin Lichtin lt; lichtin@.com gt; wrote: In a Karaf

Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

2015-04-06 Thread lichtin
) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 3, 2015 at 11:26:55 PM, Martin Lichtin ( lichtin@.com ) wrote: Using Camel 2.15.1 and CXF 3.0.4 in a Karaf container, I'm wondering how one can control the Spring version. Camel feature camel-spring loads

Issue with 'javax.annotation' when installing 'camel' followed by 'cxf' feature

2015-04-06 Thread Martin Lichtin
In a Karaf 3.0.3 container one cannot install feature 'camel' followed by installing 'cxf'. karaf@root() feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features karaf@root() feature:install

Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

2015-04-06 Thread lichtin
. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 3, 2015 at 11:26:55 PM, Martin Lichtin ( lichtin@.com ) wrote: Using Camel 2.15.1 and CXF 3.0.4 in a Karaf container, I'm

Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

2015-04-03 Thread Martin Lichtin
Using Camel 2.15.1 and CXF 3.0.4 in a Karaf container, I'm wondering how one can control the Spring version. Camel feature camel-spring loads Spring with feature version=[3.2,4)spring/feature which will result in loading 3.2.11.RELEASE. Is there a way to use Spring 4? - Martin