java.lang.StackOverflowError
at io.vertx.core.json.JsonArray.add(JsonArray.java:444)
at io.vertx.ext.asyncsql.impl.ScalaUtils.convertValue(ScalaUtils.java:138)
at io.vertx.ext.asyncsql.impl.ScalaUtils.access$000(ScalaUtils.java:41)
at io.vertx.ext.asyncsql.impl.ScalaUtils$4.apply(ScalaUtils.java:105)
at io.vertx.ext.asyncsql.impl.ScalaUtils$4.apply(ScalaUtils.java:102)
at scala.collection.Iterator.foreach(Iterator.scala:929)
at scala.collection.Iterator.foreach$(Iterator.scala:929)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
at scala.collection.IterableLike.foreach(IterableLike.scala:71)
at scala.collection.IterableLike.foreach$(IterableLike.scala:70)
at com.github.mauricio.async.db.general.ArrayRowData.foreach(ArrayRowData.scala:21)
at io.vertx.ext.asyncsql.impl.ScalaUtils.rowToJsonArray(ScalaUtils.java:102)
at io.vertx.ext.asyncsql.impl.AsyncSQLRowStream.nextRow(AsyncSQLRowStream.java:98)
at io.vertx.ext.asyncsql.impl.AsyncSQLRowStream.nextRow(AsyncSQLRowStream.java:99)
Note: I am trying to compare this with the Spring Boot. Spring Boot version is working fine https://github.com/greyseal/spring-boot-csv-download
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/06cf6144-5521-4906-88ed-ee737ced3bbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
at io.vertx.ext.asyncsql.impl.AsyncSQLRowStream.nextRow(AsyncSQLRowStream.java:99)
Apologies for being impatient. Anyways, Happy new year.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/94bd3c95-ce7f-4754-8ce5-024b14d439e3%40googlegroups.com.
Jan 31, 2018 6:26:49 PM io.vertx.core.impl.BlockedThreadChecker
WARNING: Thread Thread[vert.x-eventloop-thread-1,5,main] has been blocked for 6490 ms, time limit is 2000
io.vertx.core.VertxException: Thread blocked
at java...@9.0.1/java.lang.StringUTF16.compress(StringUTF16.java:157)
at java...@9.0.1/java.lang.String.<init>(String.java:3015)
at java...@9.0.1/java.lang.String.<init>(String.java:657)
at java...@9.0.1/java.lang.System$2.newStringUnsafe(System.java:2107)
at java...@9.0.1/java.util.StringJoiner.compactElts(StringJoiner.java:255)
at java...@9.0.1/java.util.StringJoiner.toString(StringJoiner.java:178)
at java...@9.0.1/java.lang.String.join(String.java:2402)
at app//com.vertx.test.RequestHandler.toString(RequestHandler.java:43)
at app//com.vertx.test.RequestHandler.lambda$0(RequestHandler.java:29)
at app//com.vertx.test.RequestHandler$$Lambda$165/1268685181.handle(Unknown Source)
at app//io.vertx.core.eventbus.impl.EventBusImpl.lambda$convertHandler$1(EventBusImpl.java:354)
at app//io.vertx.core.eventbus.impl.EventBusImpl$$Lambda$166/1585037726.handle(Unknown Source)
at app//io.vertx.core.eventbus.impl.HandlerRegistration.deliver(HandlerRegistration.java:212)
at app//io.vertx.core.eventbus.impl.HandlerRegistration.handle(HandlerRegistration.java:189)
at app//io.vertx.core.eventbus.impl.EventBusImpl.lambda$deliverToHandler$3(EventBusImpl.java:538)
at app//io.vertx.core.eventbus.impl.EventBusImpl$$Lambda$169/2106653639.handle(Unknown Source)
at app//io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:344)
at app//io.vertx.core.impl.ContextImpl$$Lambda$87/1623009085.run(Unknown Source)
at app//io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at app//io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
at app//io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)
at app//io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java...@9.0.1/java.lang.Thread.run(Thread.java:844)
...
On 31 Jan 2018, at 14:09, Grey Seal <saubk...@gmail.com> wrote:at app//com.vertx.test.RequestHandler.toString(RequestHandler.java:43)
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5fd8de43-1c5f-4015-92d3-b2922a0774b4%40googlegroups.com.
There are about half a million records having 7 columns. You can find it at https://github.com/greyseal/vertx-csv-download/blob/master/src/main/resources/Sample-SQL-File-500000-Rows.sql. I am not able to get the string size as IDE becomes unresponsive after some time.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/cca62d4b-e22f-4981-9702-12fbeaadbbee%40googlegroups.com.
Feb 02, 2018 5:25:54 PM io.vertx.core.impl.BlockedThreadChecker WARNING: Thread Thread[vert.x-eventloop-thread-1,5,main] has been blocked for 5291 ms, time limit is 2000 io.vertx.core.VertxException: Thread blocked at com.vertx.test.RequestHandler.toString(RequestHandler.java:43) at com.vertx.test.RequestHandler.lambda$handle$0(RequestHandler.java:29) at com.vertx.test.RequestHandler$$Lambda$78/1519358202.handle(Unknown Source) at io.vertx.core.eventbus.impl.EventBusImpl.lambda$convertHandler$1(EventBusImpl.java:354) at io.vertx.core.eventbus.impl.EventBusImpl$$Lambda$79/1636941829.handle(Unknown Source) at io.vertx.core.eventbus.impl.HandlerRegistration.deliver(HandlerRegistration.java:212) at io.vertx.core.eventbus.impl.HandlerRegistration.handle(HandlerRegistration.java:189) at io.vertx.core.eventbus.impl.EventBusImpl.lambda$deliverToHandler$3(EventBusImpl.java:538) at io.vertx.core.eventbus.impl.EventBusImpl$$Lambda$82/934572424.handle(Unknown Source) at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:344) at io.vertx.core.impl.ContextImpl$$Lambda$28/1429880200.run(Unknown Source) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at java.lang.Thread.run(Thread.java:745)
Feb 02, 2018 5:25:55 PM io.vertx.core.impl.BlockedThreadChecker WARNING: Thread Thread[vert.x-eventloop-thread-1,5,main] has been blocked for 6295 ms, time limit is 2000 io.vertx.core.VertxException: Thread blocked at java.util.Arrays.copyOf(Arrays.java:3332) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448) at java.lang.StringBuilder.append(StringBuilder.java:136) at java.util.StringJoiner.prepareBuilder(StringJoiner.java:223) at java.util.StringJoiner.add(StringJoiner.java:185) at java.lang.String.join(String.java:2456) at com.vertx.test.RequestHandler.toString(RequestHandler.java:43) at com.vertx.test.RequestHandler.lambda$handle$0(RequestHandler.java:29) at com.vertx.test.RequestHandler$$Lambda$78/1519358202.handle(Unknown Source) at io.vertx.core.eventbus.impl.EventBusImpl.lambda$convertHandler$1(EventBusImpl.java:354) at io.vertx.core.eventbus.impl.EventBusImpl$$Lambda$79/1636941829.handle(Unknown Source) at io.vertx.core.eventbus.impl.HandlerRegistration.deliver(HandlerRegistration.java:212) at io.vertx.core.eventbus.impl.HandlerRegistration.handle(HandlerRegistration.java:189) at io.vertx.core.eventbus.impl.EventBusImpl.lambda$deliverToHandler$3(EventBusImpl.java:538) at io.vertx.core.eventbus.impl.EventBusImpl$$Lambda$82/934572424.handle(Unknown Source) at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:344) at io.vertx.core.impl.ContextImpl$$Lambda$28/1429880200.run(Unknown Source) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at java.lang.Thread.run(Thread.java:745)
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5098428c-91e9-4739-9f41-f8cfa3472368%40googlegroups.com.
DatabaseHandler.SELECT_USER_DETAILS to "SELECT `user_id`, `username`, `first_name`, `last_name`, `gender`, `password`, `status` FROM `user_details` ".
In my local, I have updated `user_id` to `id`.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5343435d-6590-4e2f-93dc-f332d2b23d02%40googlegroups.com.
Handler<Response> busHandler = new Handler<Response>() {
public void handle(Response response) {
//handle message here response.body
}
};
this.vertx.eventBus().registerHandler("4f127476-41c8-4d55-97fa-6e0c98f27e74", busHandler);
Feb 05, 2018 3:52:29 PM io.vertx.core.eventbus.impl.HandlerRegistration
SEVERE: Failed to handleMessage. address: 4f127476-41c8-4d55-97fa-6e0c98f27e74
java.lang.IllegalStateException: Response has already been written
at io.vertx.core.http.impl.HttpServerResponseImpl.checkWritten(HttpServerResponseImpl.java:572)
at io.vertx.core.http.impl.HttpServerResponseImpl.write(HttpServerResponseImpl.java:598)
at io.vertx.core.http.impl.HttpServerResponseImpl.write(HttpServerResponseImpl.java:293)
at io.vertx.core.http.impl.HttpServerResponseImpl.write(HttpServerResponseImpl.java:58)
at io.vertx.core.streams.impl.PumpImpl.lambda$new$1(PumpImpl.java:64)
at io.vertx.core.eventbus.impl.BodyReadStream.lambda$handler$0(BodyReadStream.java:46)
at io.vertx.core.eventbus.impl.HandlerRegistration.deliver(HandlerRegistration.java:212)
at io.vertx.core.eventbus.impl.HandlerRegistration.handle(HandlerRegistration.java:189)
at io.vertx.core.eventbus.impl.EventBusImpl.lambda$deliverToHandler$3(EventBusImpl.java:538)
at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:344)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.base/java.lang.Thread.run(Thread.java:844)
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/a5228cc3-7af3-4701-9895-a160ecdd99c9%40googlegroups.com.