You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Behrad <be...@gmail.com> on 2015/04/07 08:42:25 UTC
upgrading to Scala 2.11
When I upgraded to Scala 2.11 (my Camel is 2.14.0) I'm getting this error:
AnnotationTypeConverterLoader - Ignoring converter type:
org.apache.camel.scala.converter.ScalaTypeConverter as a dependent class
could not be found: java.lang.NoClassDefFoundError: scala/xml/Elem
java.lang.NoClassDefFoundError: scala/xml/Elem
--
--Behrad
RE: upgrading to Scala 2.11
Posted by shreyas <sh...@hotmail.com>.
As far as I see, it is a warn
catch (NoClassDefFoundError e) {
LOG.warn("Ignoring converter type: " + type.getCanonicalName() + " as a dependent class could not be found: " + e, e);
}
You should be able to suppress it in your log4j config for this particular class.
Also, may be you can try to remove this convertor from registry using (never tried myself):
context.getTypeConverterRegistry.removeTypeConverter
Thanks,
Shreyas
----------------------------------------
> Date: Tue, 7 Apr 2015 11:30:15 +0430
> Subject: Re: upgrading to Scala 2.11
> From: behradz@gmail.com
> To: users@camel.apache.org
>
> Thank you Shreyas,
> I don't need xml support, so I can ignore this, however It would be nicer
> if I could turn related type converter off, or tell Camel to just warn me
> about them... the exception trace turns my logs ugly :(
>
> 2015-04-07 11:24 GMT+04:30 shreyas <sh...@hotmail.com>:
>
>> Scala 2.11 does not have native XML support, you need to add the
>> dependency: https://github.com/scala/scala-xml
>>
>> For SBT: libraryDependencies += "org.scala-lang.modules" %% "scala-xml" %
>> "1.0.3"
>>
>>
>>
>> Thanks,
>> Shreyas
>>
>>
>> ----------------------------------------
>>> Date: Tue, 7 Apr 2015 11:12:25 +0430
>>> Subject: upgrading to Scala 2.11
>>> From: behradz@gmail.com
>>> To: users@camel.apache.org
>>>
>>> When I upgraded to Scala 2.11 (my Camel is 2.14.0) I'm getting this
>> error:
>>>
>>> AnnotationTypeConverterLoader - Ignoring converter type:
>>> org.apache.camel.scala.converter.ScalaTypeConverter as a dependent class
>>> could not be found: java.lang.NoClassDefFoundError: scala/xml/Elem
>>> java.lang.NoClassDefFoundError: scala/xml/Elem
>>>
>>>
>>>
>>> --
>>> --Behrad
>>
>>
>
>
>
> --
> --Behrad
Re: upgrading to Scala 2.11
Posted by Behrad <be...@gmail.com>.
Thank you Shreyas,
I don't need xml support, so I can ignore this, however It would be nicer
if I could turn related type converter off, or tell Camel to just warn me
about them... the exception trace turns my logs ugly :(
2015-04-07 11:24 GMT+04:30 shreyas <sh...@hotmail.com>:
> Scala 2.11 does not have native XML support, you need to add the
> dependency: https://github.com/scala/scala-xml
>
> For SBT: libraryDependencies += "org.scala-lang.modules" %% "scala-xml" %
> "1.0.3"
>
>
>
> Thanks,
> Shreyas
>
>
> ----------------------------------------
> > Date: Tue, 7 Apr 2015 11:12:25 +0430
> > Subject: upgrading to Scala 2.11
> > From: behradz@gmail.com
> > To: users@camel.apache.org
> >
> > When I upgraded to Scala 2.11 (my Camel is 2.14.0) I'm getting this
> error:
> >
> > AnnotationTypeConverterLoader - Ignoring converter type:
> > org.apache.camel.scala.converter.ScalaTypeConverter as a dependent class
> > could not be found: java.lang.NoClassDefFoundError: scala/xml/Elem
> > java.lang.NoClassDefFoundError: scala/xml/Elem
> >
> >
> >
> > --
> > --Behrad
>
>
--
--Behrad
RE: upgrading to Scala 2.11
Posted by shreyas <sh...@hotmail.com>.
Scala 2.11 does not have native XML support, you need to add the dependency: https://github.com/scala/scala-xml
For SBT: libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.0.3"
Thanks,
Shreyas
----------------------------------------
> Date: Tue, 7 Apr 2015 11:12:25 +0430
> Subject: upgrading to Scala 2.11
> From: behradz@gmail.com
> To: users@camel.apache.org
>
> When I upgraded to Scala 2.11 (my Camel is 2.14.0) I'm getting this error:
>
> AnnotationTypeConverterLoader - Ignoring converter type:
> org.apache.camel.scala.converter.ScalaTypeConverter as a dependent class
> could not be found: java.lang.NoClassDefFoundError: scala/xml/Elem
> java.lang.NoClassDefFoundError: scala/xml/Elem
>
>
>
> --
> --Behrad