Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210144

JDK 10.0.2: Entity References are not allowed in SOAP documents

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 10.0.2
    • Fix Version/s: None
    • Component/s: xml
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      A DESCRIPTION OF THE PROBLEM :
      Duplicate of the following. Fixed in JDK8xx but exists JDK 10.0.2
      Ref: JDK-8196491/JDK-8202004

      REGRESSION : Last worked in version 8u181

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Same as duplicate issues - in my case, I have newlines in my outgoing request and the failure occurs when attempting to access the context.getMessage().getSOAPPart().getEnvelope()

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      context.getMessage().getSOAPPart().getEnvelope() should succeed.
      ACTUAL -
      Caused by: java.lang.UnsupportedOperationException: Entity References are not allowed in SOAP documents
      at java.xml.ws@10.0.2/com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl.createEntityReference(SOAPDocumentImpl.java:206)
      at java.xml.ws@10.0.2/com.sun.xml.internal.messaging.saaj.soap.SOAPPartImpl.createEntityReference(SOAPPartImpl.java:500)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.api.message.saaj.SaajStaxWriter.writeEntityRef(SaajStaxWriter.java:252)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.output.XMLStreamWriterOutput$XmlStreamOutWriterAdapter.writeEntityRef(XMLStreamWriterOutput.java:276)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.output.XMLStreamWriterOutput$NewLineEscapeHandler.escape(XMLStreamWriterOutput.java:240)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.output.XMLStreamWriterOutput.text(XMLStreamWriterOutput.java:150)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.XMLSerializer.leafElement(XMLSerializer.java:313)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$StringImplImpl.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:1055)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$StringImplImpl.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:1034)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.writeLeafElement(TransducedAccessor.java:239)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.property.SingleElementLeafProperty.serializeBody(SingleElementLeafProperty.java:115)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:345)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:143)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:345)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:261)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:79)
      at java.xml.bind@10.0.2/com.sun.xml.internal.bind.api.Bridge.marshal(Bridge.java:96)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.db.glassfish.BridgeWrapper.marshal(BridgeWrapper.java:177)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:402)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:177)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.api.message.MessageWrapper.writeTo(MessageWrapper.java:211)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.api.message.saaj.SAAJFactory.readAsSOAPMessage(SAAJFactory.java:280)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.api.message.saaj.SAAJFactory.readAsSAAJ(SAAJFactory.java:207)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.api.message.saaj.SAAJFactory.read(SAAJFactory.java:196)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.message.AbstractMessageImpl.toSAAJ(AbstractMessageImpl.java:221)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.api.message.MessageWrapper.readAsSOAPMessage(MessageWrapper.java:161)
      at java.xml.ws@10.0.2/com.sun.xml.internal.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:70)

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              psonal Pallavi Sonal
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: