fmasion / playvertx Goto Github PK
View Code? Open in Web Editor NEWPlayframework 2.3.x vertX integration
Playframework 2.3.x vertX integration
I think I will send an PR tomorrow morning to upgrade this plugin to last vertx and
your other plugin Hazelcast to the last version of 2.6 branch to 2.6.7.
And then I will make an play clustered app to do something like push service,may be.via websocket
After test,I found that this eventbus will lost message.and the message speed go down and finally stop.
When I restart my play application, the command line vertx application will lose the connection to this play embedded vertx. But when play restarted and it won't join the cluster again. I can see this message under command line vertx app output but it won't join as a member.
[192.168.133.141]:5701 [dev] 39999 accepted socket connection from /192.168.133.141:5702
the Readme now is for 2.1 so should be update
At vertx runmod, I can specify -cluster -cluster-host 192.81.xx.xx -cluster-port 8888 to start a cluster mode. Where should I put these variables to playVertx? Should be under playVertX.conf or hazelcast.conf?
Hi ,could I access the event bus from play code?
how many verticle could i start?
Since vertx rc4 is upgrading hazelcastVersion to 3.2.1, playVertx should follow too.
I can see the embedded instance started with playVertx plugin in my command line vertx application. But it gave me this error:
Members [2] {
Member [192.168.133.141]:5702
Member [192.168.133.141]:5701 this
}
[dev] Problem when serializing type 0
com.hazelcast.nio.HazelcastSerializationException: Problem when serializing type 0
at com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:128)
at com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:156)
at com.hazelcast.nio.Serializer.readObject(Serializer.java:75)
at com.hazelcast.impl.ThreadContext.toObject(ThreadContext.java:135)
at com.hazelcast.nio.IOUtil.toObject(IOUtil.java:163)
at com.hazelcast.impl.concurrentmap.ValueHolder.getValue(ValueHolder.java:41)
at com.hazelcast.impl.concurrentmap.ValueHolder.hashCode(ValueHolder.java:57)
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1125)
at com.hazelcast.util.SetFromMap.add(SetFromMap.java:51)
at com.hazelcast.impl.CMap.storeDataRecordEntry(CMap.java:497)
at com.hazelcast.impl.CMap.storeAsBackup(CMap.java:480)
at com.hazelcast.impl.PartitionManager$5.process(PartitionManager.java:294)
at com.hazelcast.cluster.ClusterService$2.process(ClusterService.java:142)
at com.hazelcast.cluster.ClusterService.processProcessable(ClusterService.java:194)
at com.hazelcast.cluster.ClusterService.dequeueProcessables(ClusterService.java:259)
at com.hazelcast.cluster.ClusterService.run(ClusterService.java:205)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Problem reading DataSerializable class : playvertx.clusterManager.HazelcastServerID, exception: java.lang.ClassNotFoundException: playvertx.clusterManager.HazelcastServerID
at com.hazelcast.nio.Serializer$DataSerializer.read(Serializer.java:111)
at com.hazelcast.nio.Serializer$DataSerializer.read(Serializer.java:83)
at com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:121)
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>2.0.1-final</version>
</dependency>
My play 2.2 server can't start. This is last output from the server logs.
[debug] i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
[debug] i.n.u.ResourceLeakDetector - -Dio.netty.leakDetectionLevel: simple
[debug] i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 4
[debug] i.n.u.i.PlatformDependent0 - sun.nio.ch.DirectBuffer.cleaner(): available
[debug] i.n.u.i.PlatformDependent0 - java.nio.Buffer.address: available
[debug] i.n.u.i.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
[debug] i.n.u.i.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
[debug] i.n.u.i.PlatformDependent0 - java.nio.Bits.unaligned: true
[debug] i.n.u.i.PlatformDependent - UID: 1002
[debug] i.n.u.i.PlatformDependent - Java version: 7
[debug] i.n.u.i.PlatformDependent - -Dio.netty.noUnsafe: false
[debug] i.n.u.i.PlatformDependent - sun.misc.Unsafe: available
[debug] i.n.u.i.PlatformDependent - -Dio.netty.noJavassist: false
[debug] i.n.u.i.PlatformDependent - Javassist: available
[debug] i.n.u.i.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
[debug] i.n.u.i.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
[debug] i.n.u.i.PlatformDependent - -Dio.netty.noPreferDirect: false
[debug] i.n.c.n.NioEventLoop - -Dio.netty.noKeySetOptimization: false
[debug] i.n.c.n.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
[info] p.c.PlayHazelcastClusterManager - Starting Custom Cluster Manager yeepeekai
These are my dependencies:
"io.vertx" % "vertx-platform" % "2.1.1", // playvertx
"io.vertx" % "vertx-core" % "2.1.1", // playvertx
"io.vertx" % "vertx-hazelcast" % "2.1.1", // playvertx
"playhazelcast" % "playhazelcast_2.10" % "3.2.1", // playvertx
("playvertx" % "playvertx_2.10" % "2.1RC1" notTransitive()), // playvertx
"io.vertx" % "lang-scala" % "1.0.0", // playvertx
Can I use this module to connect to an existing running vertx sockjs server instead of init a new one using this module?
I wonder why playVertx didn't use the host and post from conf to createPlatformManager when cluster = true.
private def start = {
plateformManager = if (VertxConf.isClustered) {
Option(PlatformLocator.factory.createPlatformManager(0, ""))
} else {
Option(PlatformLocator.factory.createPlatformManager())
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.