netty Questions

1

What I want to do is in essence what How to use MDC with thread pools? is asking, but with Netty. I want MDC information associated per Channel. What options are there for Netty? If I need to rese...
Diplodocus asked 23/2, 2015 at 7:12

3

I have created a game server using netty 3.5.8. At first, there is not any problem with sending data from server to client. But when server operates for a while, there are many exceptions [java.nio...
Davisdavison asked 25/12, 2012 at 9:28

4

What is the main difference between Jetty and Netty? Netty is part of Jboss, but is it the default web server container? Does Netty support Servlets 3.0?
Menon asked 22/3, 2011 at 0:35

8

Solved

ERROR GServerHandler - java.io.IOException: Connection reset by peer java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher...
Steam asked 28/12, 2011 at 15:56

4

What version of gRPC are you using? 1.13.1 I am using java 8 to build an executable jar. Below is the java version: $ /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/bin/java -version openjdk version ...
Settles asked 17/2, 2019 at 12:46

4

I want to write a netty based client. It should have method public String send(String msg); which should return response from the server or some future - doesen't matter. Also it should be multithr...
Drake asked 17/4, 2014 at 8:30

6

I have a netty server running the atmosphere framework for a real-time notification system over websockets. The system works perfectly on my local machine, but when I deploy it on EC2, It just doe...
Ashliashlie asked 6/8, 2012 at 10:33

1

I'd like to create an SSL/TLS connection using the Netty framework which will send a SNI header together during handshake. My current code looks like this: SslContext creation: TrustManagerFacto...
Grouch asked 12/9, 2016 at 15:11

5

Solved

When I upgraded the Java from 8 to 11, I got an error from Netty about the "jdk.internal.misc.Unsafe", the details are below: I knew it is a debug level message, and I can change the level of the ...
Silken asked 11/9, 2019 at 9:13

2

Solved

I have together 6 containers running in docker swarm. Kafka+Zookeeper, MongoDB, A, B, C and Interface. Interface is the main access point from public - only this container publish the port - 5683. ...
Bonilla asked 9/4, 2017 at 19:33

4

I have a desktop app made in Java/Kotlin with Firebase (specifically Firestore realtime) connection. It works properly in my notebook (Windows via Parallels) and in some others Windows tested. But...
Besides asked 8/4, 2019 at 17:43

2

I'm using Gradle shadow jar plugin to produce a fat jar for selenium. The following code is declared in Gradle kts: dependencies { val seleniumV = "4.1.4" val phantomJSV = "1.5.0&...
Bahuvrihi asked 17/6, 2022 at 20:51

2

Solved

How to get a byte array from ByteBuf efficiently in the code below? I need to get the array and then serialize it. package testingNetty; import io.netty.buffer.ByteBuf; import io.netty.channel.Cha...
Darleen asked 10/10, 2013 at 12:57

1

I am running a batch job in AWS which consumes messages from a SQS queue and writes them to a Kafka topic using akka. I've created a Sqs Async Client with the following parameters: private static S...
Gropius asked 14/7, 2021 at 11:30

2

Solved

I am currently developing using spring boot webflux. I am using websocket clients and APIs clients, but this error occurs a few hours after deployment. I couldn't figure out where this error was co...
Ironsides asked 31/12, 2021 at 6:47

2

Solved

Its new topic for me. I'm able to connect as plaintext. public ManagedChannel getChannel(String serviceName){ TSServiceClientManager scm = TSServiceManagementFactory.getInstance().getServiceClien...
Crossindex asked 4/12, 2017 at 7:17

3

Solved

Is there a way to convert a netty ByteBuf to a String and vice versa? public String toString(ByteBuf b){ //return b enconded to a String } public Bytebuf ToByteBuff(String s){ //return s deco...
Invincible asked 27/10, 2016 at 15:55

2

Solved

Hi i'm trying to understand why so memory consumption in my app so i have downloaded a heapdump with visualjvm and then have analysed it with eclipse mat. It have found the following problem: One ...
Mezereum asked 20/10, 2020 at 19:46

2

I have an existing micro-service in production which has a restful endpoint. For new customers, as well as well from a long term objective, we would like to support grpc. I would like to understand...
Dowski asked 16/4, 2021 at 23:24

2

Solved

I'm using Web-flux/Reactive and Webclient, running it on Tomcat and spring-boot. Everything works fine. I read a lot about it. The problem seems to be that whenever you use Webclient, you have to r...
Saraann asked 9/7, 2019 at 16:34

2

Solved

As far as I know netty handle exceptions by override method exceptionCaught(). But what I want is a Handler that can handler all exceptions in or out. So, the pipeline should be like : InboundExce...
Dalpe asked 23/6, 2015 at 4:54

2

Solved

I am in the middle of learning Netty an started some tutorials using spring boot. My goal is to create an application which set up a tcp port for receiving messages and to present them over a rest ...
Onanism asked 6/1, 2017 at 12:33

2

Solved

I'm really confused about the number of threads for a boss group. I can't figure out a scenario where we need more than one boss thread. In do we need more than a single thread for boss group? the ...
Mylor asked 14/12, 2015 at 19:32

0

I was looking for a way to avoid StacklessClosedChannelException, but I didn't find anything. I suppose it's not safe and it shouldn't happen, how to avoid it?
Bernete asked 9/12, 2021 at 19:39

2

My GRPC service is only accessible to applications on the local machine. I assume it would perform faster if the clients would connect over Unix domain socket, rather then localhost:port I'm tyri...
Afebrile asked 14/1, 2019 at 10:38

© 2022 - 2025 — McMap. All rights reserved.