run vertex exception in cluster

65 views
Skip to first unread message

stream

unread,
Dec 12, 2012, 3:54:25 AM12/12/12
to ve...@googlegroups.com

Hi all

i have downloaded the source of 1.3.0 and compile with gradle in local.
then i set the ENV , and try to run the with -cluster

vertx run sender.js -cluster

.java.core.impl.DefaultVertx.createEventLoopContext(DefaultVertx.java:291)
at org.vertx.java.core.impl.DefaultVertx.getOrAssignContext(DefaultVertx.java:240)
at org.vertx.java.core.net.impl.DefaultNetServer.<init>(DefaultNetServer.java:74)
at org.vertx.java.core.impl.DefaultVertx.createNetServer(DefaultVertx.java:113)
at org.vertx.java.core.eventbus.impl.DefaultEventBus.setServer(DefaultEventBus.java:324)
at org.vertx.java.core.eventbus.impl.DefaultEventBus.<init>(DefaultEventBus.java:87)
at org.vertx.java.core.impl.DefaultVertx.<init>(DefaultVertx.java:97)
at org.vertx.java.deploy.impl.cli.Starter.runVerticle(Starter.java:121)
at org.vertx.java.deploy.impl.cli.Starter.<init>(Starter.java:75)
at org.vertx.java.deploy.impl.cli.Starter.main(Starter.java:51)


PS: i have set the systemProperties in file of bin

if [ "x" != "x$VERTX_MODS" ]; then
VERTX_OPTS="$VERTX_OPTS -Dvertx.mods=$VERTX_MODS -Dvertx.backgroundPoolSize=5"
fi

someone can help me ?

Brian Lalor

unread,
Dec 12, 2012, 6:27:40 AM12/12/12
to ve...@googlegroups.com
On Dec 12, 2012, at 3:54 AM, stream <strea...@gmail.com> wrote:

> someone can help me ?

You're going to have to provide more information, like a complete stack trace. Also the simplest bit of code that reproduces the issue will help, as well.

stream

unread,
Dec 12, 2012, 7:24:33 AM12/12/12
to ve...@googlegroups.com

Well

I just compile the branch of master and replace these jar file in my Vertx_home.

then try to run the vertx in -cluster.

the code is the example in the folder of example/javascript/event.

i run sender in vertx run sender.js -cluster

but get the exception below

Starting clustering...
No cluster-host specified so using address 192.168.1.101
Cannot find cluster.xml on classpath. Using default cluster configuration
Exception in thread "main" java.lang.IllegalArgumentException
at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1275)
at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1198)
at java.util.concurrent.Executors.newFixedThreadPool(Executors.java:114)
at org.vertx.java.core.impl.DefaultVertx.getBackgroundPool(DefaultVertx.java:197)
at org.vertx.java.core.impl.DefaultVertx.createEventLoopContext(DefaultVertx.java:291)
at org.vertx.java.core.impl.DefaultVertx.getOrAssignContext(DefaultVertx.java:240)
at org.vertx.java.core.net.impl.DefaultNetServer.<init>(DefaultNetServer.java:74)
at org.vertx.java.core.impl.DefaultVertx.createNetServer(DefaultVertx.java:113)
at org.vertx.java.core.eventbus.impl.DefaultEventBus.setServer(DefaultEventBus.java:324)
at org.vertx.java.core.eventbus.impl.DefaultEventBus.<init>(DefaultEventBus.java:87)
at org.vertx.java.core.impl.DefaultVertx.<init>(DefaultVertx.java:97)
at org.vertx.java.deploy.impl.cli.Starter.runVerticle(Starter.java:121)
at org.vertx.java.deploy.impl.cli.Starter.<init>(Starter.java:75)
at org.vertx.java.deploy.impl.cli.Starter.main(Starter.java:51)

i have notice that maybe cause the by parameter of backGroundPoolSize,
so i set the parameter as i have marked in the last mail.
but it doesn't work....
> --
> You received this message because you are subscribed to the Google Groups "vert.x" group.
> To post to this group, send an email to ve...@googlegroups.com.
> To unsubscribe from this group, send email to vertx+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/vertx?hl=en-GB.
>

Jeroen Kransen

unread,
Dec 13, 2012, 5:01:29 AM12/13/12
to ve...@googlegroups.com
I made a fix for this bug yesterday, and made a pull request to the master. For now you could just pull my change from my own fork at https://github.com/jkransen/vert.x

Op woensdag 12 december 2012 13:24:33 UTC+1 schreef Stream.liu het volgende:

stream

unread,
Dec 13, 2012, 5:04:55 AM12/13/12
to ve...@googlegroups.com

ye, i have got it...
thanks

To view this discussion on the web, visit https://groups.google.com/d/msg/vertx/-/GLtnCl4r4XUJ.

Leng Sheng Hong

unread,
Dec 14, 2012, 3:33:54 PM12/14/12
to ve...@googlegroups.com
encounter the same issue, thanks for the fix
Reply all
Reply to author
Forward
0 new messages