Results 1 to 4 of 4

Thread: How to define timeout in taskScheduler when exception occurs

  1. #1
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default How to define timeout in taskScheduler when exception occurs

    Hi,

    during integration I get an OutOfMemory error. But SI still continues for a while. And later I get a message from the taskScheduler it is shutting down.

    Is there a possibility to completely stop after an exception occurs?

    Thanks Tai
    Tai Truong
    pointsoftware.ch

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Could you share your configuration and provide more details please?

  3. #3
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default

    The error log I get contains this:
    Nov 28, 2011 10:34:35 PM org.springframework.integration.endpoint.AbstractE ndpoint start
    INFO: started _org.springframework.integration.errorLogger
    Exception in thread "com.imedify.framework.logging.core.LogbackListene r@2b5356d5" java.lang.OutOfMemoryError: GC overhead limit exceeded
    at ch.qos.logback.classic.util.LogbackMDCAdapter.dupl icateAndInsertNewMap(LogbackMDCAdapter.java:67)
    at ch.qos.logback.classic.util.LogbackMDCAdapter.put( LogbackMDCAdapter.java:95)
    at org.slf4j.MDC.put(MDC.java:112)
    at com.imedify.framework.logging.core.LogbackListener .logged(LogbackListener.java:49)
    at org.eclipse.equinox.log.internal.ExtendedLogReader ServiceFactory.safeLogged(ExtendedLogReaderService Factory.java:84)
    at org.eclipse.equinox.log.internal.ExtendedLogReader ServiceFactory$LogTask.run(ExtendedLogReaderServic eFactory.java:33)
    at org.eclipse.equinox.log.internal.SerializedTaskQue ue$1.run(SerializedTaskQueue.java:33)
    Nov 29, 2011 6:07:48 AM org.springframework.context.support.AbstractApplic ationContext doClose
    INFO: Closing org.springframework.context.support.ClassPathXmlAp plicationContext@763c9c2d: startup date [Mon Nov 28 22:34:35 CET 2011]; root of context hierarchy
    ...

    Nov 29, 2011 6:07:48 AM org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry destroySingletons
    INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@117eeca: defining beans [org.springframework.beans.factory.config.PropertyP laceholderConfigurer#0,configurationBean,gmDiffCac he,gmDiffModelCache,mappingProps,loggerChainInterc eptor,org.springframework.integration.internalDefa ultConfiguringBeanFactoryPostProcessor,parse-xml-channel,split-extGMList-channel,filter-extGMList-channel,transform-extGM-channel,collect-extGM-channel,xml2Gm,org.springframework.integration.con fig.TransformerFactoryBean#0,org.springframework.i ntegration.config.ConsumerEndpointFactoryBean#0,or g.springframework.integration.config.SplitterFacto ryBean#0,org.springframework.integration.config.Co nsumerEndpointFactoryBean#1,org.springframework.in tegration.config.TransformerFactoryBean#1,org.spri ngframework.integration.config.ConsumerEndpointFac toryBean#2,org.springframework.integration.config. ServiceActivatorFactoryBean#0,org.springframework. integration.config.ConsumerEndpointFactoryBean#3,s plit-localGMList-channel,aggregate-localGM-channel,org.springframework.integration.config.Spl itterFactoryBean#1,org.springframework.integration .config.ConsumerEndpointFactoryBean#4,org.springfr amework.integration.config.ServiceActivatorFactory Bean#1,org.springframework.integration.config.Cons umerEndpointFactoryBean#5,gmFromXmlCollector,gmFil ter,medicaments-channel,diff-channel,org.springframework.integration.config.Spl itterFactoryBean#2,org.springframework.integration .config.ConsumerEndpointFactoryBean#6,gmDifference ,importRouter,org.springframework.integration.conf ig.RouterFactoryBean#0,org.springframework.integra tion.config.ConsumerEndpointFactoryBean#7,new-channel,org.springframework.integration.config.Ser viceActivatorFactoryBean#2,newChanelProcessor,upda te-channel,org.springframework.integration.config.Ser viceActivatorFactoryBean#3,updateChanelProcessor,o rg.springframework.integration.config.ServiceActiv atorFactoryBean#4,reject-channel,rejectChanelProcessor,org.springframework. integration.config.ServiceActivatorFactoryBean#5,e qual-channel,equalChanelProcessor,org.springframework.i ntegration.config.RouterFactoryBean#1,org.springfr amework.integration.config.ConsumerEndpointFactory Bean#8,medicament-filter-extGMList-channel,org.springframework.integration.config.Fil terFactoryBean#0,org.springframework.integration.c onfig.ConsumerEndpointFactoryBean#9,other-filter-extGMList-channel,org.springframework.integration.config.Fil terFactoryBean#1,org.springframework.integration.c onfig.ConsumerEndpointFactoryBean#10,dmFilter,org. springframework.integration.config.RouterFactoryBe an#2,get-localGMList-channel,org.springframework.integration.config.Con sumerEndpointFactoryBean#11,medicament-get-localGMList-channel,org.springframework.integration.config.Ser viceActivatorFactoryBean#6,org.springframework.int egration.config.ConsumerEndpointFactoryBean#12,oth er-get-localGMList-channel,org.springframework.integration.config.Ser viceActivatorFactoryBean#7,org.springframework.int egration.config.ConsumerEndpointFactoryBean#13,mod uleEndpoint,nullChannel,errorChannel,_org.springfr amework.integration.errorLogger,taskScheduler,org. springframework.integration.config.IdGeneratorConf igurer#0]; root of factory hierarchy
    Nov 29, 2011 6:07:48 AM org.springframework.scheduling.concurrent.Executor ConfigurationSupport shutdown
    INFO: Shutting down ExecutorService 'taskScheduler'
    Tai Truong
    pointsoftware.ch

  4. #4
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Can you explain what are you trying to do and share a configuration, describe environment, mention the version of SI you are using. . .?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •