abangv commented on issue #17542:
URL:
https://github.com/apache/dolphinscheduler/issues/17542#issuecomment-3681250341
当启动api-server时登录页面提示资源为空,后端报错:
`java.lang.NullPointerException: null
at
org.apache.dolphinscheduler.api.service.impl.ResourcesServiceImpl.queryResourceBaseDir(ResourcesServiceImpl.java:402)`
是因为, Bean StorageOperator storageOperator is null;
查询后台日志关键原因是:读取common.properties 文件被覆盖
<img width="1078" height="482" alt="Image"
src="https://github.com/user-attachments/assets/ff786dbe-d86a-47fc-ac3f-c3dc22ae3397"
/>
`2025-12-22 17:01:31.950 INFO [main]
o.a.d.c.c.ImmutablePropertyDelegate:[43] - Creating ImmutablePropertyDelegate
propertyAbsolutePath =[/common.properties]
2025-12-22 17:01:31.950 DEBUG [main]
o.a.d.c.c.ImmutablePropertyDelegate:[80] - Get property ParameterIsNull -> The
parameter "{0}" is null.
2025-12-22 17:01:31.951 DEBUG [main]
o.a.d.c.c.ImmutablePropertyDelegate:[80] - Get property EncodingFailed ->
Encoding failed due to: {0}
2025-12-22 17:01:31.951 DEBUG [main]
o.a.d.c.c.ImmutablePropertyDelegate:[80] - Get property FailedToParseResponse
-> Failed to parse the response result.
2025-12-22 17:01:31.951 DEBUG [main]
o.a.d.c.c.ImmutablePropertyDelegate:[80] - Get property ParameterStringIsEmpty
-> The parameter "{0}" is a zero-length string.
2025-12-22 17:01:31.952 DEBUG [main]
o.a.d.c.c.ImmutablePropertyDelegate:[80] - Get property ConnectionError ->
Connection error due to: {0}
2025-12-22 17:01:31.952 DEBUG [main]
o.a.d.c.c.ImmutablePropertyDelegate:[80] - Get property ParameterIsInvalid ->
The parameter "{0}" is invalid.
2025-12-22 17:01:31.952 DEBUG [main]
o.a.d.c.c.ImmutablePropertyDelegate:[80] - Get property
ServerReturnsUnknownError -> The server returns an unknown error.`
推荐修改
1、dolphinscheduler\dolphinscheduler-common\src\main\resources\common.properties
->dolphinscheduler-common.properties
2、dolphinschedule\dolphinscheduler-common\src\main\java\org\apache\dolphinscheduler\common\constants
`public static final String COMMON_PROPERTIES_PATH =
"/dolphinscheduler-common.properties";`
3、dolphinscheduler\dolphinscheduler-common\src\main\java\org\apache\dolphinscheduler\common\config
` private static final String COMMON_PROPERTIES_NAME =
"/dolphinscheduler-common.properties";`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]