This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

Out of memory error when marshalling large attachmentsPage Title Module

So the problem was in the MessageDispatcher (ws 1.5.9.) When you have message tracing set to trace the MessageDispatcher attempts to retrieve the message as a String so it copies the message to ByteArrayOutputStream which causes the attachment to be loaded into memory. Here is the offending code from MessageDispatcher: