My application hangs when a message is handled by the outbound-channel-adapter.
The application calls the method 'alert' as configured in the gateway below in my.AlertService. The service-activator receives the message and returns the XML representation of the object passed in the message payload to the output-channel. The outbound-channel-adapter successfully writes a message to the file system in the configured directory, but then the application hangs and the scheduler no longer executes at the interval specified by fixed-delay. I am at a loss as to what could be causing this problem.
Here's the trace (sanitized):Code:... <task:scheduler id="harvesterScheduler" pool-size="2" /> <task:scheduled-tasks scheduler="harvesterScheduler"> <task:scheduled ref="loginHistoryHarvester" method="harvest" fixed-delay="${loginHistory.pollDelayMillis}" /> </task:scheduled-tasks> ... <int:channel id="objectAlertOut"/> <int:logging-channel-adapter id="logger" level="DEBUG"/> <int:channel id="xmlAlertOut"> <int:interceptors> <int:wire-tap channel="logger"/> </int:interceptors> </int:channel> <int-file:outbound-channel-adapter id="temporary" channel="xmlAlertOut" auto-create-directory="true" directory="/home/xxx/outmsgs"/> <int:gateway id="alertProducer" service-interface="my.AlertService" default-request-channel="objectAlertOut" /> <int:service-activator input-channel="objectAlertOut" output-channel="xmlAlertOut" ref="xmlAlertConsumer" method="alert" />
2010-06-24 19:13:18,260 DEBUG DirectChannel - preSend on channel 'objectAlertOut', message: [Payload=SomeAlertType [ip=172.16.12.21, logins=LoginsType [login=[gcardile, gcardile, clowenstine, pageeadmin, pageeadmin, cjerniganadmin, ashuleradmin, ahmadmoore, sspurlockadmin]], numlogins=9, time=2010-06-24 19:11:38.41]][Headers={$id=91d9b94a-0f16-456d-a56d-39ce0c3d18f3, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut], $timestamp=1277406798258}]
2010-06-24 19:13:18,261 DEBUG ServiceActivatingHandler - ServiceActivator for [my.app.alert.XmlAlertConsumer.alert]] received message: [Payload=SomeAlertType ]][Headers={$id=91d9b94a-0f16-456d-a56d-39ce0c3d18f3, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut], $timestamp=1277406798258}]
2010-06-24 19:13:18,299 DEBUG ServiceActivatingHandler - handler 'ServiceActivator for [my.app.alert.XmlAlertConsumer.alert]]' sending reply Message: [Payload=<xxxxxx></xxxxxx>][Headers={$id=1631234c-99fa-4154-85d7-ac7d925aa99b, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut], $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $timestamp=1277406798299}]
2010-06-24 19:13:18,299 DEBUG DirectChannel - preSend on channel 'xmlAlertOut', message: [Payload=<xxxxxx></xxxxxx>][Headers={$id=1631234c-99fa-4154-85d7-ac7d925aa99b, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut], $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $timestamp=1277406798299}]
2010-06-24 19:13:18,299 DEBUG DirectChannel - preSend on channel 'logger', message: [Payload=<xxxxxx></xxxxxx>][Headers={$id=1631234c-99fa-4154-85d7-ac7d925aa99b, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut, channel:logger], $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $timestamp=1277406798299}]
2010-06-24 19:13:18,299 DEBUG LoggingHandler - org.springframework.integration.handler.LoggingHan dler#0 received message: [Payload=<xxxxxx></xxxxxx>][Headers={$id=1631234c-99fa-4154-85d7-ac7d925aa99b, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut, channel:logger, logging-channel-adapter:logger.adapter], $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $timestamp=1277406798299}]
2010-06-24 19:13:18,300 DEBUG LoggingHandler - <xxxxxx></xxxxxx>
2010-06-24 19:13:18,300 DEBUG DirectChannel - postSend (sent=true) on channel 'logger', message: [Payload=<xxxxxx></xxxxxx>][Headers={$id=1631234c-99fa-4154-85d7-ac7d925aa99b, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut, channel:logger, logging-channel-adapter:logger.adapter], $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $timestamp=1277406798299}]
2010-06-24 19:13:18,300 DEBUG FileWritingMessageHandler - org.springframework.integration.file.FileWritingMe ssageHandler@635adc6 received message: [Payload=<xxxxxx></xxxxxx>][Headers={$id=1631234c-99fa-4154-85d7-ac7d925aa99b, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut, channel:logger, logging-channel-adapter:logger.adapter, temporary], $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $timestamp=1277406798299}]
2010-06-24 19:13:18,301 DEBUG FileWritingMessageHandler - handler 'org.springframework.integration.file.FileWritingM essageHandler@635adc6' sending reply Message: [Payload=/home/mkrumlauf/fadmonitor/outmsgs/1631234c-99fa-4154-85d7-ac7d925aa99b.msg][Headers={$id=e1a26a50-772e-4277-88d6-ffb7caeeb154, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut, channel:logger, logging-channel-adapter:logger.adapter, temporary], $timestamp=1277406798301}]
2010-06-24 19:13:18,301 DEBUG NullChannel - message sent to null channel: [Payload=/home/mkrumlauf/fadmonitor/outmsgs/1631234c-99fa-4154-85d7-ac7d925aa99b.msg][Headers={$id=e1a26a50-772e-4277-88d6-ffb7caeeb154, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut, channel:logger, logging-channel-adapter:logger.adapter, temporary], $timestamp=1277406798301}]
2010-06-24 19:13:18,301 DEBUG DirectChannel - postSend (sent=true) on channel 'xmlAlertOut', message: [Payload=<xxxxxx></xxxxxx>][Headers={$id=1631234c-99fa-4154-85d7-ac7d925aa99b, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut, channel:logger, logging-channel-adapter:logger.adapter, temporary], $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $timestamp=1277406798299}]
2010-06-24 19:13:18,302 DEBUG DirectChannel - postSend (sent=true) on channel 'objectAlertOut', message: [Payload=SomeAlertType [ip=172.16.12.21, logins=LoginsType [login=[gcardile, gcardile, clowenstine, pageeadmin, pageeadmin, cjerniganadmin, ashuleradmin, ahmadmoore, sspurlockadmin]], numlogins=9, time=2010-06-24 19:11:38.41]][Headers={$id=91d9b94a-0f16-456d-a56d-39ce0c3d18f3, $errorChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $replyChannel=org.springframework.integration.chan nel.MessageChannelTemplate$TemporaryReplyChannel@e 26db62, $history=[alertProducer, channel:objectAlertOut, channel:xmlAlertOut, channel:logger, logging-channel-adapter:logger.adapter, temporary], $timestamp=1277406798258}


Reply With Quote