B4J Question B4J SERVER - WARN:oejuts.EatWhatYouKill

Douglas Farias

Expert
Licensed User
Longtime User
Hello everybody.
Every day I get errors like this, it doesn't cause a crash but it keeps generating logs. I would like to understand about the cause, and how I could fix this problem, any tip is welcome, I really don't know the cause of the problem.

Logs
2021-04-18 01:10:58.102:WARN:eek:ejuts.EatWhatYouKill:qtp1585787493-2227:
java.lang.IllegalStateException
at org.eclipse.jetty.alpn.server.ALPNServerConnection.select(ALPNServerConnection.java:87)
at org.eclipse.jetty.alpn.java.server.JDK9ServerALPNProcessor$ALPNCallback.apply(JDK9ServerALPNProcessor.java:74)
at org.eclipse.jetty.alpn.java.server.JDK9ServerALPNProcessor$ALPNCallback.apply(JDK9ServerALPNProcessor.java:59)
at java.base/sun.security.ssl.AlpnExtension$SHAlpnProducer.produce(AlpnExtension.java:378)
at java.base/sun.security.ssl.SSLExtension.produce(SSLExtension.java:532)
at java.base/sun.security.ssl.SSLExtensions.produce(SSLExtensions.java:228)
at java.base/sun.security.ssl.ServerHello$T12ServerHelloProducer.produce(ServerHello.java:363)
at java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:436)
at java.base/sun.security.ssl.ClientHello$T12ClientHelloConsumer.consume(ClientHello.java:1101)
at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:851)
at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:810)
at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1065)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1052)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:999)
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:775)
at org.eclipse.jetty.server.NegotiatingServerConnection.fill(NegotiatingServerConnection.java:153)
at org.eclipse.jetty.server.NegotiatingServerConnection.onFillable(NegotiatingServerConnection.java:98)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)
at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)
at java.base/java.lang.Thread.run(Thread.java:834)
2021-04-18 01:10:58.416:WARN:eek:ejuts.EatWhatYouKill:qtp1585787493-2204:
java.lang.IllegalStateException
at org.eclipse.jetty.alpn.server.ALPNServerConnection.select(ALPNServerConnection.java:87)
at org.eclipse.jetty.alpn.java.server.JDK9ServerALPNProcessor$ALPNCallback.apply(JDK9ServerALPNProcessor.java:74)
at org.eclipse.jetty.alpn.java.server.JDK9ServerALPNProcessor$ALPNCallback.apply(JDK9ServerALPNProcessor.java:59)
at java.base/sun.security.ssl.AlpnExtension$SHAlpnProducer.produce(AlpnExtension.java:378)
at java.base/sun.security.ssl.SSLExtension.produce(SSLExtension.java:532)
at java.base/sun.security.ssl.SSLExtensions.produce(SSLExtensions.java:228)
at java.base/sun.security.ssl.ServerHello$T12ServerHelloProducer.produce(ServerHello.java:363)
at java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:436)
at java.base/sun.security.ssl.ClientHello$T12ClientHelloConsumer.consume(ClientHello.java:1101)
at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:851)
at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:810)
at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1065)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1052)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:999)
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:775)
at org.eclipse.jetty.server.NegotiatingServerConnection.fill(NegotiatingServerConnection.java:153)
at org.eclipse.jetty.server.NegotiatingServerConnection.onFillable(NegotiatingServerConnection.java:98)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)
at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)
at java.base/java.lang.Thread.run(Thread.java:834)

I'm using http2, just like the @Erel tutorial.

srvr.Http2Enabled = True
ConfigureSSL (443)


B4X:
srvr.Http2Enabled = True
ConfigureSSL (443)


Private Sub ConfigureSSL (SslPort As Int)
    Dim ssl As SslConfiguration
    ssl.Initialize
    ssl.SetKeyStorePath(File.DirApp, "key.keystore")
    ssl.KeyStorePassword = "dasdasdsd"
    ssl.KeyManagerPassword = "dasdasdsd"
    srvr.SetSslConfiguration(ssl, SslPort)
    srvr.AddFilter("/*", "HttpsFilter", False)
End Sub

Public Sub Filter(req As ServletRequest, resp As ServletResponse) As Boolean
    If req.Secure Then
        Return True
    Else
        resp.SendRedirect(req.FullRequestURI.Replace("http:", "https:").Replace(Main.srvr.Port, Main.srvr.SslPort))
        Return False
    End If
End Sub

everything exactly as in the ssl and http2 tutorial.
the ssl certificate is valid and generated by the certbot website.

the jar is being compiled in java11 and i'm also running on vps using java11.
thank you all, any tip is welcome to find this error, remembering again, I have no problem accessing the site, I don't know exactly when this log happens, but every day this error is in the logs.

thxx all
 

Douglas Farias

Expert
Licensed User
Longtime User
Other than the logs, do you see any "real" errors?
Intermittent errors are expected as clients can disconnect during the handshake or while data is being sent.
Hello, how is everything?
No real errors, no crashes etc ... only these logs. what I sent above and some like these that I'm going to send now.
I believe that someone is using some kind of bot to make several requests on the site, I do not recognize these urls from the logs.

Is there a way to disable these warnings? or rather, do not show errors related to the client side, lose connection etc ...? leave only the important server-side logs?

I ask this because as I have a lot of accesses on this site, the logs are getting giant in size (mb / gb) (nohup.out)


2021-04-17 06:47:59.450:WARN:eek:eju.URIUtil:qtp1585787493-691: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:03.494:WARN:eek:eju.URIUtil:qtp1585787493-988: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:08.283:WARN:eek:eju.URIUtil:qtp1585787493-883: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:11.650:WARN:eek:eju.URIUtil:qtp1585787493-992: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:15.913:WARN:eek:eju.URIUtil:qtp1585787493-958: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:20.201:WARN:eek:eju.URIUtil:qtp1585787493-691: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:30.821:WARN:eek:eju.URIUtil:qtp1585787493-883: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:34.962:WARN:eek:eju.URIUtil:qtp1585787493-973: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:39.974:WARN:eek:eju.URIUtil:qtp1585787493-958: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
CurrentPoolConnections = 1 | MaxPoolConnections = 5000
2021-04-17 06:48:48.603:WARN:eek:eju.URIUtil:qtp1585787493-988: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:53.424:WARN:eek:eju.URIUtil:qtp1585787493-691: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:48:59.504:WARN:eek:eju.URIUtil:qtp1585787493-988: /santa-claus-clipart/qcsx820x1104pxsa%C2%97nta%C2%97-%E2D3%BFa%C2%9C%E2%81D3a%C2%97%C2%8B-santa-claus/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:13.781:WARN:eek:eju.URIUtil:qtp1585787493-968: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:18.642:WARN:eek:eju.URIUtil:qtp1585787493-988: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:24.896:WARN:eek:eju.URIUtil:qtp1585787493-958: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:28.467:WARN:eek:eju.URIUtil:qtp1585787493-981: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:31.542:WARN:eek:eju.URIUtil:qtp1585787493-691: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:36.463:WARN:eek:eju.URIUtil:qtp1585787493-994: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
CurrentPoolConnections = 1 | MaxPoolConnections = 5000
2021-04-17 06:49:46.239:WARN:eek:eju.URIUtil:qtp1585787493-994: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:50.325:WARN:eek:eju.URIUtil:qtp1585787493-958: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:54.922:WARN:eek:eju.URIUtil:qtp1585787493-883: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:49:59.511:WARN:eek:eju.URIUtil:qtp1585787493-981: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:50:03.449:WARN:eek:eju.URIUtil:qtp1585787493-883: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36
2021-04-17 06:50:07.188:WARN:eek:eju.URIUtil:qtp1585787493-958: /save-the-date-clipart/mzst8443x1104pixelssave-the-date-%E2D3%A2/feed/ org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! char appended in state 36


thank you!
 
Upvote 0
Top