Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Limiting File Size for Web Services that involve receiving files

Tim Fassett
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if it's possible to limit the size of a file sent from a client to the service? For example, users are sending large files (80MB or more) which is killing the app server (out of memory errors). The idea is that the client is supposed to use MTOM but the following stack trace leads me to wonder if they truly are. I suppose another question is "is there a way to force MTOM on the client"? Thanks.

at java.lang.StringBuilder.toString(
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.decodeBase64(
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.access$100(
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$11.parse(
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$11.parse(
at com.sun.xml.bind.v2.runtime.FilterTransducer.parse(
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(
at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.processText(
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleEndElement(
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
at com.sun.xml.bind.v2.runtime.BridgeImpl.unmarshal(
at com.sun.xml.bind.api.Bridge.unmarshal(
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic