camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-4173) Nullpointer in camel-mail when body is null
Date Mon, 04 Jul 2011 13:11:21 GMT
Nullpointer in camel-mail when body is null
-------------------------------------------

                 Key: CAMEL-4173
                 URL: https://issues.apache.org/jira/browse/CAMEL-4173
             Project: Camel
          Issue Type: Bug
          Components: camel-mail
    Affects Versions: 2.7.2
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: 2.8.0


When trying to send a mail with an empty body (null) then we get the following NullPointer
exception.
We should instead either complain about the null body or send the mail with an empty body.

13:27:27,010 | INFO  | tp1062262230-101 | ache.camel.processor.CamelLogger   87 | 55 - org.apache.camel.camel-core
- 2.7.1 | Exchange[ExchangePattern:InOut, BodyType:org.apache.cxf.message.MessageContentsList,
Body:[com.ier.ebo_servicerequest.ServiceRequestType@10e07658]]
13:27:27,013 | ERROR | tp1062262230-101 | ache.camel.processor.CamelLogger  232 | 55 - org.apache.camel.camel-core
- 2.7.1 | Failed delivery for exchangeId: ID-MacBook-Pro-de-bahaaldine-local-51035-1309771358240-2-6.
Exhausted after delivery attempt: 1 caught: org.springframework.mail.MailPreparationException:
Could not prepare mail; nested exception is java.lang.NullPointerException
org.springframework.mail.MailPreparationException: Could not prepare mail; nested exception
is java.lang.NullPointerException
            at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:367)[49:org.springframework.context.support:3.0.5.RELEASE]
            at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344)[49:org.springframework.context.support:3.0.5.RELEASE]
            at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:44)[281:org.apache.camel.camel-mail:2.7.1]
            at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:139)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:109)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:582)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:511)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:211)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:134)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RecipientList.process(RecipientList.java:102)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:109)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:103)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.component.cxf.CxfConsumer$1.syncInvoke(CxfConsumer.java:135)[125:org.apache.camel.camel-cxf:2.7.1]
            at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:77)[125:org.apache.camel.camel-cxf:2.7.1]
            at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[124:org.apache.cxf.bundle:2.4.0]
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_24]
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_24]
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_24]
            at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:205)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)[124:org.apache.cxf.bundle:2.4.0]
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)[72:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)[124:org.apache.cxf.bundle:2.4.0]
            at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)[79:org.eclipse.jetty.servlet:7.3.1.v20110307]
            at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)[79:org.eclipse.jetty.servlet:7.3.1.v20110307]
            at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[84:org.ops4j.pax.web.pax-web-jetty:1.0.1]
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)[78:org.eclipse.jetty.security:7.3.1.v20110307]
            at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:116)[84:org.ops4j.pax.web.pax-web-jetty:1.0.1]
            at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)[79:org.eclipse.jetty.servlet:7.3.1.v20110307]
            at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)[84:org.ops4j.pax.web.pax-web-jetty:1.0.1]
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.Server.handle(Server.java:346)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:581)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1057)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:807)[75:org.eclipse.jetty.http:7.3.1.v20110307]
            at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)[75:org.eclipse.jetty.http:7.3.1.v20110307]
            at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:526)[74:org.eclipse.jetty.io:7.3.1.v20110307]
            at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:41)[74:org.eclipse.jetty.io:7.3.1.v20110307]
            at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)[73:org.eclipse.jetty.util:7.3.1.v20110307]
            at java.lang.Thread.run(Thread.java:680)[:1.6.0_24]
Caused by: java.lang.NullPointerException
            at javax.mail.util.ByteArrayDataSource.<init>(ByteArrayDataSource.java:137)[69:javax.mail:1.4.3]
            at org.apache.camel.component.mail.MailBinding.populateContentOnMimeMessage(MailBinding.java:205)[281:org.apache.camel.camel-mail:2.7.1]
            at org.apache.camel.component.mail.MailBinding.populateMailMessage(MailBinding.java:114)[281:org.apache.camel.camel-mail:2.7.1]
            at org.apache.camel.component.mail.MailProducer$1.prepare(MailProducer.java:46)[281:org.apache.camel.camel-mail:2.7.1]
            at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352)[49:org.springframework.context.support:3.0.5.RELEASE]
            ... 98 more
13:27:27,023 | WARN  | tp1062262230-101 | ache.cxf.common.logging.LogUtils  371 |  -  -  |
Interceptor for {http://www.ier.com/WS_ServiceRequest}WSServiceRequestService#{http://www.ier.com/WS_ServiceRequest}createServiceRequest
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not prepare mail; nested exception is java.lang.NullPointerException
            at org.apache.camel.component.cxf.CxfConsumer$1.checkFailure(CxfConsumer.java:218)[125:org.apache.camel.camel-cxf:2.7.1]
            at org.apache.camel.component.cxf.CxfConsumer$1.setResponseBack(CxfConsumer.java:195)[125:org.apache.camel.camel-cxf:2.7.1]
            at org.apache.camel.component.cxf.CxfConsumer$1.syncInvoke(CxfConsumer.java:142)[125:org.apache.camel.camel-cxf:2.7.1]
            at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:77)[125:org.apache.camel.camel-cxf:2.7.1]
            at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[124:org.apache.cxf.bundle:2.4.0]
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_24]
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_24]
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_24]
            at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:205)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)[124:org.apache.cxf.bundle:2.4.0]
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)[124:org.apache.cxf.bundle:2.4.0]
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)[72:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
            at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)[124:org.apache.cxf.bundle:2.4.0]
            at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)[79:org.eclipse.jetty.servlet:7.3.1.v20110307]
            at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)[79:org.eclipse.jetty.servlet:7.3.1.v20110307]
            at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[84:org.ops4j.pax.web.pax-web-jetty:1.0.1]
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)[78:org.eclipse.jetty.security:7.3.1.v20110307]
            at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:116)[84:org.ops4j.pax.web.pax-web-jetty:1.0.1]
            at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)[79:org.eclipse.jetty.servlet:7.3.1.v20110307]
            at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)[84:org.ops4j.pax.web.pax-web-jetty:1.0.1]
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.Server.handle(Server.java:346)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:581)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1057)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:807)[75:org.eclipse.jetty.http:7.3.1.v20110307]
            at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)[75:org.eclipse.jetty.http:7.3.1.v20110307]
            at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)[77:org.eclipse.jetty.server:7.3.1.v20110307]
            at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:526)[74:org.eclipse.jetty.io:7.3.1.v20110307]
            at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:41)[74:org.eclipse.jetty.io:7.3.1.v20110307]
            at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)[73:org.eclipse.jetty.util:7.3.1.v20110307]
            at java.lang.Thread.run(Thread.java:680)[:1.6.0_24]
Caused by: org.springframework.mail.MailPreparationException: Could not prepare mail; nested
exception is java.lang.NullPointerException
            at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:367)[49:org.springframework.context.support:3.0.5.RELEASE]
            at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344)[49:org.springframework.context.support:3.0.5.RELEASE]
            at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:44)[281:org.apache.camel.camel-mail:2.7.1]
            at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:139)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:109)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:582)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:511)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:211)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:134)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.RecipientList.process(RecipientList.java:102)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:109)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:103)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[55:org.apache.camel.camel-core:2.7.1]
            at org.apache.camel.component.cxf.CxfConsumer$1.syncInvoke(CxfConsumer.java:135)[125:org.apache.camel.camel-cxf:2.7.1]
            ... 41 more
Caused by: java.lang.NullPointerException
            at javax.mail.util.ByteArrayDataSource.<init>(ByteArrayDataSource.java:137)[69:javax.mail:1.4.3]
            at org.apache.camel.component.mail.MailBinding.populateContentOnMimeMessage(MailBinding.java:205)[281:org.apache.camel.camel-mail:2.7.1]
            at org.apache.camel.component.mail.MailBinding.populateMailMessage(MailBinding.java:114)[281:org.apache.camel.camel-mail:2.7.1]
            at org.apache.camel.component.mail.MailProducer$1.prepare(MailProducer.java:46)[281:org.apache.camel.camel-mail:2.7.1]
            at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352)[49:org.springframework.context.support:3.0.5.RELEASE]
            ... 98 more


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message