当前位置: 首页 > 工具软件 > AEA > 使用案例 >

jmeter-打开文件时报 Cannot read value = ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

咸弘雅
2023-12-01
Oct 27, 2021 10:25:50 AM sun.awt.shell.Win32ShellFolderManager2 get
WARNING: Cannot read value = ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{5FCD4425-CA3A-48F4-A57C-B8A75C32ACB1}
java.io.FileNotFoundException: File C:\apache-jmeter-5.4.1\apache-jmeter-5.4.1\bin\::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{5FCD4425-CA3A-48F4-A57C-B8A75C32ACB1} not found
        at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Unknown Source)
        at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Unknown Source)
        at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
        at sun.awt.shell.ShellFolder.get(Unknown Source)
        at sun.swing.WindowsPlacesBar.<init>(Unknown Source)
        at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder(Unknown Source)
        at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
        at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JFileChooser.updateUI(Unknown Source)
        at javax.swing.JFileChooser.setup(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at org.apache.jmeter.gui.util.FileDialoger.<clinit>(FileDialoger.java:42)
        at org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:75)
        at org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:44)
        at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87)
        at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

通过搜索,发现两种方案:

解决方案1:问题描述:更新了jer使得jdk和jer版本不一致,我确实符合这一条件,但是我不太想采用该方案
1.清除环境变量中关于jdk的配置;
2.卸载jdk,清除注册表数据,步骤网上都有,不在详述;
3.重新安装jdk;
4.重新配置jdk环境变量:JAVA_HOME 、PATH、CLASSPATH;
至此,启动jmeter,不在报错,问题解决。

解决方案2:问题描述:这是wps安装后生成的一个盘符路径,可能我之前什么时候删除了这玩意,所以注册表里有残留,我没有留意该功能,但是删除一个注册表相对来说很简单,少错了,也可以重新加上,于是采用了该方案

(这个是我搜索得到的注册表目录)打开注册表,进入  \HKEY_USERS\S-1-5-21-1421932679-3960869251-1570583358-1001\Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32\PlacesBar

(这个是我自己的注册表目录)HKEY_USERS\S-1-5-21-4156833342-559474915-284293801-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Comdlg32\PlacesBar

删除里面的一个包含 ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{5FCD4425-CA3A-48F4-A57C-B8A75C32ACB1} 的值,问题基本得到解决,如果还不行,尝试搜索整个注册表:5FCD4425-CA3A-48F4-A57C-B8A75C32ACB1,将搜索到的值都删除,至此强迫症得以治疗。

两个注册表有少许差异,至于为什么我目前不知道,后续在研究研究,最终解决了该问题
 

 类似资料: