servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Auke <a...@finalist.com>
Subject Jetty connector stops unexpectedly
Date Tue, 12 Oct 2010 09:45:19 GMT

Hello,

I have some weird (to me) behaviour in Servicemix 4.3.0. I've created a
simple example that is as follows:

Two bundles: each with 1 route:

  &lt;route id=&quot;jettyRoute1&quot;&gt;
    &lt;from
uri=&quot;jetty:http://0.0.0.0:15000/jetty?matchOnUriPrefix=true&quot;/&gt;
    &lt;to
uri=&quot;log:nl.example.jetty.jetty1?showAll=true&amp;amp;level=INFO&quot;/&gt;
  &lt;/route&gt;


and (the other bundle):

  &lt;route id=&quot;jettyRoute2&quot;&gt;
    &lt;from
uri=&quot;jetty:http://0.0.0.0:16000/jetty?matchOnUriPrefix=true&quot;/&gt;
    &lt;to
uri=&quot;log:nl.example.jetty.jetty2?showAll=true&amp;amp;level=INFO&quot;/&gt;
  &lt;/route&gt;


When I go to http://localhost:15000/jetty or http://localhost:16000/jetty I
get both log message in my log. My routes are working.

However when I restart one of those bundles both jetty servers are killed
and only one is restarted... Am I doing something wrong?


---
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Bundle stopped:
jetty-2
72 - org.springframework.osgi.extender - 1.2.0 | Closing appCtx for
OsgiBundleXmlApplicationContext(bundle=jetty-2,
config=osgibundle:/META-INF/spring/*.xml)
72 - org.springframework.osgi.extender - 1.2.0 | Shutting down normally
appCtx OsgiBundleXmlApplicationContext(bundle=jetty-2,
config=osgibundle:/META-INF/spring/*.xml)
195 - jetty-2 - 1.0.0.SNAPSHOT | ServiceEvent UNREGISTERING
60 - org.springframework.context - 3.0.3.RELEASE | Application Context
service already unpublished
60 - org.springframework.context - 3.0.3.RELEASE | Closing
OsgiBundleXmlApplicationContext(bundle=jetty-2,
config=osgibundle:/META-INF/spring/*.xml): startup date [Tue Oct 12 10:34:47
CEST 2010]; root of context hierarchy
59 - org.springframework.beans - 3.0.3.RELEASE | Returning cached instance
of singleton bean 'camel-jetty-2'
75 - org.apache.camel.camel-spring - 2.4.0.fuse-00-00 | onApplicationEvent:
org.springframework.context.event.ContextClosedEvent[source=OsgiBundleXmlApplicationContext(bundle=jetty-2,
config=osgibundle:/META-INF/spring/*.xml): startup date [Tue Oct 12 10:34:47
CEST 2010]; root of context hierarchy]
59 - org.springframework.beans - 3.0.3.RELEASE | Returning cached instance
of singleton bean 'lifecycleProcessor'
59 - org.springframework.beans - 3.0.3.RELEASE | Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@18429d6:
defining beans [camel-jetty-2:beanPostProcessor,camel-jetty-2]; root of
factory hierarchy
59 - org.springframework.beans - 3.0.3.RELEASE | Invoking destroy() on bean
with name 'camel-jetty-2'
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Apache Camel
2.4.0-fuse-00-00 (CamelContext:camel-jetty-2) is shutting down
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Starting to graceful
shutdown 1 routes (timeout 300 seconds)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Created new single
thread pool for source: org.apache.camel.impl.DefaultShutdownStrategy@5f1994
with name: ShutdownTask. ->
java.util.concurrent.Executors$FinalizableDelegatedExecutorService@131e246
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | There are 1 routes to
shutdown
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Suspend complete for:
Consumer[http://0.0.0.0:16000/jetty?matchOnUriPrefix=true]
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Route: jettyRoute2
suspended and shutdown deferred, was consuming from:
Endpoint[http://0.0.0.0:16000/jetty?matchOnUriPrefix=true]
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | Container
org.eclipse.jetty.server.Server@815988 -
SelectChannelConnector@0.0.0.0:16000 as connector
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
org.eclipse.jetty.server.nio.SelectChannelConnector$1@11aa6ce
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
SelectChannelConnector@0.0.0.0:16000
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | stopping
org.eclipse.jetty.server.Server@815988
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | stopping
ServletContextHandler@bd2621@bd2621/,null
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | stopping
ServletHandler@557638@
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
org.eclipse.jetty.servlets.MultiPartFilter
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
org.apache.camel.component.jetty.CamelContinuationServlet-6309259
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
ServletHandler@557638@
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
ServletContextHandler@bd2621@bd2621/,null
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
qtp21655743{8<=0<=0/254,0}
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
org.eclipse.jetty.server.Server@815988
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Stopping consumer:
Consumer[http://0.0.0.0:16000/jetty?matchOnUriPrefix=true]
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Stopping producer:
Producer[log://nl.bibliotheek.esb.jetty2?level=INFO&showAll=true]
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Shutdown complete for:
Consumer[http://0.0.0.0:16000/jetty?matchOnUriPrefix=true]
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Route: jettyRoute2
shutdown complete.
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Graceful shutdown of 1
routes completed in 0 seconds
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=routes,name="jettyRoute2"
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=consumers,name=HttpConsumer(0x17018cf)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=processors,name=SendProcessor(0x1c7f55b)
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | Container
org.eclipse.jetty.server.Server@d5ad52 -
SelectChannelConnector@0.0.0.0:15000 as connector
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
org.eclipse.jetty.server.nio.SelectChannelConnector$1@1a72981
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
SelectChannelConnector@0.0.0.0:15000
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | stopping
org.eclipse.jetty.server.Server@d5ad52
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | stopping
ServletContextHandler@195f1b9@195f1b9/,null
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | stopping
ServletHandler@15bf451@
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
org.eclipse.jetty.servlets.MultiPartFilter
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
org.apache.camel.component.jetty.CamelContinuationServlet-11659383
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
ServletHandler@15bf451@
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
ServletContextHandler@195f1b9@195f1b9/,null
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
qtp23286828{8<=0<=0/254,4}
181 - org.eclipse.jetty.util - 7.1.4.v20100610 | STOPPED
org.eclipse.jetty.server.Server@d5ad52
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=context,name="camel-jetty-2"
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | ShutdownNow
ExecutorService:
java.util.concurrent.Executors$FinalizableDelegatedExecutorService@131e246
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Shutting down with no
inflight exchanges.
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Stopping service pool:
org.apache.camel.impl.SharedProducerServicePool@9ea162
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=endpoints,name="log://nl.bibliotheek.esb.jetty2\?level=INFO&showAll=true"
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=endpoints,name="spring-event://default"
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=services,name=DefaultShutdownStrategy(0x5f1994)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=errorhandlers,name="DefaultErrorHandlerBuilder(ref:CamelDefaultErrorHandlerBuilder)"
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=services,name=DefaultExecutorServiceStrategy(0x6be940)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=tracer,name=Tracer(0xbd327b)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=services,name=DefaultInflightRepository(0x7561aa)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=services,name=SharedProducerServicePool(0x9ea162)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=endpoints,name="http://0.0.0.0:16000/jetty"
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=services,name=OsgiTypeConverter(0x1b3353f)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=components,name="jetty"
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=services,name=ProducerCache(0xd60cd6)
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Unregistered MBean
with objectname:
org.apache.camel:context=fina160/camel-jetty-2,type=components,name="log"
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Uptime: 2 minutes
68 - org.apache.camel.camel-core - 2.4.0.fuse-00-00 | Apache Camel
2.4.0-fuse-00-00 (CamelContext: camel-jetty-2) is shutdown in 0.121 seconds


-- 
View this message in context: http://servicemix.396122.n5.nabble.com/Jetty-connector-stops-unexpectedly-tp3208647p3208647.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message