preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@a1d1f4: defining beans [org.springframework.integration.internalDefaultCon figuringBeanFactoryPostProcessor,org.springframewo rk.integration.transformer.HeaderEnricher#0,org.sp ringframework.integration.transformer.MessageTrans formingHandler#198a455,org.springframework.integra tion.ws.SimpleWebServiceOutboundGateway#1989f84,or g.springframework.integration.handler.MessageHandl erChain#0,fahrenheitChannel,org.springframework.in tegration.config.ConsumerEndpointFactoryBean#0,cel siusChannel,org.springframework.integration.stream .CharacterStreamWritingMessageHandler#0,celsiusCha nnel.adapter,nullChannel,errorChannel,_org.springf ramework.integration.errorLogger,taskScheduler,org .springframework.integration.config.IdGeneratorCon figurer#0]; root of factory hierarchy
Jan 6, 2012 3:05:08 PM org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory afterPropertiesSet
INFO: Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
Jan 6, 2012 3:05:08 PM org.springframework.scheduling.concurrent.Executor ConfigurationSupport initialize
INFO: Initializing ExecutorService 'taskScheduler'
Jan 6, 2012 3:05:08 PM org.springframework.context.support.DefaultLifecyc leProcessor$LifecycleGroup start
INFO: Starting beans in phase -2147483648
Jan 6, 2012 3:05:08 PM org.springframework.integration.endpoint.EventDriv enConsumer logComponentSubscriptionEvent
INFO: Adding {chain} as a subscriber to the 'fahrenheitChannel' channel
Jan 6, 2012 3:05:08 PM org.springframework.integration.channel.AbstractSu bscribableChannel subscribe
INFO: Channel 'fahrenheitChannel' has 1 subscriber(s).
Jan 6, 2012 3:05:08 PM org.springframework.integration.endpoint.AbstractE ndpoint start
INFO: started org.springframework.integration.config.ConsumerEnd pointFactoryBean#0
Jan 6, 2012 3:05:08 PM org.springframework.integration.endpoint.EventDriv enConsumer logComponentSubscriptionEvent
INFO: Adding {message-handler:celsiusChannel.adapter} as a subscriber to the 'celsiusChannel' channel
Jan 6, 2012 3:05:08 PM org.springframework.integration.channel.AbstractSu bscribableChannel subscribe
INFO: Channel 'celsiusChannel' has 1 subscriber(s).
Jan 6, 2012 3:05:08 PM org.springframework.integration.endpoint.AbstractE ndpoint start
INFO: started celsiusChannel.adapter
Jan 6, 2012 3:05:08 PM org.springframework.integration.endpoint.EventDriv enConsumer logComponentSubscriptionEvent
INFO: Adding {logging-channel-adapter:_org.springframework.integration.errorLogg er} as a subscriber to the 'errorChannel' channel
Jan 6, 2012 3:05:08 PM org.springframework.integration.channel.AbstractSu bscribableChannel subscribe
INFO: Channel 'errorChannel' has 1 subscriber(s).
Jan 6, 2012 3:05:08 PM org.springframework.integration.endpoint.AbstractE ndpoint start
INFO: started _org.springframework.integration.errorLogger
Exception in thread "main" org.springframework.integration.MessageHandlingExc eption: error occurred in message handler [org.springframework.integration.ws.SimpleWebServic eOutboundGateway#1989f84]
at org.springframework.integration.handler.AbstractMe ssageHandler.handleMessage(AbstractMessageHandler. java:79)
at org.springframework.integration.handler.MessageHan dlerChain$1.send(MessageHandlerChain.java:154)
at org.springframework.integration.core.MessagingTemp late.doSend(MessagingTemplate.java:288)
at org.springframework.integration.core.MessagingTemp late.send(MessagingTemplate.java:149)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.sendMessage(AbstractRep lyProducingMessageHandler.java:175)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.sendReplyMessage(Abstra ctReplyProducingMessageHandler.java:159)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.produceReply(AbstractRe plyProducingMessageHandler.java:124)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.handleResult(AbstractRe plyProducingMessageHandler.java:118)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.handleMessageInternal(A bstractReplyProducingMessageHandler.java:100)
at org.springframework.integration.handler.AbstractMe ssageHandler.handleMessage(AbstractMessageHandler. java:73)
at org.springframework.integration.handler.MessageHan dlerChain.handleMessageInternal(MessageHandlerChai n.java:137)
at org.springframework.integration.handler.AbstractMe ssageHandler.handleMessage(AbstractMessageHandler. java:73)
at org.springframework.integration.dispatcher.Unicast ingDispatcher.doDispatch(UnicastingDispatcher.java :110)
at org.springframework.integration.dispatcher.Unicast ingDispatcher.dispatch(UnicastingDispatcher.java:9 7)
at org.springframework.integration.channel.AbstractSu bscribableChannel.doSend(AbstractSubscribableChann el.java:61)
at org.springframework.integration.channel.AbstractMe ssageChannel.send(AbstractMessageChannel.java:157)
at org.springframework.integration.channel.AbstractMe ssageChannel.send(AbstractMessageChannel.java:128)
at blog.SpringIntegrationDemo.main(SpringIntegrationD emo.java:38)
Caused by: java.lang.NullPointerException
at org.springframework.integration.ws.DefaultSoapHead erMapper.extractUserDefinedHeaders(DefaultSoapHead erMapper.java:68)
at org.springframework.integration.ws.DefaultSoapHead erMapper.extractUserDefinedHeaders(DefaultSoapHead erMapper.java:49)
at org.springframework.integration.mapping.AbstractHe aderMapper.toHeaders(AbstractHeaderMapper.java:182 )
at org.springframework.integration.mapping.AbstractHe aderMapper.toHeadersFromReply(AbstractHeaderMapper .java:136)
at org.springframework.integration.ws.AbstractWebServ iceOutboundGateway$ResponseMessageExtractor.extrac tData(AbstractWebServiceOutboundGateway.java:235)
at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:555)
at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:496)
at org.springframework.integration.ws.SimpleWebServic eOutboundGateway.doHandle(SimpleWebServiceOutbound Gateway.java:88)
at org.springframework.integration.ws.AbstractWebServ iceOutboundGateway.handleRequestMessage(AbstractWe bServiceOutboundGateway.java:176)
at org.springframework.integration.handler.AbstractRe plyProducingMessageHandler.handleMessageInternal(A bstractReplyProducingMessageHandler.java:97)
at org.springframework.integration.handler.AbstractMe ssageHandler.handleMessage(AbstractMessageHandler. java:73)
... 17 more