swagger ui js 错误:Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.

经过排查,引发此错误的原因是,表中有一个字段名称为“NodeName”,应该是在前台xml解析时引发冲突所致。我的解决办法是: 修改列名,修改映射。

如下:

[Column("NodeName")]
public string Name { get; set; }

ps:说下我的思路,前台错误处打上断点,循环跳出(或者F8),注意观察出错时的节点名,见下图:

根据此法快速定位到解析错误的表名,然后根据排除法,一个一个注释掉字段,找到出错的字段。剩下的就好办了。

swagger ui js 错误:Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.

时间: 2024-11-24 09:33:14

swagger ui js 错误:Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.的相关文章

Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.

今天复习了一下关于getComputedStyle的用法,遇到了小小的挫折.报错前的代码: <div class="box"> <div id="box1"> <input type="text"> <input type="text"> <input type="text"> </div> </div> <style

解决maven项目 maven install失败 错误 Failed to execute goal org.apache.maven.plugins

1.Maven构建失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3.4 :compile ( default -compile) on project oecp: Compilation failure 2.解决方法:使用自己的jdk,记住是jdk,因为jdk里本身包含jre.而不是单纯的jre.本人初学者,表达肤浅,请看勿笑. 解决maven项目 maven install失败 错误 Fa

Maven错误“Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create ”解决

用maven3新建一个项目时,输入的命令如下: mvn archetype:create 出现错误如下: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.maven.plugins:mav

Failed to execute&#39;D:Program Files\keil\C51\BIN\C51.EXE&#39;解决方法

问题描述: 使用Keil软件时,出现类似错误 Failed to execute'D:Program Files\keil\C51\BIN\C51.EXE' 原因: 大多都是因为更改了Keil”最初的安装目录”<第一次安装时的路径>,导致该错误的发生.如果是安装版的,应该不会有这个问题(待确定):此问题几乎都是使用免安装版的,引起的. 解决方案: 修改Keil安装目录下的TOOLS.INI文件,把所有PATH改成你现在的正确的Keil路径. 此解决方案经本人亲测,如有问题,请联系于我~~ Fa

【React Native错误集】Import fails with &quot;Failed to execute &#39;ImportScripts&#39; on &#39;WorkerGlobalScope&#39;&quot;

错误1.Import fails with "Failed to execute 'ImportScripts' on 'WorkerGlobalScope'" 解决1.如果是在Degbug模式下,关闭turn off Debug JS Remotely.再重新运行即可. 错误2:rn报错 unhandled JS Exception: Requiring unknown module "49". if you are sure the module is ther

maven错误解决一:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile)

解决方法是将 jre的目录在 window->Preferences 里修改java installed里的jre目录改为jdk目录即可. 原因是在jre目录下不存在tools.jar. maven错误解决一:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile),布布扣,bubuko.com maven错误解决一:Failed to execute

mvn install 报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2 错误: 找不到符号

报错信息 在Eclipse中执行mvn install时,console端显示如下报错信息: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ERP: Compilation failure: Compilation failure: [ERROR] \test01\src\main\java\HStyl

解决mysql的错误 CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1300 Invalid utf8 character string: &#39;\xBF\xA5&#39;

报错: CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1300 Invalid utf8 character string: '\xBF\xA5' 解决方法: $currentPrice = $currentPrice * 1; => $currentPrice 原本是字符串的 数字,导致插入数据库失败. =>所以只要改成 数字 即可. =>字符串的 数字 ,乘以 1 就会变

Uncaught SecurityError: Failed to execute &#39;replaceState&#39; on &#39;History&#39;

Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/Users/Administrator/Desktop/%E5%BE%AE%E4%BF%A1/%E4%BA%91%E5%88%9B/index.html' cannot be created in a document with origin 'null'. 在引入jQ