Suspend validation

本文介绍了一种在Buildworkspace过程中遇到的XML Schema验证错误及其解决方案。错误涉及元素声明及Schema文档读取问题,通过禁用验证再手动执行解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Build workspace 的时候,出现如下错误。

 

-----------------------------------------------------------------

Multiple annotations found at this line:

- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'ha:converter-chain'.

- schema_reference.4: Failed to read schema document 'http://www.hsbc.com/schema/esf-hostadapter/converter-1.0.0/

hostadapter_converter_config.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not 

<xsd:schema>.

-----------------------------------------------------------------

 

之前以为网络问题,将 Network connections 改为 Native。之后发现还是不行。

 

Solution: Suspend validation, and then right click the project, select "Validate". then solved.

@echo off rem @echo %cd% rem @echo %~d0 rem @echo %~dp0 rem @echo %~df0 set CAF_BOOT_HOME=%~dp0 rem set JAVA_HOME_PR=%~dp0jstack echo CAF_BOOT_HOME: %CAF_BOOT_HOME% echo %1 echo %2 set MD_BOOT_ARCH=%PROCESSOR_ARCHITECTURE% rem @echo %MD_BOOT_ARCH% set MD_BOOT_OS_KERNEL=win rem @echo %MD_BOOT_OS_KERNEL% @REM ==== START VALIDATION ==== if not "%JAVA_HOME%" == "" goto OkJHome echo. echo Error: JAVA_HOME not found in your environment. >&2 echo Please set the JAVA_HOME variable in your environment to match the >&2 echo location of your Java installation. >&2 echo. goto error :error set ERROR_CODE=1 @REM Set JAVA_HOME=%JAVA_HOME_PR%\runtime\java\%MD_BOOT_ARCH%-%MD_BOOT_OS_KERNEL% :OkJHome echo Checking java home: %JAVA_HOME% if exist "%JAVA_HOME%\bin\java.exe" goto doJob :doJob @setlocal enabledelayedexpansion for /r "%CAF_BOOT_HOME%\" %%k in (lcm-metadata-shell*.jar) do ( @set MD_BOOTSTRAP="%%k" ) echo Checking MD bootstrap: %MD_BOOTSTRAP% echo "%JAVA_HOME%\bin\java" -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar %MD_BOOTSTRAP% "%*" "%JAVA_HOME%\bin\java" -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -Dloader.path="%CAF_BOOT_HOME%server\runtime\libs\" -jar %MD_BOOTSTRAP% "%*" 和@echo off rem @echo %cd% rem @echo %~d0 rem @echo %~dp0 rem @echo %~df0 set CAF_BOOT_HOME=%~dp0 rem set JAVA_HOME_PR=%~dp0jstack echo CAF_BOOT_HOME: %CAF_BOOT_HOME% echo %1 echo %2 set MD_BOOT_ARCH=%PROCESSOR_ARCHITECTURE% rem @echo %MD_BOOT_ARCH% set MD_BOOT_OS_KERNEL=win rem @echo %MD_BOOT_OS_KERNEL% @REM ==== START VALIDATION ==== if not "%JAVA_HOME%" == "" goto OkJHome echo. echo Error: JAVA_HOME not found in your environment. >&2 echo Please set the JAVA_HOME variable in your environment to match the >&2 echo location of your Java installation. >&2 echo. goto error :error set ERROR_CODE=1 @REM Set JAVA_HOME=%JAVA_HOME_PR%\runtime\java\%MD_BOOT_ARCH%-%MD_BOOT_OS_KERNEL% :OkJHome echo Checking java home: %JAVA_HOME% if exist "%JAVA_HOME%\bin\java.exe" goto doJob :doJob @setlocal enabledelayedexpansion for /r "%CAF_BOOT_HOME%\" %%k in (lcm-metadata-shell*.jar) do ( @set MD_BOOTSTRAP="%%k" ) echo Checking MD bootstrap: %MD_BOOTSTRAP% echo "%JAVA_HOME%\bin\java" -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar %MD_BOOTSTRAP% "%*" "%JAVA_HOME%\bin\java" -Dloader.path="%CAF_BOOT_HOME%server\runtime\libs\" -jar %MD_BOOTSTRAP% "%*" 的区别
03-08
static int drv_cmd_set_suspend_mode(struct wlan_hdd_link_info *link_info, 3270 struct hdd_context *hdd_ctx, 3271 uint8_t *command, 3272 uint8_t command_len, 3273 struct hdd_priv_data *priv_data) 3274 { 3275 struct hdd_adapter *adapter = link_info->adapter; 3276 int errno; 3277 uint8_t *value = command; 3278 QDF_STATUS status; 3279 uint8_t idle_monitor; 3280 struct wlan_objmgr_vdev *vdev; 3281 3282 if (QDF_STA_MODE != adapter->device_mode) { 3283 hdd_debug("Non-STA interface"); 3284 return 0; 3285 } 3286 3287 /* Move pointer to ahead of SETSUSPENDMODE<delimiter> */ 3288 value = value + SIZE_OF_SETSUSPENDMODE + 1; 3289 3290 /* Convert the value from ascii to integer */ 3291 errno = kstrtou8(value, 10, &idle_monitor); 3292 if (errno < 0) { 3293 /* 3294 * If the input value is greater than max value of datatype, 3295 * then also kstrtou8 fails 3296 */ 3297 hdd_err("Range validation failed"); 3298 return -EINVAL; 3299 } 3300 3301 hdd_debug("idle_monitor:%d, configure apf per screen state = %d", 3302 idle_monitor, 3303 ucfg_pmo_is_configure_apf_per_screen_state(hdd_ctx->psoc)); 3304 3305 if (sme_get_dhcp_status(hdd_ctx->mac_handle, link_info->vdev_id)) { 3306 hdd_nofl_debug("DHCP in progress. Ignore SETSUSPEND command"); 3307 return 0; 3308 } 3309 3310 if (ucfg_pmo_is_configure_apf_per_screen_state(hdd_ctx->psoc)) { 3311 if (idle_monitor == 0) { 3312 hdd_disable_active_apf_mode(link_info); 3313 adapter->enable_active_apf_mode = false; 3314 } else if (idle_monitor == 1) { 3315 vdev = hdd_objmgr_get_vdev_by_user(link_info, 3316 WLAN_OSIF_ID); 3317 if (!vdev) { 3318 hdd_err("vdev is NULL"); 3319 return -EINVAL; 3320 } 3321 3322 if (ucfg_cm_is_vdev_connected(vdev)) { 3323 hdd_enable_active_apf_mode(link_info); 3324 adapter->enable_active_apf_mode = false; 3325 } else { 3326 hdd_debug("vdev:%d not in connected state", 3327 link_info->vdev_id); 3328 adapter->enable_active_apf_mode = true; 3329 } 3330 3331 hdd_objmgr_put_vdev_by_user(vdev, WLAN_OSIF_ID); 3332 } 3333 } 3334 3335 status = ucfg_pmo_tgt_psoc_send_idle_roam_suspend_mode(hdd_ctx->psoc, 3336 idle_monitor); 3337 if (QDF_IS_STATUS_ERROR(status)) { 3338 hdd_debug("Send suspend mode to fw failed"); 3339 return -EINVAL; 3340 } 3341 return 0; 3342 }解析一下这段Java代码,分析并添加详细注释
最新发布
06-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值