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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Using Wiremock post ends in IOException Buffer size exceeded  RSS feed

 
Ranch Hand
Posts: 45
2
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:

java.io.IOException: Buffer size exceeded: no line terminator at org.eclipse.jetty.util.ReadLineInputStream.readLine(ReadLineInputStream.java:55)
at org.eclipse.jetty.util.MultiPartInputStreamParser$Base64InputStream.read(MultiPartInputStreamParser.java:805)
at org.eclipse.jetty.util.MultiPartInputStreamParser.parse(MultiPartInputStreamParser.java:638)
at org.eclipse.jetty.util.MultiPartInputStreamParser.getParts(MultiPartInputStreamParser.java:400)
at org.eclipse.jetty.server.Request.getParts(Request.java:2147)
at org.eclipse.jetty.server.Request.getParts(Request.java:2099)
at com.github.tomakehurst.wiremock.servlet.WireMockHttpServletRequestAdapter.safelyGetRequestParts(WireMockHttpServletRequestAdapter.java:295)...

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

Thanks in advance.

Uwe
 
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
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!