this is old app running on vps Ubuntu and java version 11.0.3, and app start get this error. but
no error at windows10.
this is error code:
here is my code:
how to fix this error?
no error at windows10.
this is error code:
B4X:
Error connecting feedback socket: (InvalidAlgorithmParameterException) java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Error connecting socket: (InvalidAlgorithmParameterException) java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Trying to reconnect...
Error connecting socket: (InvalidAlgorithmParameterException) java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Trying to reconnect...
here is my code:
B4X:
Private Sub Connect
If sock.IsInitialized Then sock.Close
Dim sock As Socket
sock.InitializeSSL("sock", File.OpenInput(Main.config.Get("iPushKeystore"), ""), Main.config.Get("iPushKeystorePassword"))
sock.Connect(Main.config.Get("iFeedback"), Main.config.Get("iFeedbackPort"), 30000)
buffer.Clear
End Sub
Private Sub sock_Connected (Successful As Boolean)
If Successful Then
Log("Feedback Socket connected.")
If astream.IsInitialized Then astream.Close
astream.Initialize(sock.InputStream, sock.OutputStream, "astream")
Else
Log("Error connecting feedback socket: " & LastException)
End If
End Sub
how to fix this error?