james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Baechler (JIRA)" <server-...@james.apache.org>
Subject [jira] [Closed] (JAMES-1797) Files bigger than 100KBytes can't be attached to a mail
Date Tue, 12 Jul 2016 13:44:20 GMT

     [ https://issues.apache.org/jira/browse/JAMES-1797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matthieu Baechler closed JAMES-1797.
------------------------------------
    Resolution: Fixed

fixed

> Files bigger than 100KBytes can't be attached to a mail
> -------------------------------------------------------
>
>                 Key: JAMES-1797
>                 URL: https://issues.apache.org/jira/browse/JAMES-1797
>             Project: James Server
>          Issue Type: Bug
>          Components: JMAP
>            Reporter: Matthieu Baechler
>            Assignee: Antoine Duprat
>
> 1. upload a file bigger than 100K
> 2. create a mail with some text
> 3. attach the file to this email
> 4. send the mail
> It triggers an exception :
> {code}
> java.io.FileNotFoundException: /tmp/aduprat@linagora.com|Outbox|6795542957422962833.m64
(No such file or directory)
> 	at java.io.RandomAccessFile.open0(Native Method)
> 	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
> 	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
> 	at javax.mail.util.SharedFileInputStream$SharedFile.<init>(SharedFileInputStream.java:120)
> 	at javax.mail.util.SharedFileInputStream.<init>(SharedFileInputStream.java:194)
> 	at javax.mail.util.SharedFileInputStream.<init>(SharedFileInputStream.java:169)
> 	at org.apache.james.core.MimeMessageInputStreamSource.getInputStream(MimeMessageInputStreamSource.java:135)
> 	at org.apache.james.core.MimeMessageWrapper.getMessageInputStream(MimeMessageWrapper.java:671)
> 	... 65 common frames omitted
> Wrapped by: javax.mail.MessagingException: Unable to get inputstream
> 	at org.apache.james.core.MimeMessageWrapper.getMessageInputStream(MimeMessageWrapper.java:673)
> 	at org.apache.james.core.MimeMessageInputStream.<init>(MimeMessageInputStream.java:58)
> 	at org.apache.james.core.MimeMessageInputStream.<init>(MimeMessageInputStream.java:79)
> 	at org.apache.james.queue.activemq.ActiveMQMailQueue.produceMail(ActiveMQMailQueue.java:184)
> 	at org.apache.james.queue.jms.JMSMailQueue.enQueue(JMSMailQueue.java:205)
> 	... 61 common frames omitted
> Wrapped by: org.apache.james.queue.api.MailQueue$MailQueueException: Unable to enqueue
mail org.apache.james.core.MailImpl@55c1c437
> 	at org.apache.james.queue.jms.JMSMailQueue.enQueue(JMSMailQueue.java:215)
> 	at org.apache.james.queue.jms.JMSMailQueue.enQueue(JMSMailQueue.java:236)
> 	at org.apache.james.jmap.send.MailSpool.send(MailSpool.java:43)
> 	at org.apache.james.jmap.methods.SetMessagesCreationProcessor.sendMessage(SetMessagesCreationProcessor.java:365)
> 	at org.apache.james.jmap.methods.SetMessagesCreationProcessor.createMessageInOutboxAndSend(SetMessagesCreationProcessor.java:258)
> 	at org.apache.james.jmap.methods.SetMessagesCreationProcessor.handleOutboxMessages(SetMessagesCreationProcessor.java:245)
> 	at org.apache.james.jmap.methods.SetMessagesCreationProcessor.handleCreate(SetMessagesCreationProcessor.java:129)
> 	at org.apache.james.jmap.methods.SetMessagesCreationProcessor.lambda$process$0(SetMessagesCreationProcessor.java:120)
> 	at java.util.Iterator.forEachRemaining(Iterator.java:116)
> 	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
> 	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
> 	at org.apache.james.jmap.methods.SetMessagesCreationProcessor.process(SetMessagesCreationProcessor.java:120)
> 	at org.apache.james.jmap.methods.SetMessagesMethod.lambda$setMessagesResponse$0(SetMessagesMethod.java:77)
> 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
> 	at java.util.Iterator.forEachRemaining(Iterator.java:116)
> 	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
> 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
> 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
> 	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
> 	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> 	at java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:484)
> 	at org.apache.james.jmap.methods.SetMessagesMethod.setMessagesResponse(SetMessagesMethod.java:78)
> 	at org.apache.james.jmap.methods.SetMessagesMethod.process(SetMessagesMethod.java:63)
> 	at org.apache.james.jmap.methods.RequestHandler.lambda$extractAndProcess$1(RequestHandler.java:67)
> 	at java.util.Optional.map(Optional.java:215)
> 	at org.apache.james.jmap.methods.RequestHandler.handle(RequestHandler.java:57)
> 	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
> 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
> 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
> 	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
> 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
> 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
> 	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
> 	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> 	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
> 	at org.apache.james.jmap.JMAPServlet.doPost(JMAPServlet.java:71)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:821)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1685)
> 	at org.apache.james.jmap.FirstUserConnectionFilter.doFilter(FirstUserConnectionFilter.java:71)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
> 	at org.apache.james.jmap.AuthenticationFilter.doFilter(AuthenticationFilter.java:75)
> 	at org.apache.james.jmap.BypassAuthOnRequestMethod.tryAuth(BypassAuthOnRequestMethod.java:115)
> 	at org.apache.james.jmap.BypassAuthOnRequestMethod.doFilter(BypassAuthOnRequestMethod.java:97)
> 	at org.apache.james.jmap.AllowAllCrossOriginRequests.doFilter(AllowAllCrossOriginRequests.java:46)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:513)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:517)
> 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:306)
> 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
> 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)
> 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
> 	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
> 	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
> 	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message