This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 53659e7 Various i18n backports to better align 8.5.x with 9.0.x
onwards
53659e7 is described below
commit 53659e7720727e1c963ba40ff1a52a1a3d8f0dfc
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Feb 17 19:52:22 2022 +0000
Various i18n backports to better align 8.5.x with 9.0.x onwards
---
java/org/apache/tomcat/util/net/AbstractEndpoint.java | 2 +-
java/org/apache/tomcat/util/net/AprEndpoint.java | 3 +--
java/org/apache/tomcat/util/net/LocalStrings.properties | 6 ++++++
java/org/apache/tomcat/util/net/LocalStrings_de.properties | 1 +
java/org/apache/tomcat/util/net/LocalStrings_fr.properties | 6 ++++++
java/org/apache/tomcat/util/net/LocalStrings_ja.properties | 6 ++++++
java/org/apache/tomcat/util/net/LocalStrings_ko.properties | 6 ++++++
.../apache/tomcat/util/net/LocalStrings_zh_CN.properties | 6 ++++++
java/org/apache/tomcat/util/net/Nio2Endpoint.java | 4 ++--
java/org/apache/tomcat/util/net/NioEndpoint.java | 13 ++++++-------
10 files changed, 41 insertions(+), 12 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 6bcf693..18b7f94 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -1073,7 +1073,7 @@ public abstract class AbstractEndpoint<S,U> {
} catch(Throwable t) {
ExceptionUtils.handleThrowable(t);
if (getLog().isDebugEnabled()) {
- getLog().debug(sm.getString("endpoint.debug.unlock.fail", "" +
getPort()), t);
+ getLog().debug(sm.getString("endpoint.debug.unlock.fail",
String.valueOf(getPort())), t);
}
}
}
diff --git a/java/org/apache/tomcat/util/net/AprEndpoint.java
b/java/org/apache/tomcat/util/net/AprEndpoint.java
index 8b89f96..51de670 100644
--- a/java/org/apache/tomcat/util/net/AprEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AprEndpoint.java
@@ -799,8 +799,7 @@ public class AprEndpoint extends
AbstractEndpoint<Long,Long> implements SNICallB
getExecutor().execute(new SocketWithOptionsProcessor(wrapper));
}
} catch (RejectedExecutionException x) {
- log.warn("Socket processing request was rejected for:"+socket,x);
- return false;
+ log.warn(sm.getString("endpoint.rejectedExecution", socket), x);
} catch (Throwable t) {
ExceptionUtils.handleThrowable(t);
// This means we got an OOM or similar creating a thread, or that
diff --git a/java/org/apache/tomcat/util/net/LocalStrings.properties
b/java/org/apache/tomcat/util/net/LocalStrings.properties
index 06a9452..ced6b20 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings.properties
@@ -94,8 +94,10 @@ endpoint.jmxRegistrationFailed=Failed to register the JMX
object with name [{0}]
endpoint.jsse.cannotHonorServerCipherOrder=The Java Runtime does not support
"useServerCipherSuitesOrder" with JSSE. You must use OpenSSL or Java 8 onwards
to use this feature.
endpoint.jsse.noSslContext=No SSLContext could be found for the host name [{0}]
endpoint.launch.fail=Failed to launch new runnable
+endpoint.nio.keyProcessingError=Error processing selection key
endpoint.nio.registerFail=Failed to register socket with selector from poller
endpoint.nio.selectorCloseFail=Failed to close selector when closing the poller
+endpoint.nio.selectorLoopError=Error in selector loop
endpoint.nio.stopLatchAwaitFail=The pollers did not stop within the expected
time
endpoint.nio.stopLatchAwaitInterrupted=This thread was interrupted while
waiting for the pollers to stop
endpoint.nio.timeoutCme=Exception during processing of timeouts. The code has
been checked repeatedly and no concurrent modification has been found. If you
are able to repeat this error please open a Tomcat bug and provide the steps to
reproduce.
@@ -109,13 +111,17 @@ endpoint.poll.limitedpollsize=Failed to create poller
with specified size of [{0
endpoint.pollerThreadStop=The poller thread failed to stop in a timely manner
endpoint.process.fail=Error allocating socket processor
endpoint.processing.fail=Error running socket processor
+endpoint.rejectedExecution=Socket processing request was rejected for [{0}]
endpoint.removeDefaultSslHostConfig=The default SSLHostConfig (named [{0}])
may not be removed
endpoint.sendfile.addfail=Sendfile failure: [{0}] [{1}]
+endpoint.sendfile.closeError=Error closing sendfile resources
endpoint.sendfile.error=Unexpected sendfile error
+endpoint.sendfile.tooMuchData=Sendfile configured to send more data than was
available
endpoint.sendfileThreadStop=The sendfile thread failed to stop in a timely
manner
endpoint.serverSocket.closeFailed=Failed to close server socket for [{0}]
endpoint.setAttribute=Set [{0}] to [{1}]
endpoint.setAttributeError=Unable to set attribute [{0}] to [{1}]
+endpoint.socketOptionsError=Error setting socket options
endpoint.timeout.err=Error processing socket timeout
endpoint.unknownSslHostName=The SSL host name [{0}] is not recognised for this
endpoint
endpoint.warn.executorShutdown=The executor associated with thread pool [{0}]
has not fully shutdown. Some application threads may still be running.
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_de.properties
b/java/org/apache/tomcat/util/net/LocalStrings_de.properties
index 86c1d93..44e49bc 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_de.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_de.properties
@@ -31,6 +31,7 @@ endpoint.noSslHostName=Es wurde kein Hostname für die SSL
Host Konfiguration an
endpoint.poll.limitedpollsize=Konnte Poller mit der angegebenen Große von
[{0}] nicht erzeugen
endpoint.removeDefaultSslHostConfig=Die Standard SSLHostConfig (namens [{0}])
darf nicht entfernt werden
endpoint.sendfile.addfail=Sendfile-Fehler: [{0}][{1}]
+endpoint.sendfile.closeError=Fehler beim Schließen der sendfile Ressourcen
endpoint.sendfile.error=Unerwarteter sendfile-Fehler
endpoint.sendfileThreadStop=Der Sendfile Thread hat sich nicht rechtzeitig
beendet
endpoint.serverSocket.closeFailed=Konnte Server Socket für [{0}] nicht
schliessen
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_fr.properties
b/java/org/apache/tomcat/util/net/LocalStrings_fr.properties
index d45e8b6..15899bb 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_fr.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_fr.properties
@@ -90,8 +90,10 @@ endpoint.invalidJmxNameSslHostCert=Impossible de générer un
nom d''objet JMX v
endpoint.jmxRegistrationFailed=Echec de l''enregistrement JMX de l''objet avec
le nom [{0}]
endpoint.jsse.noSslContext=Aucun SSLContext n''a été trouvé pour le nom
d''hôte [{0}]
endpoint.launch.fail=Impossible de démarrer le nouvel exécutable
+endpoint.nio.keyProcessingError=Erreur lors du traitement de la clé de
sélection
endpoint.nio.registerFail=Echec d'enregistrement du socket avec le sélecteur
du poller
endpoint.nio.selectorCloseFail=Impossible de fermer le sélecteur lors de la
fermeture du poller
+endpoint.nio.selectorLoopError=Erreur dans la boucle du sélecteur
endpoint.nio.stopLatchAwaitFail=Les pollers ne se sont pas arrêtés dans le
temps imparti
endpoint.nio.stopLatchAwaitInterrupted=Ce thread a été interrompu pendant
qu'il attendait l'arrêt des scrutateurs ("pollers")
endpoint.nio.timeoutCme=Exception pendant le traitement du délai d'attente
maximum ; le code a été vérifié de manière répétée et aucune modification
concurrence n'a pu être trouvée, si vous obtenez cette erreur de manière
reproductible merci d'ouvrir un rapport d'erreur sur Tomcat en fournissant les
informations pour la reproduire
@@ -105,13 +107,17 @@ endpoint.poll.limitedpollsize=Echec de création d''un
poller avec la taille sp
endpoint.pollerThreadStop=Le thread du poller ne s'est pas arrêté dans le
temps imparti
endpoint.process.fail=Erreur lors de l'allocation d'un processeur de socket
endpoint.processing.fail=Erreur lors de l’exécution du processeur du socket
+endpoint.rejectedExecution=Le traitement du socket a été rejeté pour [{0}]
endpoint.removeDefaultSslHostConfig=Le SSLHostConfig par défaut (de nom [{0}])
ne peut pas être retiré
endpoint.sendfile.addfail=Echec de Sendfile : [{0}] [{1}]
+endpoint.sendfile.closeError=Erreur lors de la fermeture des ressources de
sendfile
endpoint.sendfile.error=Erreur lors de sendfile
+endpoint.sendfile.tooMuchData=Sendfile a été configuré pour envoyer plus de
données que ce qui était disponible
endpoint.sendfileThreadStop=Le thread "sendfile" ne s'est pas arrêté endéans
le temps imparti
endpoint.serverSocket.closeFailed=Le socket serveur [{0}] n''a pas pu être
fermé
endpoint.setAttribute=Met [{0}] à [{1}]
endpoint.setAttributeError=Impossible de définir l''attribut [{0}] en [{1}]
+endpoint.socketOptionsError=Erreur en définissant les options du socket
endpoint.timeout.err=Erreur en traitant le dépassement de temps d'attente du
socket
endpoint.unknownSslHostName=Le nom d''hôte SSL [{0}] n''est pas reconnu pour
cette terminaison
endpoint.warn.executorShutdown=L''exécuteur associé au pool de threads [{0}]
n''est pas complètement arrêté, certains threads d''application peuvent
toujours être en cours d''exécution
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_ja.properties
b/java/org/apache/tomcat/util/net/LocalStrings_ja.properties
index 1529775..f9b4e8b 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_ja.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_ja.properties
@@ -90,8 +90,10 @@ endpoint.invalidJmxNameSslHostCert=ホスト名 [{0}]、証明書タイプ [{1}]
endpoint.jmxRegistrationFailed=名前 [{0}] の JMX オブジェクトを登録できませんでした。
endpoint.jsse.noSslContext=ホスト名[{0}]のSSLContextが見つかりませんでした
endpoint.launch.fail=new Runnableの起動に失敗しました
+endpoint.nio.keyProcessingError=選択キー処理中のエラー
endpoint.nio.registerFail=Pollerからソケットのセレクタに登録できませんでした。
endpoint.nio.selectorCloseFail=Pollerを閉じるときにセレクターを閉じることができませんでした。
+endpoint.nio.selectorLoopError=セレクタの処理ループ中のエラー
endpoint.nio.stopLatchAwaitFail=Pollerは予想された時間内に止まりませんでした
endpoint.nio.stopLatchAwaitInterrupted=このスレッドはPollerが停止するのを待つ間に中断されました
endpoint.nio.timeoutCme=タイムアウトの処理中の例外。 コードは繰り返しチェックされており、同時に変更されていません。
このエラーを繰り返すことができる場合は、Tomcatのバグを開いて、再現手順を提示してください。
@@ -105,13 +107,17 @@ endpoint.poll.limitedpollsize=サイズ [{0}] の Poller インスタンスを
endpoint.pollerThreadStop=時間内にPoller スレッドを停止できませんでした。
endpoint.process.fail=ソケットプロセッサーの割り当て中にエラーが発生しました。
endpoint.processing.fail=ソケットプロセッサの実行中エラー
+endpoint.rejectedExecution=[{0}]のため、ソケット処理要求が拒否されました。
endpoint.removeDefaultSslHostConfig=既定のSSLHostConfig([{0}])は削除できません
endpoint.sendfile.addfail=Sendfile 失敗: [{0}] [{1}]
+endpoint.sendfile.closeError=sendfileリソースのクローズ中のエラー
endpoint.sendfile.error=予期せぬ sendfile エラー
+endpoint.sendfile.tooMuchData=利用可能以上のデータを送信するようにSendfileが構成されています。
endpoint.sendfileThreadStop=ファイル送信スレッドは時間内に停止できませんでした。
endpoint.serverSocket.closeFailed=[{0}] によりサーバーソケットの切断に失敗しました。
endpoint.setAttribute=[{0}]を[{1}]に設定
endpoint.setAttributeError=属性 [{0}] に [{1}] を設定できません。
+endpoint.socketOptionsError=ソケットオプション設定中のエラー
endpoint.timeout.err=ソケットタイムアウト処理中のエラー
endpoint.unknownSslHostName=SSL ホスト名 [{0}] はこのエンドポイントから認識されていません。
endpoint.warn.executorShutdown=スレッドプール [{0}]
と関連付けられたエグゼキューターは完全に停止できませんでした。いくつかのアプリケーションスレッドはまだ動作し続けている可能性があります。
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_ko.properties
b/java/org/apache/tomcat/util/net/LocalStrings_ko.properties
index 3b683c1..b49e7e5 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_ko.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_ko.properties
@@ -90,8 +90,10 @@ endpoint.invalidJmxNameSslHostCert=호스트가 [{0}]이고 인증서 타입이
endpoint.jmxRegistrationFailed=JMX 객체를 [{0}](이)라는 이름으로 등록시키지 못했습니다.
endpoint.jsse.noSslContext=호스트 이름 [{0}]을(를) 위한 SSLContext를 찾을 수 없습니다.
endpoint.launch.fail=새로운 Runnable을 시작하지 못했습니다.
+endpoint.nio.keyProcessingError=Selection 키를 처리 중 오류 발생
endpoint.nio.registerFail=Poller로부터의 selector와 함께, 소켓을 등록하지 못했습니다.
endpoint.nio.selectorCloseFail=Poller를 닫을 때, selector를 닫지 못했습니다.
+endpoint.nio.selectorLoopError=Selector 루프 내에서 오류 발생
endpoint.nio.stopLatchAwaitFail=Poller들이 요구되는 시간 내에 중지되지 않았습니다.
endpoint.nio.stopLatchAwaitInterrupted=이 쓰레드는 poller들이 중지되기를 기다리는 동안 중단되었습니다.
endpoint.nio.timeoutCme=제한 시간 초과들을 처리하는 동안 예외 발생. 해당 코드는 반복해서 점검되어 왔고
ConcurrentModificationException이 발생하지 않아 왔습니다. 이 오류를 재현할 수 있다면, Tomcat 버그 티켓을
여시고 오류 재현 과정들을 제공해 주십시오.
@@ -105,13 +107,17 @@ endpoint.poll.limitedpollsize=지정된 크기 [{0}]로 poller를 생성하지
endpoint.pollerThreadStop=Poller 쓰레드가 적절한 시간 내에 중지되지 못했습니다.
endpoint.process.fail=소켓 프로세서를 할당하는 중 오류 발생
endpoint.processing.fail=소켓 프로세서 실행 중 오류 발생
+endpoint.rejectedExecution=[{0}]을(를) 위한 소켓 처리 요청이 거절되었습니다.
endpoint.removeDefaultSslHostConfig=기본 SSLHostConfig(이름: [{0}])는 제거될 수 없습니다.
endpoint.sendfile.addfail=Sendfile 실패: [{0}] [{1}]
+endpoint.sendfile.closeError=sendfile 리소스들을 닫는 중 오류 발생
endpoint.sendfile.error=예기치 않은 sendfile 오류
+endpoint.sendfile.tooMuchData=가용한 데이터보다 더 많은 데이터를 전송하도록, Sendfile이 설정되었습니다.
endpoint.sendfileThreadStop=sendfile 쓰레드가 정해진 시간 내에 종료되지 못했습니다.
endpoint.serverSocket.closeFailed=엔드포인트 [{0}]을(를) 위한 서버 소켓을 닫지 못했습니다.
endpoint.setAttribute=[{1}]에 [{0}]을(를) 설정합니다.
endpoint.setAttributeError=속성 [{0}]을(를) [{1}](으)로 설정할 수 없습니다.
+endpoint.socketOptionsError=소켓 옵션들을 설정하는 중 오류 발생
endpoint.timeout.err=소켓 제한 시간 초과 처리 중 오류 발생
endpoint.unknownSslHostName=SSL 호스트 이름 [{0}]은(는), 이 엔드포인트를 위해 인식되지 않는 이름입니다.
endpoint.warn.executorShutdown=쓰레드 풀 [{0}]와(과) 연관된 해당 Executor는 완전히 종료되지
않았습니다. 일부 애플리케이션 쓰레드들이 여전히 실행 중일 수 있습니다.
diff --git a/java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties
b/java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties
index 57492c0..82cc811 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings_zh_CN.properties
@@ -90,8 +90,10 @@
endpoint.invalidJmxNameSslHostCert=对于SSLHostConfigCertificate关联的主机
endpoint.jmxRegistrationFailed=未能使用名称[{0}]注册JMX对象
endpoint.jsse.noSslContext=):找不到主机名[{0}]的SSLContext
endpoint.launch.fail=无法启动新的可运行文件
+endpoint.nio.keyProcessingError=处理选择键时出错
endpoint.nio.registerFail=无法用轮询器中的选择器注册套接字。
endpoint.nio.selectorCloseFail=关闭轮询器时未能关闭选择器
+endpoint.nio.selectorLoopError=选择器循环出错
endpoint.nio.stopLatchAwaitFail=在预期的时间内,pollers未停止
endpoint.nio.stopLatchAwaitInterrupted=在等待轮询器停止时,该线程被中断
endpoint.nio.timeoutCme=处理超时异常. 这段代码已经被重复检查并且没有并发修改发现。如果你能重现这个错误,请提交一个tomcat
bug, 提供重现步骤.
@@ -105,13 +107,17 @@ endpoint.poll.limitedpollsize=创建轮询器失败,大小:[{0}]
endpoint.pollerThreadStop=轮询线程未能及时停止。
endpoint.process.fail=分配 socket 处理器出错
endpoint.processing.fail=运行.套接字处理器出错
+endpoint.rejectedExecution=[{0}]的套接字处理请求被拒绝
endpoint.removeDefaultSslHostConfig=默认SSLHostConfig(名为[{0}])可能未被移除
endpoint.sendfile.addfail=发送文件(Sendfile)失败: [{0}] [{1}]
+endpoint.sendfile.closeError=关闭发送文件资源时出错
endpoint.sendfile.error=未知的sendfile异常。
+endpoint.sendfile.tooMuchData=Sendfile配置为发送比可用数据更多的数据
endpoint.sendfileThreadStop=sendfile线程无法及时停止
endpoint.serverSocket.closeFailed=无法为 [{0}] 关闭服务器 socket
endpoint.setAttribute=设置. [{0}] 到 [{1}]
endpoint.setAttributeError=无法将属性[{0}]设置为[{1}]
+endpoint.socketOptionsError=设置套接字选项时出错
endpoint.timeout.err=处理套接字超时出错
endpoint.unknownSslHostName=此终结点无法识别SSL主机名[{0}]
endpoint.warn.executorShutdown=与线程池[{0}]关联的执行程序尚未完全关闭。 某些应用程序线程可能仍在运行。
diff --git a/java/org/apache/tomcat/util/net/Nio2Endpoint.java
b/java/org/apache/tomcat/util/net/Nio2Endpoint.java
index da1083b..a32f636 100644
--- a/java/org/apache/tomcat/util/net/Nio2Endpoint.java
+++ b/java/org/apache/tomcat/util/net/Nio2Endpoint.java
@@ -941,7 +941,7 @@ public class Nio2Endpoint extends
AbstractJsseEndpoint<Nio2Channel,AsynchronousS
} catch (Throwable e) {
ExceptionUtils.handleThrowable(e);
if (log.isDebugEnabled()) {
- log.error("Channel close error", e);
+ log.error(sm.getString("endpoint.debug.channelCloseFail"),
e);
}
}
try {
@@ -952,7 +952,7 @@ public class Nio2Endpoint extends
AbstractJsseEndpoint<Nio2Channel,AsynchronousS
} catch (Throwable e) {
ExceptionUtils.handleThrowable(e);
if (log.isDebugEnabled()) {
- log.error("Channel close error", e);
+ log.error(sm.getString("endpoint.sendfile.closeError"), e);
}
}
}
diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java
b/java/org/apache/tomcat/util/net/NioEndpoint.java
index 5b45dac..62471d9 100644
--- a/java/org/apache/tomcat/util/net/NioEndpoint.java
+++ b/java/org/apache/tomcat/util/net/NioEndpoint.java
@@ -453,7 +453,7 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
} catch (Throwable t) {
ExceptionUtils.handleThrowable(t);
try {
- log.error("",t);
+ log.error(sm.getString("endpoint.socketOptionsError"), t);
} catch (Throwable tt) {
ExceptionUtils.handleThrowable(tt);
}
@@ -885,7 +885,7 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
} catch (Throwable e) {
ExceptionUtils.handleThrowable(e);
if (log.isDebugEnabled()) {
- log.error("",e);
+ log.error(sm.getString("endpoint.debug.channelCloseFail"),
e);
}
}
return ka;
@@ -927,7 +927,7 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
}
} catch (Throwable x) {
ExceptionUtils.handleThrowable(x);
- log.error("",x);
+ log.error(sm.getString("endpoint.nio.selectorLoopError"),
x);
continue;
}
// Either we timed out or we woke up, process events first
@@ -992,7 +992,7 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
cancelledKey(sk);
} catch (Throwable t) {
ExceptionUtils.handleThrowable(t);
- log.error("",t);
+ log.error(sm.getString("endpoint.nio.keyProcessingError"), t);
}
}
@@ -1035,8 +1035,7 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
// Unusual not to be able to transfer any bytes
// Check the length was set correctly
if (sd.fchannel.size() <= sd.pos) {
- throw new IOException("Sendfile configured to " +
- "send more data than was available");
+ throw new
IOException(sm.getString("endpoint.sendfile.tooMuchData"));
}
}
}
@@ -1100,7 +1099,7 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
}
return SendfileState.ERROR;
} catch (Throwable t) {
- log.error("", t);
+ log.error(sm.getString("endpoint.sendfile.error"), t);
if (!calledByProcessor && sc != null) {
close(sc, sk);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]