Publish generates an error in m2mxdom
2 ビュー (過去 30 日間)
古いコメントを表示
Publish comes up with a strange response. I've looked for answers, and the bug is reported to have been squashed in 2011b, but I have 2012b and it is still alive and kicking. I have the following code snippet (defining 'publish_test' as publish_test.m before running publish):
>> type publish_test
function publish_test
%%publish test
end
>> publish('publish_test')
No method 'createTextNode' with matching signature found for class
'org.apache.xerces.dom.DocumentImpl'.
Error in m2mxdom>createDom (line 53)
newTextNode = dom.createTextNode(matlabVersion.Version);
Error in m2mxdom (line 32)
dom = createDom;
Error in publish (line 143)
[dom,cellBoundaries] = m2mxdom(code);
I get the following output:
No method 'createTextNode' with matching signature found for class
'org.apache.xerces.dom.DocumentImpl'.
Error in m2mxdom>createDom (line 53)
newTextNode = dom.createTextNode(matlabVersion.Version);
Error in m2mxdom (line 32)
dom = createDom;
Error in publish (line 143)
[dom,cellBoundaries] = m2mxdom(code);
Any thoughts or a different bug report?
Thanks.
Doug
0 件のコメント
回答 (1 件)
Aniket
2025 年 6 月 11 日
This issue happens if you have a third party toolbox installed in a directory named "matlab". You can check that by running below command in the MATLAB command window
v = ver('matlab')
If this returns structure array, rename the directory for the other "matlab" and update your matlabpath accordingly by running below command:
restoredefaultpath;
rehash toolboxcache;
savepath
This should resolve the issue!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Report Generator についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!