Java.io.ioexception Error Writing Request Body To Server
Contents |
here for a quick overview of the jenkins error writing request body to server site Help Center Detailed answers to any questions you
Error Writing Request Body To Server Git Eclipse
might have Meta Discuss the workings and policies of this site About Us Learn httpurlconnection error writing request body to server more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation ant tomcat error writing request body to server Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up java.io.IOException when running 'grails tomcat deploy' up vote -1 down
Error Writing Request Body To Server Tomcat Deploy
vote favorite I'm trying to deploy a Grails app via the tomcat plugin by running grails tomcat deploy. It works perfectly fine when doing it this way, except that all of my configuration in the WAR file are their development values (the development datasource is trying to be used from my deployed WAR file, for example). I then attempt to run grails prod tomcat deploy, and the following error occurs: | Done creating WAR target/app##0.1-build-004.war Deploying application /app to Tomcat | Error Error executing script Tomcat: : java.io.IOException: Error writing request body to server (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) : java.io.IOException: Error writing request body to server at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:267) at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:195) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.codehaus.gant.GantBuilder.invokeMethod(GantBuilder.java:99) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:141) at Tomcat$_run_closure1.doCall(Tomcat:31) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_
and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor. Announcement Announcement Module Collapse No announcement yet. Error writing unbuffered REST request body to server Page Title Module Move Remove Collapse X Conversation Detail Module Collapse Posts Latest Activity Search Forums Page of 1 Filter Time All Time Today Last Week Last Month Show All Discussions only Photos only Videos only Links only Polls only Filtered by: Clear All new posts Jar War Junior Member Join Date: Jan 2013 Posts: 1 #1 Error writing unbuffered REST request body to server Jan 16th, 2013, 04:57 AM Hello I am trying to post a file to a REST web service. To be able to post large files, I need to disable the buffering of the request body (to prevent bug SPR-7909 ), but it causes an "Error writing request body to server". If I set bufferRequestBody to true, the code works correctly (for small files). I have tried with both Spring 3.1 and 3.2. How could I solve that? Any kind of help would be appreciated. Code: String url = ... String token = ... File file = ... SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory(); requestFactory.setBufferRequestBody(false); // SPR-7909 RestTemplate rest = new RestTemplate(requestFactory); MultiValueMap