当我测试我的Web服务的WSI一致性时,我会抛出一个java异常 - 请参阅下面的控制台输出。我知道问题不是由于缺少main()方法造成的,因为服务不是应用程序。
soapUI控制台输出:
command: [cmd.exe, /C, C:\Web Services\eclipse\wsi-test-tools\java\bin\Analyzer.bat, -config, C:\Users\Admin\AppData\Local\Temp\wsi-analyzer-config6023712173002373188.xml]
Exception in thread "main" java.lang.NoSuchMethodError: org/apache/xerces/dom/ElementImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/apache/xerces/dom3/UserDataHandler;)Ljava/lang/Object;
at org.wsi.xml.dom.DOMParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.wsi.xml.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.wsi.xml.XMLUtils.parseXML(Unknown Source)
at org.wsi.xml.XMLUtils.parseXML(Unknown Source)
at org.wsi.test.analyzer.config.impl.AnalyzerConfigReaderImpl.readAnalyzerConfig(Unknown Source)
at org.wsi.test.analyzer.config.impl.AnalyzerConfigReaderImpl.readAnalyzerConfig(Unknown Source)
at org.wsi.test.analyzer.config.impl.AnalyzerConfigImpl.parseArgs(Unknown Source)
at org.wsi.test.analyzer.Analyzer.<init>(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.<init>(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.main(Unknown Source)
日志输出:
ERROR:An error occurred [org.xml.sax.SAXParseException: Premature end of file.], see error log for details
当我从命令提示符直接运行C:\Web Services\eclipse\wsi-test-tools\java\bin\Analyzer.bat, -config, C:\Users\Admin\AppData\Local\Temp\wsi-analyzer-config6023712173002373188.xml]
时,我得到:
Analyzer Error: The specified option is not supported: ,.
由于某些原因,soapUI不运行该服务,但分析生成的WSDL。生成WSI合规性html报告文件但没有内容。我怀疑这可能是配置问题的结果。我仔细检查过以下内容:
任何想法可能导致错误?
答案 0 :(得分:0)
看起来你有不兼容的罐子:
java.lang.NoSuchMethodError: org/apache/xerces/dom/ElementImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/apache/xerces/dom3/UserDataHandler;)Ljava/lang/Object
但是,如果没有看到你的依赖关系,我就无法说出哪一个。