简体   繁体   English

注释突触配置块时引发“注释中输入块的意外结束”异常

[英]'Unexpected end of input block in comment' exception thrown when synapse configuration block is commented

'com.ctc.wstx.exc.WstxEOFException: Unexpected end of input block in comment' exception thrown when a configuration block is commented out in synapse. 当在突触中注释掉配置块时,抛出'com.ctc.wstx.exc.WstxEOFException: Unexpected end of input block in comment'异常。

Looks like the XML is not being parsed when an XML is commented out. 当注释掉XML时,似乎未对XML进行解析。 If I have give a general XML as <!-- test --> , it gets parsed without any error. 如果我将通用XML给出为<!-- test --> ,则它将被解析而没有任何错误。

Is there any workaround or a solution to overcome this issue? 是否有解决此问题的解决方法或解决方案?

Synapse Config: 突触配置:

<?xml version="1.0" encoding="UTF-8"?>
<proxy name="HelloWorld1" startOnLoad="true" transports="http https" xmlns="http://ws.apache.org/ns/synapse">
    <target>
        <inSequence>
            <payloadFactory media-type="json">
                <format>{"Hello":"World"}</format>
                <args/>
            </payloadFactory>
            <sequence description="dfs" key="abcSequence"/>
            <!-- <sequence key="testIn"/> -->
            <respond/>
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </target>
</proxy>

Error Log: 错误日志:

[com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxEOFException: Unexpected end of input block in comment
 at [row,col {unknown-source}]: [1,29]
    at com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)
    at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:720)
    at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3677)
    at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:858)
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.createComment(StAXOMBuilder.java:474)
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:279)
    at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:109)
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:570)
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:566)
    at org.apache.axiom.om.util.AXIOMUtil.stringToOM(AXIOMUtil.java:54)
    at org.apache.axiom.om.util.AXIOMUtil.stringToOM(AXIOMUtil.java:39)
    at org.wso2.developerstudio.eclipse.gmf.esb.diagram.custom.deserializer.DummyMediatorFactoryFinder.getFactory(DummyMediatorFactoryFinder.java:241)
    at org.wso2.developerstudio.eclipse.gmf.esb.diagram.validator.ProcessSourceView.validate(ProcessSourceView.java:954)
    at org.wso2.developerstudio.eclipse.gmf.esb.diagram.validator.ProcessSourceView.mediatorValidation(ProcessSourceView.java:860)
    at org.wso2.developerstudio.eclipse.gmf.esb.diagram.validator.ProcessSourceView.synapseValidation(ProcessSourceView.java:779)
    at org.wso2.developerstudio.eclipse.gmf.esb.diagram.validator.ProcessSourceView.validateSynapseContent(ProcessSourceView.java:145)
    at org.wso2.developerstudio.eclipse.gmf.esb.diagram.part.EsbMultiPageEditor.doSave(EsbMultiPageEditor.java:1015)
    at org.eclipse.ui.internal.SaveableHelper.lambda$0(SaveableHelper.java:154)
    at org.eclipse.ui.internal.SaveableHelper.lambda$3(SaveableHelper.java:271)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:437)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:353)
    at org.eclipse.ui.internal.WorkbenchWindow$14.run(WorkbenchWindow.java:2195)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2191)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:278)

This is because of a validation error in Integration Studio 6.5.0. 这是因为Integration Studio 6.5.0中存在验证错误。 (and in WSO2 EI Tooling 6.4.0) We have fixed it for the upcoming release. (以及WSO2 EI工具6.4.0中的)我们已为即将发布的版本进行了修复。 Please refer https://github.com/wso2/product-ei/issues/3985 for more details. 请参阅https://github.com/wso2/product-ei/issues/3985了解更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决错误WSO2 Developer Studio中的未知突触配置标记 - How to resolve error Unknown synapse configuration tag in wso2 developer studio 导入org.apache.synapse无法解析 - the import org.apache.synapse cannot be resolved WSO2 Developer Studio不断修改我的突触配置 - WSO2 Developer Studio keep modifying my synapse config 尝试在 WS02 Developer Studio 中打开突触配置文件的设计视图时出现 Eclipse 保存错误 - Eclipse save error when trying to open the design view of a synapse config file in WS02 Developer Studio WSO2 DeveloperStudio CAR Maven 部署异常 - WSO2 DeveloperStudio CAR Maven deployment exception 基于WSO2 ESB EI611注册表的值,用于通过Tooling进行配置 - WSO2 ESB EI611 registry based values for configuration from Tooling WSO2 ESB-使用Developer Studio开发服务以及在远程服务器上部署和调试服务的配置 - WSO2 ESB - Configuration to Develop Services with Developer Studio and Deploy and Debug them on Remote Server 输入类型不正确或在消息有效内容中找到无效元素 - Input type is incorrect or Invalid element found in the message payload 我们什么时候必须创建代理服务,什么时候需要创建Rest Api? - when do we have to create proxy service and when do we need to create Rest Api? 工件过多时,WSO2 Carbon Studio 1.0崩溃 - WSO2 Carbon Studio 1.0 crash when too many artifacts
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM