0 Replies Latest reply on Apr 22, 2016 7:02 PM by user10988879

    MTom issue -The currentElement is not MtomEnabled in SaajStaxWriterEx

    user10988879

      Hi All,

       

      i am getting below exception while upgrading  Web-logic server to 12.1.3 version from 12.1.1. It seems that New weblogic(12.1.3) forcing client element to be MTOM enabled. Same  code is working in older(12.1.1) version of weblogic.

       

      java.lang.IllegalStateException: The currentElement is not MtomEnabled [checkImageFront: null] at

      org.jvnet.staxex.util.SaajStaxWriterEx$2.addMtomAttachment(SaajStaxWriterEx.java:243) at

      com.sun.xml.bind.v2.runtime.output.MTOMXmlOutput.text(MTOMXmlOutput.java:125) at

      com.sun.xml.bind.v2.runtime.XMLSerializer.leafElement(XMLSerializer.java:356) at

      com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$PcdataImpl.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:191) at

      com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.writeLeafElement(TransducedAccessor.java:254) at

      com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.serializeBody(SingleElementLeafProperty.java:130) at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:360) at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:696) at

      com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:158) at

      com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:360) at

      com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:696) at

      com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:158) at

      com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:360) at

      com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:696) at

      com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:271) at

      com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:94) at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:111) at

      com.sun.xml.ws.db.glassfish.BridgeWrapper.marshal(BridgeWrapper.java:192)

       

      Any suggestions, how to resolve this issue ?