Hi Sven,

Can you put a breakpoint into this class at the following method to see if
the typeConverter object is removed at a specific moment ?

package org.apache.camel.core.osgi;

public class OsgiTypeConverter extends ServiceSupport implements
TypeConverter, TypeConverterRegistry,

   ....

    public boolean removeTypeConverter(Class<?> toType, Class<?> fromType) {
        return getDelegate().removeTypeConverter(toType, fromType);
    }

Regards,

Charles

On Thu, Sep 18, 2014 at 11:07 AM, Svend-Ole Nielsen <
[email protected]> wrote:

> Hi Charles
>
> Sorry for not providing the info. The camel version is 2.13.1. The
> converter is an OSGI bundle with several other stuff, which works fine in
> other routes - also after the converter is "lost". The converters I have
> are listed with full name - one per line in a file located under META-INF
> services/org/apache/camel/TypeConverter. Camel picks them up fine after
> redeploy or restart and puts them in the Registry, but for some reason one
> of them disappears. The two other converters declared is never "lost".
>
> The error I'm getting is Caused by:
> org.apache.camel.NoTypeConversionAvailableException: No type converter
> available to convert from type:  java.util.ArrayList to the required type:
> xxxxxxxxx with value.
>
> Hope it sheds a little more light on the problem.
>
> /Svend
>
> -----Original Message-----
> From: Charles Moulliard [mailto:[email protected]]
> Sent: 18. september 2014 09:27
> To: [email protected]
> Subject: Re: TypeConverter suddenly not available...
>
> Hi Svend,
>
> Can you please provide us more info about your use case ? Version of Camel
> used, how your project is packaged (bundle, jar) ? Do you use  a bundle
> Activator to start your camel route(s) or Spring/Blueprint ? How have you
> added your typeConverter ?
> Are you sure that it is gone ? What is exactly the error that you get
> (gist) ?
>
> Regards,
>
>
> On Thu, Sep 18, 2014 at 9:22 AM, Svend-Ole Nielsen <
> [email protected]> wrote:
>
> > Hi all
> >
> > I have made my own typeconverter, which works perfectly when it is
> > available. But all of a sudden the route stops with an error stating
> > that a convert could not be found. If I then restart the route
> > everything works until it looses the converter again.
> >
> > Anyone with an idea as to why it "looses" the converter ??
> >
> > I'm running Camel inside Karaf if that is an issue..
> >
> > Regards,
> > Svend
> >
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Reply via email to