Results 1 to 2 of 2

Thread: Marshalling problem: UnsupportedOperationException: setValidating()

  1. #1
    Join Date
    Jul 2006
    Posts
    5

    Default Marshalling problem: UnsupportedOperationException: setValidating()

    Hi,

    I came across a "java.lang.UnsupportedOperationException" when trying to use the jaxb marshaling, citing "com.sun.xml.bind.v2.runtime.unmarshaller.Unmarsha llerImpl.setValidating(Unma
    rshallerImpl.java:453)" as the offending code. I came across a post (http://forum.springframework.org/showthread.php?t=24083) earlier mentioning that this issue was dealt with. I am currently using the latest nightly snapshot, though i've test against a couple other versions.

    Is anyone else seeing this error? Or is it just me?

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    setValidating is no longer supported under JAXB2. You will need to use the Jaxb2Marshaller, and set validating schema(s) using the schema or schema properties.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •