During marshaling I got next exception
Exception in thread "main" com.sun.xml.internal.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1127]
Message: XML document structures must start and end within the same entity.]
so I want see xml where [row,col]:[1,1127] is located. Please suggest.
I’d suggest you to create exception breakpoint on XMLStreamException. At least eclipse allows this. So you will be able to see the point where the exception is thrown. probably it will help.
BTW I am not sure that 1, 1127 is completely wrong. First check (just in case) that you do not have something illegal in this position. Second, check that it is not the 1127’th character of your file. If for example the file was generated on Unix where line separator is \n but you run code on Windows where line separator is \r\n the system probably does not recognize the line breaks, so it thinks that your XML is formatted as a very long single line.