Details
-
Bug
-
Resolution: Fixed
-
P3
-
8u91, 9
-
b153
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8197282 | 8u192 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8195465 | 8u172 | Aleksej Efimov | P3 | Resolved | Fixed | b03 |
JDK-8184825 | 8u162 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8183442 | 8u161 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8172673 | 8u152 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8175154 | 8u151 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8185202 | 8u144 | Aleksej Efimov | P3 | Resolved | Fixed | b31 |
JDK-8179843 | 8u141 | Aleksej Efimov | P3 | Resolved | Fixed | b08 |
JDK-8173348 | 8u121 | Aleksej Efimov | P3 | Closed | Fixed | b32 |
JDK-8192299 | emb-8u161 | Aleksej Efimov | P3 | Resolved | Fixed | b01 |
JDK-8184521 | emb-8u151 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8179965 | emb-8u141 | Aleksej Efimov | P3 | Resolved | Fixed | b08 |
Description
SOAP message sent to WS:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<SampleServiceRequest xmlns="http://test.example.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RequestParams xmlns="">
<Param1>Param1_Value</Param1>
<Param2>Param2_Value</Param2>
</RequestParams>
</SampleServiceRequest>
</s:Body>
</s:Envelope>
Message received on WS handler side:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<s:Body>
<SampleServiceRequest xmlns="http://test.example.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RequestParams xmlns="http://test.example.com">
<Param1 xmlns="">Param1_Value</Param1>
<Param2 xmlns="">Param2_Value</Param2>
</RequestParams>
</SampleServiceRequest>
</s:Body>
</s:Envelope>
The <RequestParams> has incorrect default namespace set: xmlns="http://test.example.com">, it should be xmlns="" instead.
The incorrect message can cause SAXParseException during the validation of the received message:
org.xml.sax.SAXParseException; cvc-complex-type.2.4.a: Invalid content was found starting with element 'RequestParams'. One of '{RequestParams}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:452)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3230)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1790)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:740)
at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:277)
at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:244)
at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:190)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:109)
at javax.xml.validation.Validator.validate(Validator.java:124)
at sample.server.ws.handler.SampleHandler.handleMessage(SampleHandler.java:45)
Attachments
Issue Links
- backported by
-
JDK-8172673 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8175154 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8179843 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8179965 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8183442 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8184521 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8184825 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8185202 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8192299 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8195465 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8197282 SAXParseException when sending soap message
-
- Resolved
-
-
JDK-8173348 SAXParseException when sending soap message
-
- Closed
-
- duplicates
-
JDK-8166682 arg0 element with empty default namespace declaration is assigned namespace
-
- Closed
-
-
JDK-8183528 SOAP payload with empty default namespace (xmlns="") sent to WS is null in SOAP implementation
-
- Closed
-
- relates to
-
JDK-8186441 Change of behavior in the getMessage () method of the SOAPMessageContextImpl class
-
- Resolved
-
- links to