This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Using Wiremock post ends in IOException Buffer size exceeded  RSS feed

Ranch Hand
Posts: 45
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wiremock is a fantastic tool to simulate a REST-Api. I have tried many examples and they work quite well. But I have a problem while simulating a multipart-post-service. As far as I have understood it correctly this would be the way to configure the stup:

I don't want to consider any specifactions of the multipart-request-body, so I think there is no need to use withMultipartRequestBody.But when I post the data I get the following error: Buffer size exceeded: no line terminator at org.eclipse.jetty.util.ReadLineInputStream.readLine(
at org.eclipse.jetty.util.MultiPartInputStreamParser$
at org.eclipse.jetty.util.MultiPartInputStreamParser.parse(
at org.eclipse.jetty.util.MultiPartInputStreamParser.getParts(
at org.eclipse.jetty.server.Request.getParts(
at org.eclipse.jetty.server.Request.getParts(
at com.github.tomakehurst.wiremock.servlet.WireMockHttpServletRequestAdapter.safelyGetRequestParts(

How can I solve the problem and why Wiremock starts parsing the http-body?

Thanks in advance.

I'm not sure if I approve of this interruption. But this tiny ad checks out:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!