Press 'import data' button, there came "uiimport error"
7 views (last 30 days)
Show older comments
when I press the "import data" in the UI, there came an error as following:
error using uiimport (line 145)
Java exception occurred:
java.lang.NullPointerException
at java.util.Collections.addAll(Collections.java:5400)
at com.mathworks.mlwidgets.workspace.ImportFileChooser.setupExtensionsForDropDown(ImportFileChooser.java:47)
when i input "uiimport" in the command window, there came the warnings and errors as following(my matlab is Chinese version):
警告: 执行 'multimedia.internal.audio.file.PluginManager' 类析构函数时,捕获到以下错误:
MEX 文件 'D:\matlab2018\toolbox\shared\multimedia\+multimedia\+internal\+audio\+file\private\mexAudioPluginManager.mexw64' 无效: 缺少依赖共享库:
'D:\matlab2018/bin/win64\avfileiopluginmanager.dll->D:\matlab2018\toolbox\shared\multimedia\+multimedia\+internal\+audio\+file\private\mexAudioPluginManager.mexw64' 需要 'tamutil.dll'
'D:\matlab2018\toolbox\shared\multimedia\+multimedia\+internal\+audio\+file\private\mexAudioPluginManager.mexw64' 需要 'tamutil.dll'。
出错 multimedia.internal.audio.file.PluginManager/delete (line 159)
mexAudioPluginManager('destroyPluginManager');
出错 multimedia.internal.audio.file.PluginManager (line 164)
function obj = PluginManager
出错 multimedia.internal.audio.file.PluginManager.getInstance (line 248)
localInstance = multimedia.internal.audio.file.PluginManager();
出错 internal.matlab.importtool.ImportableFileExtension>localAudioExtn (line 118)
fileExtTmp = multimedia.internal.audio.file.PluginManager.getInstance.ReadableFileTypes;
出错 internal.matlab.importtool.ImportableFileExtension>importToolRecognizableFileDropdownInfo (line 179)
dropdownList = {getString(message('MATLAB:codetools:uiimport:AudioFormatStr')),localAudioExtn(true);...
出错 internal.matlab.importtool.ImportableFileExtension.getImportToolFileChooserDropDownInfo (line 71)
[fileExtnDesc, fileExtList] = importToolRecognizableFileDropdownInfo;
出错 uiimport (line 144)
[fileExtDesc, fileExtList] = ImportableFileExtension.getImportToolFileChooserDropDownInfo;
> In multimedia.internal.audio.file.PluginManager (line 164)
In multimedia.internal.audio.file.PluginManager.getInstance (line 248)
In internal.matlab.importtool.ImportableFileExtension>localAudioExtn (line 118)
In internal.matlab.importtool.ImportableFileExtension>importToolRecognizableFileDropdownInfo (line 179)
In internal.matlab.importtool.ImportableFileExtension.getImportToolFileChooserDropDownInfo (line 71)
In uiimport (line 144)
警告: 转义字符 '\m' 无效。有关支持的特殊字符,请参阅 'doc sprintf'。
> In internal.matlab.importtool.ImportableFileExtension>localAudioExtn (line 121)
In internal.matlab.importtool.ImportableFileExtension>importToolRecognizableFileDropdownInfo (line 179)
In internal.matlab.importtool.ImportableFileExtension.getImportToolFileChooserDropDownInfo (line 71)
In uiimport (line 144)
警告: MEX 文件 'D:
> In internal.matlab.importtool.ImportableFileExtension>localAudioExtn (line 121)
In internal.matlab.importtool.ImportableFileExtension>importToolRecognizableFileDropdownInfo (line 179)
In internal.matlab.importtool.ImportableFileExtension.getImportToolFileChooserDropDownInfo (line 71)
In uiimport (line 144)
警告: 执行 'matlab.internal.video.PluginManager' 类析构函数时,捕获到以下错误:
MEX 文件 'D:\matlab2018\toolbox\shared\multimedia\+matlab\+internal\+video\private\mexVideoPluginManager.mexw64' 无效: 缺少依赖共享库:
'D:\matlab2018/bin/win64\avfileiopluginmanager.dll->D:\matlab2018\toolbox\shared\multimedia\+matlab\+internal\+video\private\mexVideoPluginManager.mexw64' 需要 'tamutil.dll'
'D:\matlab2018\toolbox\shared\multimedia\+matlab\+internal\+video\private\mexVideoPluginManager.mexw64' 需要 'tamutil.dll'。
出错 matlab.internal.video.PluginManager/delete (line 188)
mexVideoPluginManager('destroyPluginManager');
出错 matlab.internal.video.PluginManager (line 193)
function obj = PluginManager
出错 matlab.internal.video.PluginManager.getInstance (line 270)
localInstance = matlab.internal.video.PluginManager();
出错 VideoReader.getFileFormats (line 222)
extensions = PluginManager.getInstance().ReadableFileTypes;
出错 internal.matlab.importtool.ImportableFileExtension>localVideoExtn (line 92)
videoFileFormats = VideoReader.getFileFormats;
出错 internal.matlab.importtool.ImportableFileExtension>importToolRecognizableFileDropdownInfo (line 190)
getString(message('MATLAB:codetools:uiimport:VideoFormatStr')),localVideoExtn(true);...
出错 internal.matlab.importtool.ImportableFileExtension.getImportToolFileChooserDropDownInfo (line 71)
[fileExtnDesc, fileExtList] = importToolRecognizableFileDropdownInfo;
出错 uiimport (line 144)
[fileExtDesc, fileExtList] = ImportableFileExtension.getImportToolFileChooserDropDownInfo;
> In matlab.internal.video.PluginManager (line 193)
In matlab.internal.video.PluginManager.getInstance (line 270)
In VideoReader.getFileFormats (line 222)
In internal.matlab.importtool.ImportableFileExtension>localVideoExtn (line 92)
In internal.matlab.importtool.ImportableFileExtension>importToolRecognizableFileDropdownInfo (line 190)
In internal.matlab.importtool.ImportableFileExtension.getImportToolFileChooserDropDownInfo (line 71)
In uiimport (line 144)
警告: 转义字符 '\m' 无效。有关支持的特殊字符,请参阅 'doc sprintf'。
> In internal.matlab.importtool.ImportableFileExtension>localVideoExtn (line 96)
In internal.matlab.importtool.ImportableFileExtension>importToolRecognizableFileDropdownInfo (line 190)
In internal.matlab.importtool.ImportableFileExtension.getImportToolFileChooserDropDownInfo (line 71)
In uiimport (line 144)
警告: MEX 文件 'D:
> In internal.matlab.importtool.ImportableFileExtension>localVideoExtn (line 96)
In internal.matlab.importtool.ImportableFileExtension>importToolRecognizableFileDropdownInfo (line 190)
In internal.matlab.importtool.ImportableFileExtension.getImportToolFileChooserDropDownInfo (line 71)
In uiimport (line 144)
I guess there might lose some library . When have ever met the similar problem? Thanks a lot for helping me solve this problem
Answers (1)
Arnav Dubey
on 21 Aug 2020
As per my knowledge, a workaround would be , you may use "uiimport" specifying the full path to the file:
>> uiimport('c:\myfiles\myfile.xlsx')
and maybe then try if you are able to reproduce the same error.
0 Comments
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!