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 <sujeetkumarsi...@gmail.com>
wrote:

> 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 plugin.
>
> <transformer
> implementation="org.apache.maven.plugins.shade.resource.Services
> ResourceTransformer"> </transformer>
>
>
> We used Camel 3.40 but if all goes well will move to 3.14.8 as suggested
> here.
>
>
> Thanks all for the help and support.
>
>
> Thanks & Regards,
> Sujeet
>
>
> On Fri, 9 Jun 2023, 16:26 Claus Ibsen, <claus.ib...@gmail.com> wrote:
>
> > 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 small example that
> > reproduces what you do.
> >
> >
> >
> > On Fri, Jun 9, 2023 at 12:13 PM Sujeet Singh <sujeetkumarsi...@gmail.com
> >
> > wrote:
> >
> > > 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, <mijap...@gmail.com> wrote:
> > >
> > > > 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 period Query
> > > > > Parameter results in error: Error binding property (period=10) with
> > > name:
> > > > > period on bean: - Stack Overflow
> > > > > <
> > > >
> > >
> >
> https://stackoverflow.com/questions/72708073/using-timer-component-with-apache-camel-and-the-period-query-parameter-results-i
> > > > >
> > > > >
> > > > > Thanks & Regards,
> > > > > Sujeet
> > > > >
> > > > > On Thu, Jun 8, 2023 at 12:56 PM Sujeet Singh <
> > > sujeetkumarsi...@gmail.com
> > > > >
> > > > > wrote:
> > > > >
> > > > > > 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 & Regards,
> > > > > > Sujeet
> > > > > >
> > > > > > On Wed, 7 Jun 2023, 19:08 ski n, <raymondmees...@gmail.com>
> wrote:
> > > > > >
> > > > > >> 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 <
> > > > sujeetkumarsi...@gmail.com>
> > > > > >> wrote:
> > > > > >>
> > > > > >> > 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();
> > > > > >> >    camelContext.setApplicationContext(context);
> > > > > >> >    camelContext.start();
> > > > > >> > }
> > > > > >> > tc-feedloader-camel-spring-ctx.xml
> > > > > >> > <beans ....schema>
> > > > > >> > <context:annotation-config/>
> > > > > >> > <import
> > > > resource="classpath:spring/feedloader-camel-spring-ctx.xml"/>
> > > > > >> > <import
> > > > > >> >
> > > > resource="classpath:spring/tc-feedloader-idempotent-spring-ctx.xml"/>
> > > > > >> > <import
> resource="classpath:spring/tc-feedloader-context.xml"/>
> > > > > >> > </bean>
> > > > > >> > tc-feedloader-context.xml
> > > > > >> > <beans..schema>
> > > > > >> > <context:annotation-config/>
> > > > > >> > <import
> resource="classpath:spring/${ENV}/tbus-mq-context.xml"/>
> > > > > >> > <context:component-scan
> > > > > >> >               base-package="<packagenames>"/>
> > > > > >> > </beans>
> > > > > >> >
> > > > > >> >
> > > > > >> > The route information is stored in database and using JPA we
> are
> > > > > >> extracting
> > > > > >> > and configuring it.
> > > > > >> >
> > > > > >> > We are really stuck on this though it works very well with
> Camel
> > > 2.x
> > > > > >> >
> > > > > >> > Thanks & Regards,
> > > > > >> > Sujeet
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > On Mon, Jun 5, 2023 at 7:37 PM ski n <
> raymondmees...@gmail.com>
> > > > wrote:
> > > > > >> >
> > > > > >> > > 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 <
> > > > > >> sujeetkumarsi...@gmail.com>
> > > > > >> > > 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 startup.
> > > > > >> > > >
> > > > > >> > > > Caused by org.apache.camel.ResolveEndpointFailedException:
> > > > Failed to
> > > > > >> > > > resolve endpoint:
> > > > timer://notification?fixedRate=true&period=5000
> > > > > >> due
> > > > > >> > to:
> > > > > >> > > > Error binding property (period = 5000) with name: period
> on
> > > > bean:
> > > > > >> > > > timer://notification?fixedRate=true&period=5000 with
> value:
> > > > 5000
> > > > > >> > > >
> > > > > >> > > > If I remove period from above endpoint it starts working.
> > Same
> > > > thing
> > > > > >> > > > happens for time, maxAge etc.
> > > > > >> > > >
> > > > > >> > > > Any help would be appreciated.
> > > > > >> > > >
> > > > > >> > > > Thanks & Regards,
> > > > > >> > > > Sujeet
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > > >
> > > >
> > >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
> >
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to