You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Bingliu <li...@gmail.com> on 2011/05/05 10:14:31 UTC
Camel 2.3 throws exception on runtime
Hi,when i make pressure test, an exception has been thrown. Please look this:
2011 五月 05 15:32:39 219416 WARN [New I/O server worker #3-6]
org.apache.camel.management.DefaultManagementLifecycleStrategy - Could
not register thread pool: java.util.concurrent.ThreadPoolExecutor@13452c4 as
ThreadPool MBean.
javax.management.InstanceAlreadyExistsException:
org.apache.camel:context=001K6SE026/coreRouterContext,type=threadpools,name=ThreadPoolExecutor(0x13452c4)
at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Unknown
Source)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Unknown
Source)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown
Source)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source)
at
org.apache.camel.management.DefaultManagementAgent.registerMBeanWithServer(DefaultManagementAgent.java:318)
at
org.apache.camel.management.DefaultManagementAgent.register(DefaultManagementAgent.java:228)
at
org.apache.camel.management.DefaultManagementAgent.register(DefaultManagementAgent.java:211)
at
org.apache.camel.management.ManagedManagementStrategy.manageNamedObject(ManagedManagementStrategy.java:74)
at
org.apache.camel.management.ManagedManagementStrategy.manageObject(ManagedManagementStrategy.java:67)
at
org.apache.camel.management.DefaultManagementLifecycleStrategy.onThreadPoolAdd(DefaultManagementLifecycleStrategy.java:488)
at
org.apache.camel.impl.DefaultExecutorServiceStrategy.onThreadPoolCreated(DefaultExecutorServiceStrategy.java:299)
at
org.apache.camel.impl.DefaultExecutorServiceStrategy.newThreadPool(DefaultExecutorServiceStrategy.java:246)
at
org.apache.camel.impl.DefaultExecutorServiceStrategy.newDefaultThreadPool(DefaultExecutorServiceStrategy.java:161)
at
org.apache.camel.impl.DefaultProducerTemplate.doStart(DefaultProducerTemplate.java:735)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:56)
at
org.apache.camel.impl.DefaultCamelContext.createProducerTemplate(DefaultCamelContext.java:862)
at
org.apache.camel.impl.DefaultCamelContext.createProducerTemplate(DefaultCamelContext.java:854)
at
com.jbsoft.msb.interfaces.router.generic.RouterGateway.route(RouterGateway.java:72)
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
at
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy35.route(Unknown Source)
at
com.jbsoft.msb.connector.http.handler.HttpServerHandler.messageReceived(HttpServerHandler.java:92)
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:796)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:391)
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:506)
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:490)
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:427)
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:555)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:345)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:332)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:323)
at
org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:275)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
at
org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at
org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
what is the cause of the problem? Thanks
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exception-on-runtime-tp4372198p4372198.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.3 throws exception on runtime
Posted by Bingliu <li...@gmail.com>.
Thank you
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exception-on-runtime-tp4372198p4374901.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.3 throws exception on runtime
Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, May 5, 2011 at 12:21 PM, Bingliu <li...@gmail.com> wrote:
> Nothing. I use camel in osgi framework.I use a bundle config camelContext.xml
> and publish the camelContext as a osgi service.In other bundle, I get the
> camelContext and creating produceTemplate. It is 72.
>
The JMX clash in OSGi has been fixed in a later release of Camel.
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exception-on-runtime-tp4372198p4372404.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Camel 2.3 throws exception on runtime
Posted by Bingliu <li...@gmail.com>.
Nothing. I use camel in osgi framework.I use a bundle config camelContext.xml
and publish the camelContext as a osgi service.In other bundle, I get the
camelContext and creating produceTemplate. It is 72.
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exception-on-runtime-tp4372198p4372404.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.3 throws exception on runtime
Posted by Claus Ibsen <cl...@gmail.com>.
Its just a WARNing.
Seems like in the JMX Server there is already a MBean with that name.
What do you do in RouterGateway:72 ?
On Thu, May 5, 2011 at 10:14 AM, Bingliu <li...@gmail.com> wrote:
> Hi,when i make pressure test, an exception has been thrown. Please look this:
> 2011 五月 05 15:32:39 219416 WARN [New I/O server worker #3-6]
> org.apache.camel.management.DefaultManagementLifecycleStrategy - Could
> not register thread pool: java.util.concurrent.ThreadPoolExecutor@13452c4 as
> ThreadPool MBean.
> javax.management.InstanceAlreadyExistsException:
> org.apache.camel:context=001K6SE026/coreRouterContext,type=threadpools,name=ThreadPoolExecutor(0x13452c4)
> at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Unknown
> Source)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Unknown
> Source)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown
> Source)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown
> Source)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source)
> at
> org.apache.camel.management.DefaultManagementAgent.registerMBeanWithServer(DefaultManagementAgent.java:318)
> at
> org.apache.camel.management.DefaultManagementAgent.register(DefaultManagementAgent.java:228)
> at
> org.apache.camel.management.DefaultManagementAgent.register(DefaultManagementAgent.java:211)
> at
> org.apache.camel.management.ManagedManagementStrategy.manageNamedObject(ManagedManagementStrategy.java:74)
> at
> org.apache.camel.management.ManagedManagementStrategy.manageObject(ManagedManagementStrategy.java:67)
> at
> org.apache.camel.management.DefaultManagementLifecycleStrategy.onThreadPoolAdd(DefaultManagementLifecycleStrategy.java:488)
> at
> org.apache.camel.impl.DefaultExecutorServiceStrategy.onThreadPoolCreated(DefaultExecutorServiceStrategy.java:299)
> at
> org.apache.camel.impl.DefaultExecutorServiceStrategy.newThreadPool(DefaultExecutorServiceStrategy.java:246)
> at
> org.apache.camel.impl.DefaultExecutorServiceStrategy.newDefaultThreadPool(DefaultExecutorServiceStrategy.java:161)
> at
> org.apache.camel.impl.DefaultProducerTemplate.doStart(DefaultProducerTemplate.java:735)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:56)
> at
> org.apache.camel.impl.DefaultCamelContext.createProducerTemplate(DefaultCamelContext.java:862)
> at
> org.apache.camel.impl.DefaultCamelContext.createProducerTemplate(DefaultCamelContext.java:854)
> at
> com.jbsoft.msb.interfaces.router.generic.RouterGateway.route(RouterGateway.java:72)
> at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
> at
> org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
> at
> org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
> at
> org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
> at
> org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
> at
> org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
> at $Proxy35.route(Unknown Source)
> at
> com.jbsoft.msb.connector.http.handler.HttpServerHandler.messageReceived(HttpServerHandler.java:92)
> at
> org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
> at
> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
> at
> org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:796)
> at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:391)
> at
> org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:506)
> at
> org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:490)
> at
> org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:427)
> at
> org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
> at
> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
> at
> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:555)
> at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:345)
> at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:332)
> at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:323)
> at
> org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:275)
> at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
> at
> org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
> at
> org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> what is the cause of the problem? Thanks
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exception-on-runtime-tp4372198p4372198.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Camel 2.3 throws exception on runtime
Posted by Bingliu <li...@gmail.com>.
Runtime: JDK 1.6,OSGI framework;OS:Linux;I don't configure the <threadPool>
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-2-3-throws-exception-on-runtime-tp4372198p4372205.html
Sent from the Camel - Users mailing list archive at Nabble.com.