Coder Social home page Coder Social logo

playvertx's People

Contributors

fmasion avatar he-pin avatar jeantil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

playvertx's Issues

upgrade to an newer version

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

message loose

After test,I found that this eventbus will lost message.and the message speed go down and finally stop.

Join cluster after Restart

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

cluster conf

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?

In cluster, throws exception: java.lang.ClassNotFoundException: playvertx.clusterManager.HazelcastServerID

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)

Play 2.2 can't start with playVertx 2.1RC1 and new playHazelcast 3.2.1

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

createPlatformManager not use host and post from conf

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())
    }
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.