You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/11/16 14:41:52 UTC

[jira] Created: (CAMEL-2177) Initialization of DefaultTypeConverter should only let one do the classpath scanning for @Converter

Initialization of DefaultTypeConverter should only let one do the classpath scanning for @Converter
---------------------------------------------------------------------------------------------------

                 Key: CAMEL-2177
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2177
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.0.0
            Reporter: Claus Ibsen
             Fix For: 2.2.0


In cases multiple requests hit Camel really fast after startup, a race condition can lead to multiple threads doing concurrent classpath scanning for @Converter

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2177) Initialization of DefaultTypeConverter should only let one do the classpath scanning for @Converter

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55453#action_55453 ] 

Claus Ibsen commented on CAMEL-2177:
------------------------------------

An example
{code}
[    Camel thread 2: ToAsync[cxf:bean:reportIncidentEndpoint]] DefaultTypeConverter WARN  Overriding type converter from: StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) to: StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry)
[    Camel thread 1: ToAsync[cxf:bean:reportIncidentEndpoint]] DefaultTypeConverter WARN  Overriding type converter from: StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) to: StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry)
{code}

> Initialization of DefaultTypeConverter should only let one do the classpath scanning for @Converter
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2177
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2177
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Claus Ibsen
>             Fix For: 2.2.0
>
>
> In cases multiple requests hit Camel really fast after startup, a race condition can lead to multiple threads doing concurrent classpath scanning for @Converter

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2177) Initialization of DefaultTypeConverter should only let one do the classpath scanning for @Converter

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2177.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.2.0)
                   2.1.0
         Assignee: Claus Ibsen

trunk: 880843.

Loading improved but it was likely newer multiple threads loading anyway. But the code is improved.

Fixed the WARN logging when race conditions occur with multiple threads promoting a fallback converter.

> Initialization of DefaultTypeConverter should only let one do the classpath scanning for @Converter
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2177
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2177
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> In cases multiple requests hit Camel really fast after startup, a race condition can lead to multiple threads doing concurrent classpath scanning for @Converter

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.