cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: Aegis schema validation design challenge
Date Mon, 08 Jun 2009 23:49:47 GMT
Right. As of WSTX-209 I can get the right exception with no further ado.

On Mon, Jun 8, 2009 at 7:25 PM, Tatu Saloranta<tsaloranta@gmail.com> wrote:
> Just to make sure: is this what you fixed with [WSTX-209] (such that
> validation problem handle now gets properly invoked, and prevents
> exception)?
>
> On Fri, Jun 5, 2009 at 6:14 PM, Benson Margulies<bimargulies@gmail.com> wrote:
>> Next question: Exception mapping. Woodstox throws what it throws, in
>> the middle of StaxUtils, when this goes off.
>>
>> I'm trying to figure out how to turn this into a fault.
>>
>> SchemaValidationTest [JUnit]
>>        org.eclipse.jdt.internal.junit.runner.RemoteTestRunner at localhost:52320
>>                Thread [main] (Running)
>>                Thread [ReaderThread] (Running)
>>                Thread [Thread-1] (Suspended (exception WstxValidationException))
>>                        ValidatingStreamReader(StreamScanner).reportValidationProblem(XMLValidationProblem)
>> line: 540
>>                        NsInputElementStack(InputElementStack).reportProblem(XMLValidationProblem)
>> line: 380
>>                        GenericMsvValidator.reportError(String, Location)
line: 521
>>                        GenericMsvValidator.reportError(String) line:
513
>>                        GenericMsvValidator.reportError(StringRef) line:
507
>>                        GenericMsvValidator.validateElementStart(String,
String, String) line: 261
>>                        NsInputElementStack.resolveAndValidateElement()
line: 370
>>                        ValidatingStreamReader(BasicStreamReader).handleStartElem(char)
line: 2926
>>                        ValidatingStreamReader(BasicStreamReader).nextFromTree()
line: 2786
>>                        ValidatingStreamReader(BasicStreamReader).next()
line: 1054
>>                        DepthXMLStreamReader.next() line: 220
>>                        StaxUtils.toNextElement(DepthXMLStreamReader)
line: 302
>>                        DocLiteralInInterceptor.getPara(DepthXMLStreamReader,
>> DataReader<XMLStreamReader>, MessageContentsList,
>> Iterator<MessagePartInfo>, Message) line: 217
>>                        DocLiteralInInterceptor.handleMessage(Message)
line: 117
>>                        PhaseInterceptorChain.doIntercept(Message) line:
236
>>                        ChainInitiationObserver.onMessage(Message) line:
89
>>                        LocalConduit$1$1.run() line: 132
>>                        Thread.run() line: 613
>>        /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
>> (Jun 5, 2009 9:13:03 PM)
>>
>

Mime
View raw message