Re: Issue in resolving endpoint with property having period

2023-06-14 Thread Claus Ibsen
Hi See this FAQ https://camel.apache.org/manual/faq/how-to-create-executable-jar-camel-main.html#_using_maven_shade_plugin On Wed, Jun 14, 2023 at 5:10 PM Sujeet Singh wrote: > Hi, > > The issue is resolved now. > > We loaded the context like below > > AbstractApplicationContext context = new

Re: Issue in resolving endpoint with property having period

2023-06-14 Thread Sujeet Singh
Hi, The issue is resolved now. We loaded the context like below AbstractApplicationContext context = new ClassPathXmlApplicationContext(contextConfigxml); context.start(); context.registerShutdownHook();| The major factor though was we used below as one of the transformer in maven shade

Re: Issue in resolving endpoint with property having period

2023-06-09 Thread Claus Ibsen
Hi You are using spring and camel manually where you create spring app context and whatnot. Make sure you start spring also, as camel to sync up with spring lifecycle and startup its services such as type converters, properties and whatnot. You can only get better help if you put together a

Re: Issue in resolving endpoint with property having period

2023-06-09 Thread Sujeet Singh
Hi, Getting the same issue. Extra information is below for this change Property with key [time] not found, using default value: 5000 Thanks & Regards, Sujeet On Fri, 9 Jun 2023, 15:10 Mikael Koskinen, wrote: > Hi, > > Does the following syntax work: > >

Re: Issue in resolving endpoint with property having period

2023-06-09 Thread Mikael Koskinen
Hi, Does the following syntax work: from("timer:notification?period={{time:1000}}") pe 9. kesäk. 2023 klo 12.21 Sujeet Singh (sujeetkumarsi...@gmail.com) kirjoitti: > > Hi, > The same issue was reported in stackoverflow 11 months ago. > > java - Using Timer Component with Apache Camel and the

Re: Issue in resolving endpoint with property having period

2023-06-09 Thread Sujeet Singh
Hi, The same issue was reported in stackoverflow 11 months ago. java - Using Timer Component with Apache Camel and the period Query Parameter results in error: Error binding property (period=10) with name: period on bean: - Stack Overflow

Re: Issue in resolving endpoint with property having period

2023-06-08 Thread Sujeet Singh
Hi, I switched to 3.14.8 from 3.2.0 I am getting this extra information which was absent earlier Caused by: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: java.lang.String to the required type: java.time.Duration with value 5000 Thanks &

Re: Issue in resolving endpoint with property having period

2023-06-07 Thread ski n
It's route information that is needed. If the route xml is provided then it's easier to take a look at it. BTW are you really running it on 3.2.0? (It's best to use 3.20.5, or at least to go to 3.14.8) On Wed, Jun 7, 2023 at 3:30 PM Sujeet Singh wrote: > Hi, > > It is something like below. > >

Re: Issue in resolving endpoint with property having period

2023-06-07 Thread Sujeet Singh
Hi, It is something like below. public class FeedLauncher{ public static void main(String[] args){ ApplicationContext context = ClassPathXmlApplicationContext("spring/tc-feedloader-camel-spring-ctx.xml"); SpringCamelContext camleContext = new SpringCamelContext();

Re: Issue in resolving endpoint with property having period

2023-06-05 Thread ski n
Hi Sujeet, Can you add the complete route, so it's clear where you are using it? Regards, Raymond On Mon, Jun 5, 2023 at 3:50 PM Sujeet Singh wrote: > Hi, > > I am trying to migrate from Camel 2.x to > Camel 3.2.0. I have followed all the > guidelines but getting the below error > during

Issue in resolving endpoint with property having period

2023-06-05 Thread Sujeet Singh
Hi, I am trying to migrate from Camel 2.x to Camel 3.2.0. I have followed all the guidelines but getting the below error during startup. Caused by org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: timer://notification?fixedRate=true=5000 due to: Error binding property