netty-tcnative | A fork of Apache Tomcat Native | Websocket library
kandi X-RAY | netty-tcnative Summary
kandi X-RAY | netty-tcnative Summary
See our wiki page.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of netty-tcnative
netty-tcnative Key Features
netty-tcnative Examples and Code Snippets
Community Discussions
Trending Discussions on netty-tcnative
QUESTION
I getting this warning while running application.
I tried solution [here][1] but it is not working ,I am not sure what am I missing, could anyone help here? Thanks in advance.
...ANSWER
Answered 2022-Mar-08 at 22:49You have to use the information SLF4J provide you and back trace the dependency using dependency:tree
and its includes
option.
This message:
QUESTION
I am using Java 17, spring-boot 2.6.3 with spring-webflux and spring-consul dependencies and I have the following class:
...ANSWER
Answered 2022-Jan-30 at 20:06You have annotated your application with @EnableWebFlux
. This indicates that you want to take complete control of WebFlux's configuration. This causes Spring Boot's auto-configuration of WebFlux to back off. Among other things, this means that it won't configure WebFlux to use the context's ObjectMapper
.
You should either remove @EnableWebFlux
to allow Spring Boot to auto-configure WebFlux or you should configure its codecs manually so that they use your ObjectMapper
.
QUESTION
I am connecting to a Java (netty-tcnative) server using Berkeley sockets and OpenSSL 1.1.1k on Windows using C++. Sometimes during the connection phase, I'll receive a SSL_ERROR_SYSCALL
from SSL_connect
. If I attempt to get more information from this SYSCALL error (per OpenSSL documentation) using ERR_get_error
I get a return value of 0. The state of the TLS connection is SSLv3/TLS write client hello
. After some testing on my end, I found the issue is only reproduced when I reconnect the socket (possible TLS session resumption?)
3 questions here:
- Is there a flag or boolean I can set to enable debug logging on OpenSSL side or a way for me to verify my suspicions that OpenSSL is attempting to resume the TLS session?
- Is there a flag for me to set on Netty tcnative side to log the TLS handshake similar to
-Djavax.net.debug=all
? - Is this a client-sided issue or server-sided issue?
I am using version 2.0.40 of netty-tcnative on Debian 10.
My C++ client-side code is running on MSVC 2017 and Windows 10.
C++ code for creating SSL_ctx
:
ANSWER
Answered 2021-Oct-23 at 22:17After a lot of debugging I finally have an answer to this question.
- Is there a flag or boolean I can set to enable debug logging on OpenSSL side or a way for me to verify my suspicions that OpenSSL is attempting to resume the TLS session?
If you are using BoringSSL and not the Netty-tcnative OpenSSL dynamic library, TLS renegotiation is not supported. In fact, BoringSSL does not support TLS renegotiation at all. It is mentioned in their documentation here
- Is there a flag for me to set on Netty tcnative side to log the TLS handshake similar to -Djavax.net.debug=all?
For the reader reading this, if you happen to run into this issue I would highly suggest making sure you are logging all TLS handshake errors in your server handler. Reference the following code segment as this will alert you to the handshake errors as they occur.
QUESTION
I have a server using JRE8, netty 4.1.x and netty-tcnative 2.0.36. By default SslProvider.OPENSSL
is configured.
ANSWER
Answered 2021-Sep-13 at 05:55Neety-tcnative has been updated through this PR - https://github.com/netty/netty-tcnative/pull/661 to support this feature.
QUESTION
I have a long running websocket client implemented in java Spring reactor with Netty (spring-boot-starter-parent 2.5.3) targeting Binance ws api. According to specs, the weboscket channel is kept open 24 hours.
The websocket is unexpectedly and prematurely closed after around 3 minutes :
...ANSWER
Answered 2021-Aug-18 at 07:11I finally managed to find the root cause.
The underlying error was java websocket 1006 Unexpected Status of SSLEngineResult after an unwrap() operation
After some investigation, I got the returned code 1006 meaning the connection was closed abnormally by the client as documented in the rfc https://datatracker.ietf.org/doc/html/rfc6455#section-7.4.1
1006 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that the connection was closed abnormally, e.g., without sending or receiving a Close control frame.
At that time, I switched from WIFI connection to LAN connection and the issue vanished immediately. My WIFI router was not able to handle the huge payload correctly.
QUESTION
I have an application using Boot Strap running with cassandra 4.0, Cassandra java drive 4.11.1, spark 3.1.1 into ubuntu 20.4 with jdk 8_292 and python 3.6.
When I run a function that it call CQL by spark, the tomcat gave me the error bellow.
Stack trace:
...ANSWER
Answered 2021-May-25 at 23:23I openned two JIRA to understand this problem. See the links below:
QUESTION
There is not much information that I've found in terms of configuration with Netty and Webflux using HTTP2.
I have used similiar configurations in the past without using reactor based spring boot modules, typically spring boot web. I have posted my steps below.
The problem is SSL not working correctly with Netty. Do I require more work in terms of setup? Hoping to get some pointers or examples to understand how to confiure this correctly please.
Generated Certificate
generate cert valid for local dev usage:
mkcert localhost 127.0.0.1
output: certificate
localhost+1.pem
keylocalhost+1-key.pem
generate keystore with openssl:
openssl pkcs12 -export -in localhost+1.pem -inkey localhost+1-key.pem -out keystore.p12 -name localdev
Application Files
application.yaml
ANSWER
Answered 2021-Feb-20 at 19:32Your application.yml file is incorrect. The ssl properties are effectively at server.server.ssl instead of server.ssl. Therefore the SSL settings have no effect and your server is an HTTP server instead of an HTTPS server. That's why curl works with http.
To fix, remove line 6 (server:) and back indent line "ssl:" and following. This will give you (for example) server.ssl.enabled=true instead of server.server.ssl.enabled=true
QUESTION
I want to add Cassandra monitoring using Prometheus. ref https://blog.pythian.com/step-step-monitoring-cassandra-prometheus-grafana/
When I add /etc/cassandra/cassandra-env.sh
JVM_OPTS="$JVM_OPTS -javaagent:/opt/jmx_prometheus/jmx_prometheus_javaagent-0.3.0.jar=7070:/opt/jmx_prometheus/cassandra.yml"
I get an error :
...ANSWER
Answered 2020-Apr-14 at 09:13It worked! Changed port to 7071 from 7070 in JVM_OPTS="$JVM_OPTS -javaagent:/opt/jmx_prometheus/jmx_prometheus_javaagent-0.3.0.jar=7071:/opt/jmx_prometheus/cassandra.yml"
QUESTION
I am trying to configure Azure CosmosDB in my Spring project, but I'm getting the following stack trace:
...ANSWER
Answered 2020-Mar-28 at 14:49I did a some googling and little research. I foud following:
- The missing class
com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdConstants$RntbdContextRequestHeader
is a part ofazure-cosmosdb-direct
, pls see pom.xml, class is located here. azure-cosmosdb-direct
is missing from your dependency list. I assume it's incomplete or hidden for some reason(?)- Looking at exception stacktrace it's clear that
at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdContextRequest$Headers.(RntbdContextRequest.java:126)
is a place where exceptiom occurs. So that meansRntbdContextRequest
class actually existsts (it's also is a part ofazure-cosmosdb-direct
). Therefore you have needed dependency, but it probably has wrong version.
I propose you to look a bit deeper into how azure-cosmosdb-direct
dependency is injected in your project and fix its version. Just try to declare it directly in your pom.xml
with the latest version.
Hope I helped you.
QUESTION
After building netty-tcnative-openssl-static-2.0.28.Final-windows-x86_64 from sources, using the created jar file results in unresolved dependency errors at runtime:
...ANSWER
Answered 2020-Feb-07 at 10:59The openssl build copies import libraries to the target directory
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install netty-tcnative
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page