Malformed argument has embedded quote: -Djava.endorsed.dirs=\“\“

本文记录了一次在IntelliJ IDEA中遇到的编译和启动项目时出现的错误现象及解决过程。错误提示涉及Java程序无法运行,通过排查发现安装QAPlus插件后导致此问题。最终通过修改idea64.exe.vmoptions文件添加特定参数解决了问题。

现象

  • 今天启动工程时,报下面错误信息
Cannot run program "C:\Program Files\Java\jdk1.8.0_311\bin\java.exe" 
(in directory "C:\Users\Administrator\AppData\Local\JetBrains\IdeaIC2021.2\compile-server")
: Malformed argument has embedded quote: -Djava.endorsed.dirs=\"\"

排查

回顾

之前一直好用,昨天在idea中安装:QAPlug插件,今天早晨到单位启动工程时报错,执行这两种操作都挂了

  • 执行IDEA的菜单项【Build】 -> 【Build Project】,报错,错误信息如上【现象】记述得错误日志
  • 尝试启动工程时也报错信息如上【现象】中记述得错误日志

之前一直都是能正常编译和启动项目。

解决

  • 确定问题方向:因为之前一致很正常,怀疑是昨天安装QAPlus插件导致的。

  • 百度:网上也有同学类似问题,也是因为安装QAPlus导致,参照解决方案进行尝试。

    • IDEA -> 菜单项:Help -> Edit Custom VM Options…

在这里插入图片描述

  • idea64.exe.vmoptions内容如下
-XX:ReservedCodeCacheSize=512m
-Xms128m
-Xmx2022m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-Djdk.lang.Process.allowAmbiguousCommands=true
  • 在末尾添加:-Djdk.lang.Process.allowAmbiguousCommands=true
-Djdk.lang.Process.allowAmbiguousCommands=true
  • 添加后如图所示

在这里插入图片描述

  • 重启IDEA
  • 再次编译或者启动工程,正常启动。
MOD_RRM_FDD, MOD_RRM_FDD_BASELINE_TRACE_ERROR_UH, [MS->NW] RR__ENHANCED_MEASUREMENT_REPORT Peer Message global_peer_msg_id = PROTOCOL_SECTION__RR_short_PD (enum 502) raw data = Buffer 0000 - 000F 10 6e 81 ff 85 42 54 dc f1 a3 80 00 00 00 00 00 0010 - 001F 00 00 00 00 00 Message Content GSM SACCH - Enhanced Measurement Report 0... .... = Radio Resources Short Protocol Discriminator: 0x00 .001 00.. = Radio Resources Short PD Message Type: Enhanced Measurement Report (0x04) .... ..00 = Radio Resources Short L2 Header: 0x00 0... .... = BA-USED: 0 .1.. .... = 3G-BA-USED: 1 ..1. .... = BSIC Seen: One Cell or more with invalid BSIC and allowed NCC part of BSIC is seen ...0 .... = Scale: 0 dB .... 1... = Serving cell data: Present Serving cell data .... .1.. = DTX-USED: DTX was used .... ..10 1000 .... = RXLEV-FULL-SERVING-CELL: -71 <= x < -70 dBm (40) .... 000. = RXQUAL-FULL-SERVING-CELL: BER < 0.2%, Mean value 0.14% (0) .... ...1 1111 .... = Mean BEP GMSK: log10(BEP) < -3.60 (31) .... 111. = CV BEP: 0.00 < CV BEP < 0.25 (7) .... ...1 1000 .... = Nb Rcvd Blocks: 24 .... 0... = Repeated Invalid BSIC Information: Not Present .... .1.. = Bitmap Type Reporting: Present Bitmap Type Reporting .... ..0. = Reporting Quantity: RSCP .... ...1 = Reporting Quantity: Ec/No Neighbour Cell List index: 1 0100 00.. = Reporting Quantity: 16 .... ..1. = Reporting Quantity: Ec/No Neighbour Cell List index: 2 .... ...0 0101 0... = Reporting Quantity: 10 .... .1.. = Reporting Quantity: Ec/No Neighbour Cell List index: 3 .... ..00 1101 .... = Reporting Quantity: 13 .... 1... = Reporting Quantity: Ec/No Neighbour Cell List index: 4 .... .100 111. .... = Reporting Quantity: 39 ...1 .... = Reporting Quantity: Ec/No Neighbour Cell List index: 5 .... 0001 10.. .... = Reporting Quantity: 6 ..1. .... = Reporting Quantity: Ec/No Neighbour Cell List index: 6 ...0 0011 1... .... = Reporting Quantity: 7 .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP 0... .... = Reporting Quantity: RSCP .0.. .... = Reporting Quantity: RSCP ..0. .... = Reporting Quantity: RSCP ...0 .... = Reporting Quantity: RSCP .... 0... = Reporting Quantity: RSCP .... .0.. = Reporting Quantity: RSCP .... ..0. = Reporting Quantity: RSCP .... ...0 = Reporting Quantity: RSCP [Malformed Packet: GSM SACCH] [Expert Info (Error/Malformed): Malformed Packet (Exception occurred)] [Malformed Packet (Exception occurred)] [Severity level: Error] [Group: Malformed] Lua Error: D:\elt2\QUEUE5~2\System\Bin\elt.lua:133: Dissector_call: Malformed frame [Expert Info (Error/Undecoded): Lua Error: D:\elt2\QUEUE5~2\System\Bin\elt.lua:133: Dissector_call: Malformed frame] [Lua Error: D:\elt2\QUEUE5~2\System\Bin\elt.lua:133: Dissector_call: Malformed frame] [Severity level: Error] [Group: Undecoded] TRACE_NAME, RR_MS_TO_NW_PEER_MSG_FDD
最新发布
09-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小码匠和老码农

喜欢作者

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值