javax.xml.bind.UnmarshalException

unexpected element (uri:"", local:"TestSubject"). Expected elements are <{}Test>

Samebug tips1

Your current object model and mappings do not match the XML content. Check your JAXB annotations.


rprp

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web109

Stack trace

  • javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"TestSubject"). Expected elements are <{}Test> at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

rprp
6 times, last one
Unknown visitor
Unknown visitorOnce,
marcbouvierdavmarcbouvierdav
Once,
balintnbalintn
15 times, last one
davidvanlaatumdavidvanlaatum
9 times, last one
8 more bugmates