Java org.xml.sax.SAXParseException,Mule 4.3,Anypoint studio 7.8

Java org.xml.sax.SAXParseException,Mule 4.3,Anypoint studio 7.8,java,xml,anypoint-studio,mulesoft,Java,Xml,Anypoint Studio,Mulesoft,我是Mulesoft的新手(使用Mule 4.3ee和Anypoint Studio 7.8)。我添加了一个数据库选择工具。我配置了Oracle数据库。测试连接成功,成功获取记录。后来,我在同一个项目中添加了一个新的配置文件以进行删除。我添加了数据库删除工具,在尝试运行项目时,我得到了org.xml.sax.SAXParseException我尝试创建新的数据库配置文件并尝试运行。但我还是犯了同样的错误。如果我创建一个新的Mule项目并重新创建流,它工作得很好。我厌倦了Stackoverflow

我是Mulesoft的新手(使用Mule 4.3ee和Anypoint Studio 7.8)。我添加了一个数据库选择工具。我配置了Oracle数据库。测试连接成功,成功获取记录。后来,我在同一个项目中添加了一个新的配置文件以进行删除。我添加了数据库删除工具,在尝试运行项目时,我得到了org.xml.sax.SAXParseException我尝试创建新的数据库配置文件并尝试运行。但我还是犯了同样的错误。如果我创建一个新的Mule项目并重新创建流,它工作得很好。我厌倦了Stackoverflow中建议的许多解决方案,比如添加新的依赖项,添加mule引用,比如mule-dbserver.xsd,以及重新启动工具实例。什么都没用。请帮我解决这个问题

在下面查找我收到的错误消息:

    Caused by: org.mule.runtime.api.exception.MuleRuntimeException: There were '7' errors while parsing the given file 'emp-sapi2.xml'.
Full list:
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 321; cvc-complex-type.3.2.2: Attribute 'responseStreamingMode' is not allowed to appear in element 'http:listener-config'.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 321; cvc-complex-type.3.2.2: Attribute 'outputMimeType' is not allowed to appear in element 'http:listener-config'.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 321; cvc-complex-type.3.2.2: Attribute 'primaryNodeOnly' is not allowed to appear in element 'http:listener-config'.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 321; cvc-complex-type.3.2.2: Attribute 'path' is not allowed to appear in element 'http:listener-config'.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 321; cvc-complex-type.3.2.2: Attribute 'outputEncoding' is not allowed to appear in element 'http:listener-config'.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 321; cvc-complex-type.3.2.2: Attribute 'config-ref' is not allowed to appear in element 'http:listener-config'.
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 321; cvc-complex-type.3.2.2: Attribute 'allowedMethods' is not allowed to appear in element 'http:listener-config'.

该错误与数据库连接器无关。它表示XML解析器无法理解HTTP侦听器配置的某些属性。如果它在编辑数据库名称空间时意外遗漏了http名称空间之前工作,则可能会发生这种情况。这很奇怪,因为它只是抱怨属性,而不是名称空间本身。也许您将http命名空间指向了错误的模式


通常,如果您使用的是graphical view Studio,它会为您处理名称空间。

感谢您提供的详细信息,但是对于XML错误,添加XML配置(作为文本)将非常重要。有关配置文件、源代码应为文本而不是图像的原因的更多详细信息,请参阅。