The problem with deployJarFile

0 votes
Hi. The following exception occurred when you call the deployJarFile method of CustomCodeService. 
I divided into a plurality of the message for too long. 
asked Aug 25, 2014 in App42 Cloud API-BaaS by appwarp (20 points)
(part1)
Exception in thread "main" com.shephertz.app42.paas.sdk.java.App42Exception: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of <html>  <head>  <title>Grails Runtime Exception</title>   <style type="text/css">    .message {    border: 1px solid black;    padding: 5px;    background-color:#E9E9E9;    }    .stack {    border: 1px solid black;    padding: 5px;    overflow:auto;    height: 300px;    }    .snippet {    padding: 5px;    background-color:white;    border:1px solid black;    margin:3px;    font-family:courier;    }   </style>  </head>  <body>    <h1>Grails Runtime Exception</h1>
(part2)
<h2>Error Details</h2>      <div class="message">        <strong>Error 500:</strong> Executing action [handle] of controller [JaxrsController] in plugin [jaxrs] caused exception: javax.servlet.ServletException: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. No space left on device<br/>        <strong>Servlet:</strong> grails<br/>        <strong>URI:</strong> /grails/jaxrs.dispatch<br/>                      <strong>Exception Message:</strong> No space left on device <br />              <strong>Caused by:</strong> No space left on device <br />              <strong>Class:</strong> JaxrsController <br />              <strong>At Line:</strong> [38] <br />              <strong>Code Snippet:</strong><br />              <div class="snippet">                                </div>              </div>
(part3)
<h2>Stack Trace</h2>        <div class="stack">          <pre>java.io.IOException: No space left on device<br/>    at java.io.FileOutputStream.writeBytes(Native Method)<br/>    at java.io.FileOutputStream.write(FileOutputStream.java:300)<br/>    at org.apache.commons.io.output.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:251)<br/>    at org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:166)<br/>    at org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:221)<br/>    at org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:127)<br/>    at org.apache.commons.fileupload.util.Streams.copy(Streams.java:101)<br/>    at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)<br/>    at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:362)<br/>    at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)<br/>    at org.apache.commons.fileupload.servlet.ServletFileUpload$parseRequest.call(Unknown Source)<br/>    at com.visioncodified.pae.resource.CustomCodeResource.deployCode(CustomCodeResource.groovy:81)<br/>    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:153)<br/>    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)<br/>    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:265)<br/>    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:83)<br/>    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)<br/>    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:71)<br/>    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:996)<br/>    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:947)<br/>    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:938)<br/>    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:399)<br/>    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:478)<br/>    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:663)<br/>    at org.grails.jaxrs.web.JaxrsContext$JaxrsServiceImpl.process(JaxrsContext.java:150)<br/>    at org.grails.jaxrs.web.JaxrsService$process.call(Unknown Source)<br/>    at JaxrsController$_closure1.doCall(JaxrsController.groovy:38)<br/>    at JaxrsController$_closure1.doCall(JaxrsController.groovy)<br/>    at com.visioncodified.pae.filter.ApiValidateFilter.doFilter(ApiValidateFilter.java:176)<br/>    at com.visioncodified.pae.filter.DoSFilter.doFilterChain(DoSFilter.java:461)<br/>    at com.visioncodified.pae.filter.DoSFilter.doFilter(DoSFilter.java:323)<br/>    at org.grails.jaxrs.web.JaxrsFilter.doFilterInternal(JaxrsFilter.java:46)<br/>    at java.lang.Thread.run(Thread.java:701)<br/></pre>        </div>      </body></html>
(part4)
    at com.shephertz.app42.paas.sdk.java.customcode.CustomCodeService.deployJarFile(CustomCodeService.java:91)
    at com.myapp.helper.Deploy.upload(Deploy.java:64)
    at com.myapp.helper.Deploy.main(Deploy.java:37)
(part5)
Caused by: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of <html>  <head>      <title>Grails Runtime Exception</title>      <style type="text/css">              .message {                  border: 1px solid black;                  padding: 5px;                  background-color:#E9E9E9;              }              .stack {                  border: 1px solid black;                  padding: 5px;                  overflow:auto;                  height: 300px;              }              .snippet {                  padding: 5px;                  background-color:white;                  border:1px solid black;                  margin:3px;                  font-family:courier;              }      </style>  </head>  <body>    <h1>Grails Runtime Exception</h1>    <h2>Error Details</h2>      <div class="message">        <strong>Error 500:</strong> Executing action [handle] of controller [JaxrsController] in plugin [jaxrs] caused exception: javax.servlet.ServletException: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. No space left on device<br/>        <strong>Servlet:</strong> grails<br/>        <strong>URI:</strong> /grails/jaxrs.dispatch<br/>                      <strong>Exception Message:</strong> No space left on device <br />              <strong>Caused by:</strong> No space left on device <br />              <strong>Class:</strong> JaxrsController <br />              <strong>At Line:</strong> [38] <br />              <strong>Code Snippet:</strong><br />              <div class="snippet">                                </div>              </div>            <h2>Stack Trace</h2>        <div class="stack">          <pre>java.io.IOException: No space left on device<br/>    at java.io.FileOutputStream.writeBytes(Native Method)<br/>    at java.io.FileOutputStream.write(FileOutputStream.java:300)<br/>    at org.apache.commons.io.output.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:251)<br/>    at org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:166)<br/>    at org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:221)<br/>    at org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:127)<br/>    at org.apache.commons.fileupload.util.Streams.copy(Streams.java:101)<br/>    at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)<br/>    at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:362)<br/>    at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)<br/>    at org.apache.commons.fileupload.servlet.ServletFileUpload$parseRequest.call(Unknown Source)<br/>    at com.visioncodified.pae.resource.CustomCodeResource.deployCode(CustomCodeResource.groovy:81)<br/>    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:153)<br/>    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)<br/>    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:265)<br/>    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:83)<br/>    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)<br/>    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:71)<br/>    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:996)<br/>    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:947)<br/>    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:938)<br/>    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:399)<br/>    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:478)<br/>    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:663)<br/>    at org.grails.jaxrs.web.JaxrsContext$JaxrsServiceImpl.process(JaxrsContext.java:150)<br/>    at org.grails.jaxrs.web.JaxrsService$process.call(Unknown Source)<br/>    at JaxrsController$_closure1.doCall(JaxrsController.groovy:38)<br/>    at JaxrsController$_closure1.doCall(JaxrsController.groovy)<br/>    at com.visioncodified.pae.filter.ApiValidateFilter.doFilter(ApiValidateFilter.java:176)<br/>    at com.visioncodified.pae.filter.DoSFilter.doFilterChain(DoSFilter.java:461)<br/>    at com.visioncodified.pae.filter.DoSFilter.doFilter(DoSFilter.java:323)<br/>    at org.grails.jaxrs.web.JaxrsFilter.doFilterInternal(JaxrsFilter.java:46)<br/>    at java.lang.Thread.run(Thread.java:701)<br/></pre>        </div>      </body></html>
(part6)
    at org.json.JSONTokener.syntaxError(JSONTokener.java:450)
    at org.json.JSONObject.<init>(JSONObject.java:179)
    at org.json.JSONObject.<init>(JSONObject.java:326)
    at com.shephertz.app42.paas.sdk.java.util.Util.multiPartRequest(Util.java:334)
    at com.shephertz.app42.paas.sdk.java.customcode.CustomCodeService.deployJarFile(CustomCodeService.java:84)
    ... 2 more
Java Result: 1

2 Answers

0 votes
Can you please try again? It occurred for few minutes(Less than five minutes) due to some misconfiguration on one of the node. This should be working fine now.
answered Aug 25, 2014 by ajay123 (899 points)
Thanks.It works fine.
0 votes

Same exception has occurred again. 
Please support.

answered Sep 4, 2014 by appwarp (20 points)
Sorry for trouble again. This will be fine now. We assure that this will not occur again.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...