This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a15696e25b Adding error code 0-3, and optimize intro.md。 (#1460)
3a15696e25b is described below

commit 3a15696e25bb1eae9bb32f7259d2910bd9adc46d
Author: Andy Cheung <[email protected]>
AuthorDate: Sat Sep 3 13:52:27 2022 +0800

    Adding error code 0-3, and optimize intro.md。 (#1460)
---
 content/zh/docs3-v2/java-sdk/faq/0/3.md   | 34 +++++++++++++++++++++++++++++++
 content/zh/docs3-v2/java-sdk/faq/intro.md |  3 +--
 2 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/content/zh/docs3-v2/java-sdk/faq/0/3.md 
b/content/zh/docs3-v2/java-sdk/faq/0/3.md
new file mode 100644
index 00000000000..3afcbe3df90
--- /dev/null
+++ b/content/zh/docs3-v2/java-sdk/faq/0/3.md
@@ -0,0 +1,34 @@
+---
+type: docs
+title: "0-3 - 无法访问缓存路径"
+linkTitle: "0-3 - 无法访问缓存路径"
+weight: 3
+---
+
+其它模块复用了 Common 层的基于文件的缓存机制(目前是元数据模块),而 Common 层的文件缓存机制无法访问它指定的目录。
+显示的例子如下:
+
+```
+2022-08-29 00:35:00,189 ERROR 
[org.apache.dubbo.common.cache.FileCacheStoreFactory:?] -  [DUBBO] Cache store 
path can't be created: , dubbo version: , current host: 10.0.1.1, error code: 
0-3. This may be caused by inaccessible of cache path, go to 
https://dubbo.apache.org/faq/0/3 to find instructions. 
+java.nio.file.FileAlreadyExistsException: [Path]
+       at 
java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:87)
+       at 
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
+       at 
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
+       at 
java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:521)
+       at java.base/java.nio.file.Files.createDirectory(Files.java:700)
+       at 
java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:807)
+       at java.base/java.nio.file.Files.createDirectories(Files.java:753)
+       at 
org.apache.dubbo.common.cache.FileCacheStoreFactory.getInstance(FileCacheStoreFactory.java:90)
+       ...
+```
+
+## 可能的原因
+1. 多个 Dubbo 进程(或其他 Java 进程)使用了同一个缓存文件。
+2. 由于缓存文件所在目录的文件系统权限问题,导致读写失败。
+
+## 排查和解决步骤
+1. 根据下面显示的实际异常找到访问不了的目录,确定下它的文件访问权限。
+2. 确定下是否有别的 Dubbo 实例正在访问这个路径。 
+3. 尝试配置 **Java System Property(用 -D 配置的 Java 系统属性)** 
`dubbo.meta.cache.filePath` 和 
`dubbo.mapping.cache.filePath`,将它指定成一个当前用户能够完全控制的目录下。
+
+<p style="margin-top: 3rem;"> </p>
\ No newline at end of file
diff --git a/content/zh/docs3-v2/java-sdk/faq/intro.md 
b/content/zh/docs3-v2/java-sdk/faq/intro.md
index 645c17cc4a7..bf2254180ee 100644
--- a/content/zh/docs3-v2/java-sdk/faq/intro.md
+++ b/content/zh/docs3-v2/java-sdk/faq/intro.md
@@ -1,4 +1,3 @@
-
 ---
 type: docs
 title: "错误码机制的介绍"
@@ -34,7 +33,7 @@ void warn(String code, String cause, String 
extendedInformation, String msg);
 void warn(String code, String cause, String extendedInformation, String msg, 
Throwable e);
 ```
 
-其中 code 指错误码,cause 指可能的原因(即 caused by...),extendedInformation 作为补充信息。
+其中 code 指错误码,cause 指可能的原因(即 caused by... 后面所接的文字),extendedInformation 
作为补充信息,直接附加在 caused by 这句话的后面。
 
 对于 error 级别也做了相同的扩展。
 

Reply via email to