Problem sending a large Json object form grizzly

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem sending a large Json object form grizzly

Surah
This post was updated on .
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

This is my pom.xml dependencies

        <dependencyManagement>
                <dependencies>
                        <dependency>
                                <groupId>org.glassfish.jersey</groupId>
                                <artifactId>jersey-bom</artifactId>
                                <version>2.4.1</version>
                               
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
                </dependencies>
        </dependencyManagement>


        <dependencies>
               
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-core</artifactId>
                        <version>4.2.6.Final</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate.common</groupId>
                        <artifactId>hibernate-commons-annotations</artifactId>
                        <version>4.0.4.Final</version>
                </dependency>
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                        <version>1.7.5</version>
                </dependency>
                <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.26</version>
                </dependency>

                 
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-core</artifactId>
                        <version>4.1.1.RELEASE</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-context</artifactId>
                        <version>4.1.1.RELEASE</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-orm</artifactId>
                        <version>4.1.1.RELEASE</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-test</artifactId>
                        <version>4.1.1.RELEASE</version>
                        <scope>test</scope>
                </dependency>
               
               

                <dependency>
                        <groupId>org.glassfish.jersey.containers</groupId>
                        <artifactId>jersey-container-grizzly2-http</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.glassfish.jersey.media</groupId>
                        <artifactId>jersey-media-json-jackson</artifactId>
                </dependency>

                <dependency>
                        <groupId>org.glassfish.grizzly</groupId>
                        <artifactId>connection-pool</artifactId>
                        <version>2.3.14</version>
                </dependency>

                <dependency>
                        <groupId>com.thetransactioncompany</groupId>
                        <artifactId>cors-filter</artifactId>
                        <version>2.2.1</version>
                </dependency>

                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.9</version>
                        <scope>test</scope>
                </dependency>

               
                <dependency>
                        <groupId>javax.mail</groupId>
                        <artifactId>mail</artifactId>
                        <version>1.4.7</version>
                </dependency>

                <dependency>
                        <groupId>com.sun.jersey</groupId>
                        <artifactId>jersey-server</artifactId>
                        <version>1.18.3</version> 
                       
                </dependency>

                <dependency>
                        <groupId>commons-dbcp</groupId>
                        <artifactId>commons-dbcp</artifactId>
                        <version>1.2.2</version>
                </dependency>


        </dependencies>
Reply | Threaded
Open this post in threaded view
|

Re: Problem sending a large Json object form grizzly

David Cheney
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 <[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|

Re: Problem sending a large Json object form grizzly

Surah
This post was updated on .
NO, im not sending big files, im sending Text. This text comes form a TEXT field on a mysql table.

For example, if i send this text:

Bacon ipsum dolor amet flank ribeye fatback strip steak, venison chuck ham hock. Ball tip venison pancetta shankle. Shank pork meatball pork chop cow. Pork loin swine pancetta pork belly chicken bacon venison cupim ground round prosciutto meatloaf meatball. Pork belly pastrami filet mignon, ham capicola short ribs landjaeger biltong. Cow picanha frankfurter leberkas short ribs landjaeger strip steak tail drumstick jerky pork chop.

Sirloin shank boudin turkey strip steak turducken flank ground round spare ribs kevin meatloaf sausage rump. Alcatra landjaeger leberkas pork belly tenderloin kielbasa venison. Leberkas boudin sirloin, jowl rump meatball short ribs kevin. Bresaola meatball sirloin landjaeger leberkas pancetta frankfurter flank kielbasa porchetta biltong meatloaf.

Landjaeger spare ribs pork chop pork belly. Pork ball tip pastrami cupim beef doner short ribs, prosciutto tongue pig. Bresaola capicola brisket shoulder. Pig ham hock shank, chuck corned beef kielbasa beef leberkas tongue.

Pork belly boudin sirloin jowl hamburger, short loin pork loin chicken picanha. Ball tip t-bone jerky hamburger strip steak. Kevin short ribs shank tri-tip. Kevin boudin filet mignon sirloin. Ham beef ham hock shankle. Corned beef tri-tip pork belly jowl, boudin biltong beef ribs ground round cow turducken t-bone brisket shank turkey swine.

Rump jowl tail short ribs. Pig jerky fatback doner prosciutto, kevin ground round chicken. Spare ribs pork belly shoulder cow jowl. Pancetta fatback t-bone bresaola flank shoulder jerky leberkas. Leberkas pork pig turkey sausage.

Bresaola boudin pork belly, cupim andouille drumstick rump beef swine turkey pancetta t-bone sausage beef ribs filet mignon. Cupim tail chuck meatball sausage pork ham hock t-bone frankfurter jowl tongue strip steak venison jerky pork chop. Biltong pork belly capicola, venison ball tip spare ribs leberkas pork loin shankle doner shank. Pancetta kielbasa fatback frankfurter meatloaf cupim shankle shank pork belly sausage. Beef pork belly ribeye, filet mignon boudin cupim t-bone. Sirloin ham shoulder, frankfurter rump ground round swine andouille boudin landjaeger hamburger.

Biltong flank ball tip, hamburger meatloaf sirloin jowl leberkas landjaeger porchetta. Ham hock ground round tri-tip turducken strip steak meatball. Flank alcatra pig, tenderloin jerky doner bresaola tongue pancetta tail leberkas kevin shank. Venison fatback pork chop jerky tongue kielbasa. Strip steak prosciutto ham hock, swine shoulder tail salami. Frankfurter ball tip kielbasa landjaeger sirloin. Strip steak frankfurter shankle picanha ground round, bresaola beef ribs meatball spare ribs filet mignon capicola ball tip doner biltong.

Cow swine picanha ball tip pork loin, boudin beef frankfurter. Chicken ham hock capicola doner kevin fatback pork loin rump swine turducken pork chop biltong drumstick. Ribeye tri-tip cupim picanha, shankle chicken boudin t-bone shank beef ribs short ribs turducken. Rump pork chop beef ribs brisket filet mignon boudin tenderloin, beef porchetta cow strip steak ham landjaeger venison. Pork belly strip steak short ribs pork loin. Pork pig meatball cow alcatra, strip steak pastrami short ribs tenderloin fatback bacon cupim ball tip. Leberkas fatback bacon, ham pork belly meatloaf jerky corned beef ball tip turducken andouille tenderloin pastrami strip steak shankle.

Pastrami filet mignon chuck drumstick, pork loin brisket chicken jerky short loin. Strip steak andouille bresaola jerky, drumstick beef ribs tail. Kevin fatback tri-tip flank sausage. Porchetta venison pork chop alcatra. Chuck tenderloin spare ribs picanha, turkey rump hamburger fatback cupim capicola sirloin.

Tenderloin prosciutto pork chop, shankle venison pastrami short loin capicola chuck. Jerky porchetta salami corned beef, ground round jowl biltong frankfurter pork. Rump ham swine drumstick strip steak tri-tip ham hock shankle pig meatball prosciutto chuck t-bone tail. Corned beef porchetta chuck flank, jerky pork jowl. Ham pancetta shoulder ground round turducken corned beef sirloin pork loin frankfurter. Sausage capicola short loin short ribs, pastrami doner porchetta sirloin corned beef fatback tri-tip ground round strip steak.

Pastrami cow tri-tip shoulder shankle bresaola fatback, brisket strip steak pig ham. Ground round chuck tenderloin sirloin, pancetta doner salami. Jowl spare ribs tail corned beef pork belly, ball tip tenderloin ground round pancetta fatback. Shoulder shank kielbasa, turducken strip steak boudin salami pig. Ground round rump capicola t-bone pork leberkas biltong pastrami.

Ground round kielbasa shankle ball tip strip steak landjaeger. Bresaola prosciutto salami tri-tip shankle turducken, boudin leberkas pork jerky spare ribs. Salami filet mignon picanha kevin pig prosciutto corned beef ball tip frankfurter shoulder pork biltong short loin. Chicken ball tip alcatra venison, tongue pork chop tenderloin. Meatball turkey filet mignon ground round kielbasa landjaeger brisket. Chicken meatloaf flank andouille sausage ham.

Frankfurter pastrami shoulder pancetta t-bone filet mignon tail cupim brisket. Pork cupim pastrami rump turducken. Cow corned beef pork chop drumstick biltong kielbasa flank. Tenderloin cupim alcatra shoulder jerky strip steak rump pork belly pancetta t-bone. T-bone chuck sirloin cow cupim venison filet mignon jerky hamburger landjaeger.

Flank meatloaf andouille brisket. Pastrami leberkas beef, pork loin doner corned beef ball tip sausage swine shankle kevin tri-tip rump. Ribeye fatback porchetta pork jowl leberkas strip steak picanha. Short ribs kielbasa pork, rump turkey fatback strip steak hamburger t-bone alcatra cupim chuck capicola.

Pork chop tri-tip shankle picanha venison turkey kevin doner meatloaf shoulder short loin salami kielbasa boudin frankfurter. Beef rump pork chop pork loin ribeye strip steak ham hock pancetta shoulder salami tri-tip biltong sausage. Leberkas kevin boudin, porchetta bacon chuck ham hock tongue pancetta ribeye sirloin. Alcatra boudin kielbasa landjaeger cupim bacon pancetta chicken short loin ham hock biltong picanha beef ribeye. Cupim pork chop tongue jowl, shank short loin prosciutto ham hock. Beef ribs turkey shank rump flank spare ribs. Chuck pancetta andouille, turducken bresaola venison fatback ham hock tri-tip beef ribs tenderloin beef pork belly turkey doner.
This is of les tah 40 MB, and I had no trobles to sending same text form te cliend to the server, the problem is when the server tries to build JSON object.
Reply | Threaded
Open this post in threaded view
|

Re: Problem sending a large Json object form grizzly

oleksiys
Administrator
In reply to this post by Surah
Hi,

it looks like some Grizzly versions mismatch, may be you use Grizzly
modules from different Grizzly releases?

WBR,
Alexey.

On 09.01.15 15:14, Surah 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.

Reply | Threaded
Open this post in threaded view
|

Re: Problem sending a large Json object form grizzly

Surah
This post was updated on .
oleksiys wrote
Hi,

it looks like some Grizzly versions mismatch, may be you use Grizzly
modules from different Grizzly releases?

WBR,
Alexey.
I think the same, but i downgrade some molues versions to try to solve this posible mismatch, but dont works.

This is my pom.xml dependencies.




        <dependencyManagement>
                <dependencies>
                        <dependency>
                                <groupId>org.glassfish.jersey</groupId>
                                <artifactId>jersey-bom</artifactId>
                                <version>2.4.1</version>
                               
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
                </dependencies>
        </dependencyManagement>


        <dependencies>
               
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-core</artifactId>
                        <version>4.2.6.Final</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate.common</groupId>
                        <artifactId>hibernate-commons-annotations</artifactId>
                        <version>4.0.4.Final</version>
                </dependency>
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                        <version>1.7.5</version>
                </dependency>
                <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.26</version>
                </dependency>

                 
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-core</artifactId>
                        <version>4.1.1.RELEASE</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-context</artifactId>
                        <version>4.1.1.RELEASE</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-orm</artifactId>
                        <version>4.1.1.RELEASE</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-test</artifactId>
                        <version>4.1.1.RELEASE</version>
                        <scope>test</scope>
                </dependency>
               
               

                <dependency>
                        <groupId>org.glassfish.jersey.containers</groupId>
                        <artifactId>jersey-container-grizzly2-http</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.glassfish.jersey.media</groupId>
                        <artifactId>jersey-media-json-jackson</artifactId>
                </dependency>

                <dependency>
                        <groupId>org.glassfish.grizzly</groupId>
                        <artifactId>connection-pool</artifactId>
                        <version>2.3.14</version>
                </dependency>

                <dependency>
                        <groupId>com.thetransactioncompany</groupId>
                        <artifactId>cors-filter</artifactId>
                        <version>2.2.1</version>
                </dependency>

                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.9</version>
                        <scope>test</scope>
                </dependency>

               
                <dependency>
                        <groupId>javax.mail</groupId>
                        <artifactId>mail</artifactId>
                        <version>1.4.7</version>
                </dependency>

                <dependency>
                        <groupId>com.sun.jersey</groupId>
                        <artifactId>jersey-server</artifactId>
                        <version>1.18.3</version> 
                       
                </dependency>

                <dependency>
                        <groupId>commons-dbcp</groupId>
                        <artifactId>commons-dbcp</artifactId>
                        <version>1.2.2</version>
                </dependency>


        </dependencies>
Reply | Threaded
Open this post in threaded view
|

Re: Problem sending a large Json object form grizzly

oleksiys
Administrator
Well, the only suspicious thing I see is that you specify the version
for Grizzly connection-pool, which is 2.3.14, which may mismatch with
Grizzly version from Jersey dependencies.
If it's not the case - you can create a testcase on github - I'll take a
look and try to help.

WBR,
Alexey.

On 09.01.15 18:06, Surah wrote:

>
> oleksiys wrote
>> Hi,
>>
>> it looks like some Grizzly versions mismatch, may be you use Grizzly
>> modules from different Grizzly releases?
>>
>> WBR,
>> Alexey.
> I think the same, but i downgrade some molues versions to try to solve this
> posible mismatch, but dont works.
>
> This is my pom.xml dependencies.
>
>
>
>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>org.glassfish.jersey</groupId>
> <artifactId>jersey-bom</artifactId>
> <version>2.4.1</version>
>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
> </dependencies>
> </dependencyManagement>
>
>
> <dependencies>
>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-core</artifactId>
> <version>4.2.6.Final</version>
> </dependency>
> <dependency>
> <groupId>org.hibernate.common</groupId>
> <artifactId>hibernate-commons-annotations</artifactId>
> <version>4.0.4.Final</version>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j12</artifactId>
> <version>1.7.5</version>
> </dependency>
> <dependency>
> <groupId>mysql</groupId>
> <artifactId>mysql-connector-java</artifactId>
> <version>5.1.26</version>
> </dependency>
>
>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-core</artifactId>
> <version>4.1.1.RELEASE</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-context</artifactId>
> <version>4.1.1.RELEASE</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-orm</artifactId>
> <version>4.1.1.RELEASE</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-test</artifactId>
> <version>4.1.1.RELEASE</version>
> <scope>test</scope>
> </dependency>
>
>
>
> <dependency>
> <groupId>org.glassfish.jersey.containers</groupId>
> <artifactId>jersey-container-grizzly2-http</artifactId>
> </dependency>
> <dependency>
> <groupId>org.glassfish.jersey.media</groupId>
> <artifactId>jersey-media-json-jackson</artifactId>
> </dependency>
>
> <dependency>
> <groupId>org.glassfish.grizzly</groupId>
> <artifactId>connection-pool</artifactId>
> <version>2.3.14</version>
> </dependency>
>
> <dependency>
> <groupId>com.thetransactioncompany</groupId>
> <artifactId>cors-filter</artifactId>
> <version>2.2.1</version>
> </dependency>
>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.9</version>
> <scope>test</scope>
> </dependency>
>
>
> <dependency>
> <groupId>javax.mail</groupId>
> <artifactId>mail</artifactId>
> <version>1.4.7</version>
> </dependency>
>
> <dependency>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-server</artifactId>
> <version>1.18.3</version>
>
> </dependency>
>
> <dependency>
> <groupId>org.apache.tomcat</groupId>
> <artifactId>tomcat-jdbc</artifactId>
> <version>7.0.35</version>
> </dependency>
>
> <dependency>
> <groupId>commons-dbcp</groupId>
> <artifactId>commons-dbcp</artifactId>
> <version>1.2.2</version>
> </dependency>
>
>
> </dependencies>
>
>
>
>
> --
> View this message in context: http://grizzly.1045725.n5.nabble.com/Problem-sending-a-large-Json-object-form-grizzly-tp5710658p5710663.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: Problem sending a large Json object form grizzly

Surah
This post was updated on .
Thank you very much .
The truth is that the project had begun as a coworker and I figured that pom.xml was well done .

I've solved by removing the dependence
  <dependency>
  <groupId>org.glassfish.grizzly</groupId>
  <artifactId>connection-pool</artifactId>
  <version>2.3.14</version>
  </dependency>
That solves the mismatch.

Thx all for your fast help.