TLSv1.2 using IBM Java 1.6 Received fatel alert: handshak_failure - tls1.2

I'm trying to establish a TLSv1. 2 connection using IBM Java 1.6. It's throwing the following exception.
Exception: Received fatel alert: handshake_failure
But I can achieve the same thing in Oracle java 1.7. I need to achieve this in IBM Java 1.6. It seems like need some changes in IBM policy files. Please advice me to resolve this issues

Related

gRPC client can't connect to server Failed parsing HTTP/2, only on my computer

I'm trying to connect to a server from my client using gRPC, but connection always fails only on my pc(macbook pro). My teammate tried with the exact same code, and it works perfectly fine. The following is the error messages from each client and server. We are using protobuf 3, python 3.9. Can anyone give me some hint? Thank You.
Client Error Message
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Failed parsing HTTP/2"
debug_error_string = "{"created":"#1626678822.089372000","description":"Error received from peer ipv4:10.113.66.145:9390", "file":"src/core/lib/surface/call.cc", "file_line":1067,"grpc_message":"Failed parsing HTTP/2","grpc_status":14}"
Server Error Message
[07/19 01:29:32 cctv_service]: Session Connected
E0719 01:29:32.744434791 14615 parsing.cc:302] Unknown frame type 71
I0719 01:29:32.744519637 14615 chttp2_transport.cc:812] W:0x7f3364002ae0 SERVER [ipv4:10.25.211.173:50662] state IDLE -> WRITING [CLOSE_FROM_API]
I0719 01:29:32.744554230 14615 chttp2_transport.cc:812] W:0x7f3364002ae0 SERVER [ipv4:10.25.211.173:50662] state WRITING -> WRITING [begin write in current thread]
Updated MacOS 11.4 to 11.5, problem never appeared again.

SignalR websocket fails with unexpected response code 502 (IIS 8.5 / ARR 3.0)

When trying to establish a web socked connection using SignalR I get an unexpected response error 502.
IE 10 reports:
'WebSocket Error: Incorrect HTTP response. Status code 502, Bad Gateway'
Chrome reports:
'WebSocket connection to 'wss://domain/root/signalr/connect?transport=webSockets&client....' failed: Error during WebSocket handshake: Unexpected response code: 502'
When I connect directly to the server, everything works as it should.
I have spend about 3-4 days now searching for how to get SignalR 2.2.1 working with an IIS 8.5, in Windows Server 2012 R2, ARR 3.0. I am using SSL/https, I have sticky sessions configured, same machine key on all my back end servers.
I have setup a test system, that has only a single server behind it, I have tried every suggestion that I can find but I still cant find a solution - or for that matter anyone indicating that they have successfully configured this even though Microsoft claim it is support "with no extra config".
Can anyone point me towards a guide or reference for getting this working ?
Can anyone confirm it even works - or that it does not work ?
After many many hours, I finally came across this old article about the "Response Buffer Threshold" in the Proxy settings for a server farm.
Setting this one value to 0 finally resolved the issues I had been having...
You can read find the article here http://matthewmanela.com/blog/using-signalr-in-an-arr-cluster.

Meteor and socket io

I am a bit confused about how to use socket.io with Meteor. There is a package called socket-io-client. Is that the only package that I should use or socket-io is required for the client side?
Have anyone implemented a connection? I have managed to print out on the terminal a message that indicates that there is a connection on the server but I cannot print any output on the browser console. Instead I get a message about encoding Uncaught TypeError: response.setEncoding is not a function.
Does the connection is on the same port as my meteor server or must be running on different port?
Thanks very much.

Running multiple projects at the same time in play framework

I am trying to run 2 projects built using play framework simultaneously but with little success. This is the error that pops up while trying to run the second instance:
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_E
RROR_TRANSPORT_INIT(197)
I tried changing the http port of one to 9000 and the other to 9001, but still the same error. Any ideas as to how I can get these multiple instances running ? Thanks in advance.
Play uses 2 ports in dev mode. One for http and one for jpda. You can change both in your application.conf file
http.port=9001
jpda.port=8001
Bonus answer : In production mode, only the http port is used.

ODBC Driver General error: attempted two active database requests

I'm using ASP.NET 2.0 to connect to a Sybase SQL Anywhere 5 server. And I get this error sporadically. It just happens sometimes. The error message is:
ERROR [HY000] [Sybase][ODBC Driver]General error: attempted two active database requests
Exception Details: System.Data.Odbc.OdbcException: ERROR [HY000] [Sybase][ODBC Driver]
General error: attempted two active database requests
Anyone has any experience with this problem?
The error message means that you attempted to run two queries at the same time using the same database connection.
Are you trying to use the same database connection for all requests? The requests are handled by several threads, so each request needs to have it's own database connection.
Sounds like you're reusing the same connection for multiple commands. Check that you properly dispose of the connections after each command/batch of commands and that all new commands get a new connection.

Resources