spring instrumentation causes issues in the spring example...
-------------------------------------------------------------

                 Key: CAMEL-296
                 URL: https://issues.apache.org/activemq/browse/CAMEL-296
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core
            Reporter: James Strachan
            Assignee: Hadrian Zbarcea
             Fix For: 1.3.0


When I run a build I see this...

Running org.apache.camel.example.spring.IntegrationTest
[                          main] Main                           INFO  Apache 
Camel 1.3-SNAPSHOT starting
[                          main] ClassPathXmlApplicationContext INFO  
Refreshing [EMAIL PROTECTED]: display name [EMAIL PROTECTED]; startup date [Fri 
Jan 18 12:34:29 GMT 2008]; root of context hierarchy
[                          main] XmlBeanDefinitionReader        INFO  Loading 
XML bean definitions from file 
[/workspace/java/camel/examples/camel-example-spring/target/classes/META-INF/spring/camel-context.xml]
[                          main] ClassPathXmlApplicationContext INFO  Bean 
factory for application context [EMAIL PROTECTED]: [EMAIL PROTECTED]
[                          main] ClassPathXmlApplicationContext INFO  Bean 
'mbeanServer' is not eligible for getting processed by all BeanPostProcessors 
(for example: not eligible for auto-proxying)
[                          main] ClassPathXmlApplicationContext INFO  Bean 
'mbeanServer' is not eligible for getting processed by all BeanPostProcessors 
(for example: not eligible for auto-proxying)
[                          main] ClassPathXmlApplicationContext INFO  Bean 
'org.apache.camel.example.spring.MyRouteBuilder' is not eligible for getting 
processed by all BeanPostProcessors (for example: not eligible for 
auto-proxying)
[                          main] ClassPathXmlApplicationContext INFO  Bean 
'camel' is not eligible for getting processed by all BeanPostProcessors (for 
example: not eligible for auto-proxying)
[                          main] ClassPathXmlApplicationContext INFO  Bean 
'camel' is not eligible for getting processed by all BeanPostProcessors (for 
example: not eligible for auto-proxying)
[                          main] DefaultListableBeanFactory     INFO  
Pre-instantiating singletons in [EMAIL PROTECTED]: defining beans 
[camel:beanPostProcessor,camel,jms,agent,mbeanServer,registry,serverConnector]; 
root of factory hierarchy
[                          main] InstrumentationProcessor       WARN  Could not 
register CamelContext MBean
javax.management.InstanceAlreadyExistsException: 
org.apache.camel:context=stracbook.local/camel,name=context
        at 
com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:452)
        at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1410)
        at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:936)
        at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:337)
        at 
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497)
        at 
org.apache.camel.management.InstrumentationAgentImpl.registerMBeanWithServer(InstrumentationAgentImpl.java:186)
        at 
org.apache.camel.management.InstrumentationAgentImpl.register(InstrumentationAgentImpl.java:119)
        at 
org.apache.camel.management.InstrumentationAgentImpl.register(InstrumentationAgentImpl.java:102)
        at 
org.apache.camel.management.InstrumentationLifecycleStrategy.onContextCreate(InstrumentationLifecycleStrategy.java:53)
        at 
org.apache.camel.management.InstrumentationAgentImpl.doStart(InstrumentationAgentImpl.java:157)
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
        at 
org.apache.camel.spring.SpringInstrumentationAgent.afterPropertiesSet(SpringInstrumentationAgent.java:39)


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

Reply via email to