You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Andreas Kuhtz <an...@siemens.com> on 2011/06/06 12:12:49 UTC

RE: TypeConverterLoaderException in webstart

Found out that you must return at least one converter to make camel happy ...
Use this updated method:

	public Set&lt;Class&lt;?&gt;> findAnnotated(Class<? extends Annotation>
annotation,
			String... packageNames) {
        // we must return at least 1 converter ....
        Set&lt;Class&lt;?&gt;> annotedClasses = new
LinkedHashSet&lt;Class&lt;?&gt;>();
       
annotedClasses.add(org.apache.camel.converter.ObjectConverter.class);
        annotedClasses.add(org.apache.camel.converter.CamelConverter.class);
		return annotedClasses;
	}




--
View this message in context: http://camel.465427.n5.nabble.com/TypeConverterLoaderException-in-webstart-tp4430758p4458169.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: TypeConverterLoaderException in webstart

Posted by Jim Newsham <jn...@referentia.com>.
Thanks Andreas, this fix worked for me.  Appreciate the help!

Regards,
Jim

On 6/6/2011 12:12 AM, Andreas Kuhtz wrote:
> Found out that you must return at least one converter to make camel happy ...
> Use this updated method:
>
> 	public Set&lt;Class&lt;?&gt;>  findAnnotated(Class<? extends Annotation>
> annotation,
> 			String... packageNames) {
>          // we must return at least 1 converter ....
>          Set&lt;Class&lt;?&gt;>  annotedClasses = new
> LinkedHashSet&lt;Class&lt;?&gt;>();
>
> annotedClasses.add(org.apache.camel.converter.ObjectConverter.class);
>          annotedClasses.add(org.apache.camel.converter.CamelConverter.class);
> 		return annotedClasses;
> 	}
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/TypeConverterLoaderException-in-webstart-tp4430758p4458169.html
> Sent from the Camel - Users mailing list archive at Nabble.com.