Troubleshooting
Problem
When integrating WebSphere Adapter for J D Edwards EnterpriseOne version 7.0 with WebSphere Business Events version 7.0 in WebSphere Application Server version 7.0.0.7, an XML parser error is thrown.
Symptom
The following org.xml.sax.SAXParseException will be thrown by WebSphere Business Events:
org.xml.sax.SAXParseException: XML version "1.1" is not supported, only XML 1.0 is supported.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at com.ibm.wbe.model.packet.PacketBundleContainer.fromString(PacketBundleContainer.java:770)
at com.ibm.wbe.model.packet.PacketBundleContainer.<init>(PacketBundleContainer.java:177)
at com.ibm.wbe.server.EventProcessor.process(EventProcessor.java:337)
at com.ibm.wbe.server.engine.aspects.DurableEventPersistenceImpl.eventReceiverQueueWrite(DurableEventPersistenceImpl.java:75)
at com.ibm.wbe.server.ReceiverBeanHelper.ProcessMessage(ReceiverBeanHelper.java:205)
at ejbs.EventReceiverBean.onMessage(EventReceiverBean.java:55)
at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1092)
at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:777)
at $Proxy78.onMessage(Unknown Source)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaEndpointInvokerImpl.invokeEndpoint(JmsJcaEndpointInvokerImpl.java:233)
at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:900)
at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:550)
at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:399)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Cause
The problem is caused by the xerces.jar and xmlparserv2.jar, which are part of the JDE driver. These JAR files provide several services in the "META-INF/services/" folder . These services change the default XML parser configuration of WebSphere Application Server version 7.0.0.7. WebSphere Application Server will try to load the XML parser version 1.0, not the default XML parser version 1.1. This impacts WebSphere Business Events version 7.0. WebSphere Business Event version 7.0 can not work normally when using XML parser 1.0.
Environment
WebSphere Adapter for J D Edwards EnterpriseOne version 7.0
WebSphere Business Events version 7.0
WebSphere Application Server version 7.0.0.7
Resolving The Problem
To resolve this problem, it is necessary to keep the default XML parser configuration of WebSphere Application Server. The file "xerces.properties" is located in the lib subdirectory of the JRE of WebSphere Application Server. The org.apache.xerces.xni.parser.XMLParserConfiguration property is defined in the "xerces.properties" file. But it is commented out. Uncomment the org.apache.xerces.xni.parser.XMLParserConfiguration property and ensure that the default XML parser configuration of WebSphere Application is the following: Serverorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeAwareParserConfiguration. org.apache.xerces.parsers.XIncludeAwareParserConfiguration
Was this topic helpful?
Document Information
Modified date:
23 June 2018
UID
swg21410127