IBM Support

An XMLStreamException occurs when parsing the web service response

Question & Answer


Question

After executing a web service request with the WebServiceInvoker function, the policy is unable to process the response and reports a XMLStreamException error. How can I resolve this?
 
The exception stack trace may be logged to impactserver.log:

ERROR [WebServiceInvoker] Execution error
java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException
 at java.util.concurrent.FutureTask.report(FutureTask.java:133)
 at java.util.concurrent.FutureTask.get(FutureTask.java:203)
 at com.micromuse.common.parser.internal.core.functions.WebServiceInvoker.invoke(WebServiceInvoker.java:129)
 at com.micromuse.common.parser.internal.core.ParserUtils.invokeMethod(ParserUtils.java:481)
 at com.micromuse.common.parser.internal.core.ParserUtils.findAndInvokeMethod(ParserUtils.java:552)
 at com.micromuse.common.parser.internal.core.functions.WebServiceInvokeDLFunction.runCompute(WebServiceInvokeDLFunction.java:640)
...   
Caused by:
javax.xml.stream.XMLStreamException: Element type "ns:test1></ns" must be followed by either attribute specifications, ">" or "/>".
 at com.ibm.xml.xlxp2.api.stax.msg.StAXMessageProvider.throwWrappedXMLStreamException(StAXMessageProvider.java:76)
 at com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.produceFatalErrorEvent(XMLStreamReaderImpl.java:2008)
 at com.ibm.xml.xlxp2.api.jaxb.JAXBXMLStreamReader.produceFatalErrorEvent(JAXBXMLStreamReader.java:356)
 at com.ibm.xml.xlxp2.scan.DocumentScanner.reportFatalError(DocumentScanner.java:4871)
 at com.ibm.xml.xlxp2.scan.DocumentScanner.reportFatalError(DocumentScanner.java:1212)
 at com.ibm.xml.xlxp2.scan.DocumentScanner.scanStartElementCommon(DocumentScanner.java:2309)


[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSB2GF","label":"Netcool\/Impact"},"ARM Category":[{"code":"a8m0z000000bqcVAAQ","label":"Impact"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Version(s)","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
Netcool/Impact

Component:
Impact

Software version:
All Version(s)

Operating system(s):
AIX, Linux, Windows

Document number:
1285324

Modified date:
09 May 2025

UID

ibm11285324

Manage My Notification Subscriptions