luo890702 / javamail-android

Automatically exported from code.google.com/p/javamail-android
0 stars 0 forks source link

occurs OutOfMemorry error #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When I call "BodyPart part = multipart.getBodyPart(idx);", 
"java.lang.OutOfMemoryError" error occurs:
here is error log:
***
java.lang.OutOfMemoryError at 
java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:91) at 
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:216) at 
com.sun.mail.pop3.Protocol.multilineCommand(Protocol.java:407) at 
com.sun.mail.pop3.Protocol.retr(Protocol.java:276) at 
com.sun.mail.pop3.POP3Message.getContentStream(POP3Message.java:145) at 
javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:10
9) at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:726) at 
javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:466) at 
javax.mail.internet.MimeMultipart.getBodyPart(MimeMultipart.java:255) at 
***

Original issue reported on code.google.com by ORIENT...@gmail.com on 4 Aug 2013 at 9:28