我遇到 CubeMX 无法加载项目并且没有给出任何错误描述的问题。(见图片)
我使用 java 启动 exe 以获得更多信息,但出现此错误
- 2021-02-23 10:57:51,490 [ERROR] ThirdPartyModel:1012 -
- 2021-02-23 10:57:51,492 [FATAL] ProjectFactory:378 - Exception caught
- java.lang.NullPointerException
- at com.st.microxplorer.plugins.thirdparty.ThirdPartyIpManager.setIpMode(ThirdPartyIpManager.java:733)
- at com.st.microxplorer.plugins.thirdparty.ThirdPartyIpManager.updateModel(ThirdPartyIpManager.java:344)
- at com.st.microxplorer.plugins.thirdparty.ThirdPartyIpManager.updateModelDuringProjectLoad(ThirdPartyIpManager.java:311)
- at com.st.microxplorer.plugins.thirdparty.ThirdParty.mcuLoadStep1EventHandler(ThirdParty.java:724)
- at com.st.microxplorer.plugins.thirdparty.ThirdParty.propertyChange(ThirdParty.java:657)
- at java.beans.PropertyChangeSupport.fire(Unknown Source)
- at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
- at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
- at com.st.microxplorer.util.MXPropertyChangeSupport.firePropertyChange(MXPropertyChangeSupport.java:45)
- at com.st.microxplorer.mxsystem.MxSystem.firePropertyChange(MxSystem.java:326)
- at com.st.microxplorer.mcu.Mcu.loadConfProperties(Mcu.java:5899)
- at com.st.microxplorer.mxsystem.ProjectFactory.load(ProjectFactory.java:336)
- at com.st.microxplorer.mxsystem.ProjectFactory.startLoadConfig(ProjectFactory.java:149)
- at com.st.microxplorer.mxsystem.MxSystem.startLoadConfig(MxSystem.java:572)
- at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.LoadConfig(OpenFileManager.java:276)
- at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.loadConfigurationFile(OpenFileManager.java:203)
- at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.userChoiceLoadConfig(OpenFileManager.java:105)
- at com.st.microxplorer.plugins.filemanager.engine.MainFileManager.userChoiceAndLoadConfig(MainFileManager.java:183)
- at com.st.microxplorer.plugins.filemanager.FileManagerView$3.actionPerformed(FileManagerView.java:525)
- at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
- at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
- at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
- at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
- at javax.swing.AbstractButton.doClick(Unknown Source)
- at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
- at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
- at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
- at java.awt.Component.processMouseEvent(Unknown Source)
- at javax.swing.JComponent.processMouseEvent(Unknown Source)
- at java.awt.Component.processEvent(Unknown Source)
- at java.awt.Container.processEvent(Unknown Source)
- at java.awt.Component.dispatchEventImpl(Unknown Source)
- at java.awt.Container.dispatchEventImpl(Unknown Source)
- at java.awt.Component.dispatchEvent(Unknown Source)
- at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
- at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
- at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
- at java.awt.Container.dispatchEventImpl(Unknown Source)
- at java.awt.Window.dispatchEventImpl(Unknown Source)
- at java.awt.Component.dispatchEvent(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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
- at java.awt.EventQueue$4.run(Unknown Source)
- at java.awt.EventQueue$4.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)
我加载任何其他项目文件都没有问题。还在另一台机器上测试过,我遇到了同样的问题。