1 2 Previous Next 18 Replies Latest reply on Dec 15, 2017 6:40 AM by mchoma Go to original post
      • 15. Re: wildfly 11 rmi over http
        crazycradd

        How can I get notified when that is ready to test ?

         

        I guess I just need to update one of the modules

        • 16. Re: wildfly 11 rmi over http
          jaikiran

          peter craddock wrote:

           

          How can I get notified when that is ready to test ?

           

           

          You can keep a watch on that WFLY-9573 JIRA.

           

          At this point, the PR has been merged to the wildfly-http-client library which means that you can in fact build it locally and update the module in your WildFly installation to use this new jar and see how it goes. Here's what you would have to do:

           

          - git checkout this repo GitHub - wildfly/wildfly-http-client: The client libraries that support EJB, Naming and Transactions over HTTP

          - Build it using "mvn clean install"

          - Then overwrite the <wildfly>/modules/system/layers/base/org/wildfly/http-client/ejb/main/wildfly-http-ejb-client-1.0.8.Final.jar with the newly generated jar which will be in <your-repo-checkout-location>/ejb/target/wildfly-http-ejb-client-1.0.9.Final-SNAPSHOT.jar

           

          You should then be able to (re)start your WildFly server and test your application.

          • 17. Re: wildfly 11 rmi over http
            crazycradd

            I have built the latest version of the http-ejb-client and all seems fine.

             

            I start my swing application the ejb lookup is done and my app logs on, if I move about the app I can call other ejb methods as before but when the http connection is closed, the next operation fails I guess this is not automatically recreating the connection. Each lookup uses an initialContext created in the same way so I would expect the connection to be remade by the http client once its been closed.

             

            09:52:04,158 INFO  [naming] WildFly Naming version 1.0.7.Final

            09:52:04,252 INFO  [security] ELY00001: WildFly Elytron version 1.1.6.Final

            09:52:05,007 DEBUG [HttpClientExchange] request terminated for request to /10.2.1.116:4500 /wildfly-services/naming/v1/lookup/cp%2Fcp-server%2FLogonSEJB%21com.cedar.cp.ejb.api.logon.LogonRemote

            09:52:05,020 DEBUG [HttpClientConnection] connection to /10.2.1.116:4500 is being upgraded

            09:52:05,757 DEBUG [HttpClientExchange] request terminated for request to /10.2.1.116:4500 /wildfly-services/naming/v1/lookup/%2Fjms%2Fcp%2FentityEventTopic

            09:52:05,759 DEBUG [HttpClientConnection] connection to /10.2.1.116:4500 is being upgraded

            09:52:05,832 DEBUG [HttpClientConnection] close called on connection to /10.2.1.116:4500

            09:52:05,838 DEBUG [HttpClientConnection] connection to /10.2.1.116:4500 closed

            09:52:05,839 DEBUG [io] Marking writes broken on channel Http2Channel peer /10.2.1.116:4500 local 0.0.0.0/0.0.0.0:61958[ No Receiver [io.undertow.protocols.http2.Http2GoAwayStreamSinkChannel@552301a1] -- [] -- []]

            java.nio.channels.ClosedChannelException

            at io.undertow.server.protocol.framed.AbstractFramedChannel.markWritesBroken(AbstractFramedChannel.java:853)

            at io.undertow.server.protocol.framed.AbstractFramedChannel.flushSenders(AbstractFramedChannel.java:670)

            at io.undertow.server.protocol.framed.AbstractFramedChannel$5.run(AbstractFramedChannel.java:722)

            at io.undertow.server.protocol.framed.AbstractFramedChannel$3.run(AbstractFramedChannel.java:231)

            at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)

            at org.xnio.nio.WorkerThread.run(WorkerThread.java:479)

            09:52:05,842 DEBUG [request] Closing HTTP2 channel to /10.2.1.116:4500 due to broken write side

            java.nio.channels.ClosedChannelException

            at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:272)

            at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:494)

            at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:162)

            at io.undertow.conduits.IdleTimeoutConduit.write(IdleTimeoutConduit.java:130)

            at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:154)

            at io.undertow.server.protocol.framed.AbstractFramedChannel.flushSenders(AbstractFramedChannel.java:636)

            at io.undertow.server.protocol.framed.AbstractFramedChannel$5.run(AbstractFramedChannel.java:722)

            at io.undertow.server.protocol.framed.AbstractFramedChannel$3.run(AbstractFramedChannel.java:231)

            at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)

            at org.xnio.nio.WorkerThread.run(WorkerThread.java:479)

            09:52:05,852 DEBUG [request] Closing HTTP2 channel to /10.2.1.116:4500 due to broken write side

            java.nio.channels.ClosedChannelException

            at io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel.flush(AbstractFramedStreamSinkChannel.java:347)

            at org.xnio.ChannelListeners$14.handleEvent(ChannelListeners.java:413)

            at org.xnio.ChannelListeners$14.handleEvent(ChannelListeners.java:409)

            at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

            at io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel$1.run(AbstractFramedStreamSinkChannel.java:214)

            at io.undertow.server.protocol.framed.AbstractFramedChannel$3.run(AbstractFramedChannel.java:231)

            at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)

            at org.xnio.nio.WorkerThread.run(WorkerThread.java:479)

            09:52:05,972 DEBUG [InternalLoggerFactory] Using SLF4J as the default logging framework

            09:52:05,975 DEBUG [PlatformDependent] -Dio.netty.noUnsafe: false

            09:52:05,978 DEBUG [PlatformDependent0] sun.misc.Unsafe.theUnsafe: available

            09:52:05,979 DEBUG [PlatformDependent0] sun.misc.Unsafe.copyMemory: available

            09:52:05,980 DEBUG [PlatformDependent0] java.nio.Buffer.address: available

            09:52:05,981 DEBUG [PlatformDependent0] direct buffer constructor: available

            09:52:05,982 DEBUG [PlatformDependent0] java.nio.Bits.unaligned: available, true

            09:52:05,983 DEBUG [PlatformDependent0] java.nio.DirectByteBuffer.<init>(long, int): available

            09:52:05,984 DEBUG [Cleaner0] java.nio.ByteBuffer.cleaner(): available

            09:52:05,985 DEBUG [PlatformDependent] Platform: Windows

            09:52:05,985 DEBUG [PlatformDependent] Java version: 8

            09:52:05,985 DEBUG [PlatformDependent] sun.misc.Unsafe: available

            09:52:05,986 DEBUG [PlatformDependent] -Dio.netty.tmpdir: C:\Users\PETER~1.CRA\AppData\Local\Temp (java.io.tmpdir)

            09:52:05,986 DEBUG [PlatformDependent] -Dio.netty.bitMode: 64 (sun.arch.data.model)

            09:52:05,987 DEBUG [PlatformDependent] -Dio.netty.noPreferDirect: false

            09:52:05,987 DEBUG [PlatformDependent] io.netty.maxDirectMemory: 3791650816 bytes

            09:52:06,025 DEBUG [HttpClientExchange] request terminated for request to /10.2.1.116:4500 /wildfly-services/naming/v1/lookup/cp%2Fcp-server%2FListSEJB%21com.cedar.cp.ejb.api.base.ListRemote

            09:52:06,082 DEBUG [HttpClientConnection] connection to /10.2.1.116:4500 is being upgraded

            09:52:06,607 DEBUG [ResourceLeakDetector] -Dio.netty.leakDetection.level: simple

            09:52:06,607 DEBUG [ResourceLeakDetector] -Dio.netty.leakDetection.maxRecords: 4

            09:52:06,623 DEBUG [MultithreadEventLoopGroup] -Dio.netty.eventLoopThreads: 8

            09:52:06,656 DEBUG [NioEventLoop] -Dio.netty.noKeySetOptimization: false

            09:52:06,656 DEBUG [NioEventLoop] -Dio.netty.selectorAutoRebuildThreshold: 512

            09:52:06,660 DEBUG [PlatformDependent] org.jctools-core.MpscChunkedArrayQueue: available

            09:52:06,729 DEBUG [DefaultChannelId] -Dio.netty.processId: 1320 (auto-detected)

            09:52:06,732 DEBUG [NetUtil] -Djava.net.preferIPv4Stack: false

            09:52:06,732 DEBUG [NetUtil] -Djava.net.preferIPv6Addresses: false

            09:52:06,940 DEBUG [NetUtil] Loopback interface: lo (Software Loopback Interface 1, 127.0.0.1)

            09:52:06,941 DEBUG [NetUtil] \proc\sys\net\core\somaxconn: 200 (non-existent)

            09:52:07,115 DEBUG [DefaultChannelId] -Dio.netty.machineId: 34:23:87:ff:fe:6a:6f:4b (auto-detected)

            09:52:07,153 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.numHeapArenas: 8

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.numDirectArenas: 8

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.pageSize: 8192

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.maxOrder: 11

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.chunkSize: 16777216

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.tinyCacheSize: 512

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.smallCacheSize: 256

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.normalCacheSize: 64

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.maxCachedBufferCapacity: 32768

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.cacheTrimInterval: 8192

            09:52:07,154 DEBUG [PooledByteBufAllocator] -Dio.netty.allocator.useCacheForAllThreads: true

            09:52:07,166 DEBUG [ByteBufUtil] -Dio.netty.allocator.type: pooled

            09:52:07,166 DEBUG [ByteBufUtil] -Dio.netty.threadLocalDirectBufferSize: 65536

            09:52:07,166 DEBUG [ByteBufUtil] -Dio.netty.maxThreadLocalCharBufferSize: 16384

            09:52:07,215 DEBUG [AbstractByteBuf] -Dio.netty.buffer.bytebuf.checkAccessible: true

            09:52:07,217 DEBUG [ResourceLeakDetectorFactory] Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@5a7d6e56

            09:52:07,271 DEBUG [Recycler] -Dio.netty.recycler.maxCapacityPerThread: 32768

            09:52:07,271 DEBUG [Recycler] -Dio.netty.recycler.maxSharedCapacityFactor: 2

            09:52:07,271 DEBUG [Recycler] -Dio.netty.recycler.linkCapacity: 16

            09:52:07,271 DEBUG [Recycler] -Dio.netty.recycler.ratio: 8

            09:53:17,723 DEBUG [HttpClientConnection] connection to /10.2.1.116:4500 closed

            09:53:17,756 DEBUG [HttpClientConnection] connection to /10.2.1.116:4500 closed

            09:53:30,864 DEBUG [HttpClientConnection] close called on connection to /10.2.1.116:4500

            09:53:30,864 WARN  [ListSessionServer] getRemote

            09:53:30,864 WARN  [ListSessionServer] getRemote retrying in 10

            • 18. Re: wildfly 11 rmi over http
              mchoma

              I think best would be to start new thread for this specific problem.

               

              Could you try to disable http2?

              1 2 Previous Next