Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5254

Unmarshall exception if a sequence<string> is used in a struct.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.7.5, 2.7.6
    • 2.7.8
    • CORBA Binding
    • None
    • JAVA7 / Windows 7

    • Unknown

    Description

      A server function returns a struct. This struct contains another struct which contains a sequence<string>. Calling this method with a CXF/Corba-Client leads to an unmarshall exception:

      Warnung: Interceptor for {http://cxf.apache.org/bindings/corba/idl/repro}repro.ServiceCORBAService#{http://cxf.apache.org/bindings/corba/idl/repro}getFirst has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: Unmarshalling Error: unerwartetes Element (URI:"", lokal:"item"). Erwartete Elemente sind <{http://cxf.apache.org/bindings/corba/idl/repro}id>,<{http://cxf.apache.org/bindings/corba/idl/repro}s1> 
      	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:808)
      	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:629)
      	at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:157)
      	at org.apache.cxf.interceptor.BareInInterceptor.handleMessage(BareInInterceptor.java:138)
      ...
      

      (sorry for german).

      Using a pure CORBA-client works.

      I will attach a repro project to this issue if I have figured out how it works

      Attachments

        1. CorbaBugRepro.zip
          11 kB
          Juergen Bockhorn
        2. patch.txt
          4 kB
          Daniel Kulp
        3. CXF-5254.diff
          17 kB
          Grzegorz Grzybek

        Activity

          People

            dkulp Daniel Kulp
            milraun Juergen Bockhorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: