You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2007/08/14 20:23:22 UTC

[jira] Created: (CAMEL-103) ClassCastException when using GenericApplicationContext

ClassCastException when using GenericApplicationContext
-------------------------------------------------------

                 Key: CAMEL-103
                 URL: https://issues.apache.org/activemq/browse/CAMEL-103
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-spring
    Affects Versions: 1.1.0
            Reporter: James Strachan
             Fix For: 1.2.0



Caused by: java.lang.ClassCastException:
org.springframework.context.support.GenericApplicationContext

           at
org.apache.camel.spring.SpringCamelContext.createInjector(SpringCamelCon
text.java:147)

           at
org.apache.camel.impl.DefaultCamelContext.getInjector(DefaultCamelContex
t.java:322)

           at
org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(Defaul
tCamelContext.java:407)

           at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.ja
va:373)

           at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.ja
va:139)

           at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:38)

           at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(Camel
ContextFactoryBean.java:103)

           ... 20 more




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


[jira] Resolved: (CAMEL-103) ClassCastException when using GenericApplicationContext

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

James Strachan resolved CAMEL-103.
----------------------------------

    Resolution: Fixed

added a test case in CamelContextFactoryBeanTest

> ClassCastException when using GenericApplicationContext
> -------------------------------------------------------
>
>                 Key: CAMEL-103
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-103
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 1.1.0
>            Reporter: James Strachan
>             Fix For: 1.2.0
>
>
> Caused by: java.lang.ClassCastException:
> org.springframework.context.support.GenericApplicationContext
>            at
> org.apache.camel.spring.SpringCamelContext.createInjector(SpringCamelCon
> text.java:147)
>            at
> org.apache.camel.impl.DefaultCamelContext.getInjector(DefaultCamelContex
> t.java:322)
>            at
> org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(Defaul
> tCamelContext.java:407)
>            at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.ja
> va:373)
>            at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.ja
> va:139)
>            at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:38)
>            at
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(Camel
> ContextFactoryBean.java:103)
>            ... 20 more

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


[jira] Commented: (CAMEL-103) ClassCastException when using GenericApplicationContext

Posted by "James Strachan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39935 ] 

James Strachan commented on CAMEL-103:
--------------------------------------

I've just committed a patch which I think resolves this - need a test case to be sure...

> ClassCastException when using GenericApplicationContext
> -------------------------------------------------------
>
>                 Key: CAMEL-103
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-103
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 1.1.0
>            Reporter: James Strachan
>             Fix For: 1.2.0
>
>
> Caused by: java.lang.ClassCastException:
> org.springframework.context.support.GenericApplicationContext
>            at
> org.apache.camel.spring.SpringCamelContext.createInjector(SpringCamelCon
> text.java:147)
>            at
> org.apache.camel.impl.DefaultCamelContext.getInjector(DefaultCamelContex
> t.java:322)
>            at
> org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(Defaul
> tCamelContext.java:407)
>            at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.ja
> va:373)
>            at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.ja
> va:139)
>            at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:38)
>            at
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(Camel
> ContextFactoryBean.java:103)
>            ... 20 more

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