javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.example.com/xml/protocols", local:"student"). Expected elements are <{}student>

  1. 0

    Add namespace prefix to only root elements?

    Stack Overflow | 3 months ago | Siddharth Trikha
    javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.example.com/xml/protocols", local:"student"). Expected elements are <{}student>
  2. 0

    Error in RemoteScopInstallation

    GitHub | 3 years ago | sbliven
    javax.xml.bind.UnmarshalException: unexpected element (uri:"http://source.rcsb.org", local:"ScopNode"). Expected elements are <{http://source.rcsb.org}ScopDescription>
  3. 0

    javax.xml.bind.UnmarshalException PasswordResponse

    Stack Overflow | 2 years ago | user2863034
    javax.xml.bind.UnmarshalException: unexpected element (uri:"PasswordResponse", local:"PasswordResponse"). Expected elements are &lt;{}PasswordResponse&gt;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JAXB Umarshaller error

    Stack Overflow | 3 years ago | Artem Moskalev
    javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"ONIXMessage"). Expected elements are &lt;{http://ns.editeur.org/onix/3.0/reference}Addressee&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AddresseeIDType&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AddresseeIdentifier&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AddresseeName&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}Affiliation&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AgentIDType&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AgentIdentifier&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AgentName&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AgentRole&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AlternativeName&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AncillaryContent&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AncillaryContentDescription&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AncillaryContentType&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}Audience&gt;,&lt;{http://ns.editeur.org/onix/3.0/reference}AudienceCode&gt; ...
  6. 0

    Unmarshall xml to list of objects

    Stack Overflow | 4 years ago | Lory Lory
    javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"customers"). Expected elements are &lt;{}customer&gt;,&lt;{}user&gt;

  1. empt-ak 1 times, last 1 month ago
17 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.xml.bind.UnmarshalException

    unexpected element (uri:"http://www.example.com/xml/protocols", local:"student"). Expected elements are <{}student>

    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent()
  2. Java RT
    AbstractUnmarshallerImpl.unmarshal
    1. com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:647)
    2. com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243)
    3. com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238)
    4. com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105)
    5. com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1048)
    6. com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:483)
    7. com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:465)
    8. com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:135)
    9. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)
    10. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:376)
    11. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:602)
    12. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3116)
    13. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:880)
    14. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
    15. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
    16. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    17. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:846)
    18. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:775)
    19. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
    20. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
    21. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:628)
    22. com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:203)
    23. com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:175)
    24. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
    25. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:214)
    25 frames