No idea if this will help, but from what I've seen JSON libraries (among
others) have size limits - seems I recall them being about 40MB per
payload. Look search for "multi-part HTTP file upload" to send your JSON
object as a file - there are several open source implemtations.
On Fri, Jan 9, 2015 at 3:14 PM, Surah <surah.harus_at_gmail.com> wrote:
> Hi.
>
> When appending a very big JSON Object form a jersey/girzzly api i got this
> stack trace.
>
> Im using jersey-bomb 2.4.1
>
> ene 09, 2015 7:50:13 PM org.glassfish.jersey.server.ServerRuntime$Responder
> writeResponse
> GRAVE: An I/O error has occurred while writing a response message entity to
> the container output stream.
> java.lang.NoSuchMethodError:
>
> org.glassfish.grizzly.memory.CompositeBuffer.append(Ljava/lang/Object;)Ljava/lang/Object;
> at
>
> org.glassfish.grizzly.http.io.OutputBuffer.finishCurrentBuffer(OutputBuffer.java:1036)
> at
> org.glassfish.grizzly.http.io.OutputBuffer.write(OutputBuffer.java:669)
> at
>
> org.glassfish.grizzly.http.server.NIOOutputStreamImpl.write(NIOOutputStreamImpl.java:83)
> at
>
> org.glassfish.jersey.message.internal.CommittingOutputStream.write(CommittingOutputStream.java:233)
> at
>
> org.codehaus.jackson.impl.Utf8Generator._flushBuffer(Utf8Generator.java:1754)
> at
> org.codehaus.jackson.impl.Utf8Generator.flush(Utf8Generator.java:1088)
> at
> org.codehaus.jackson.map.ObjectWriter.writeValue(ObjectWriter.java:328)
> at
>
> org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:557)
> at
>
> org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:243)
> at
>
> org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:230)
> at
>
> org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149)
> at
>
> org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:103)
> at
>
> org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149)
> at
>
> org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:88)
> at
>
> org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149)
> at
>
> org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1139)
> at
>
> org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:557)
> at
>
> org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:381)
> at
>
> org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:371)
> at
> org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:262)
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
> at
>
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
> at
> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236)
> at
>
> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983)
> at
>
> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:334)
> at
> org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:209)
> at
>
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
> at
>
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
> at java.lang.Thread.run(Thread.java:745)
>
> can anyone help me?. thx
>
>
>
> --
> View this message in context:
> http://grizzly.1045725.n5.nabble.com/Problem-sending-a-large-Json-object-form-grizzly-tp5710658.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
--
*David Cheney*
*UI Team Lead*
2380 Bering Drive
San Jose, CA 95131
+1 408 441 6500 (office)
+1 650 605 3760 (cell)
dcheney_at_peaxy.net <rlacapra_at_peaxy.net>
www.peaxy.net