You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Simon Laws <si...@googlemail.com> on 2008/06/12 20:15:52 UTC
XQuery sample JAXB issue
I'm down to my last problem with the 2347 patch I'm trying to apply and it's
a real good one. If feels awfully familiar. But I can't for the life of me
work out how a patch which makes changes to do with validation errors can
cause the attached exception in the XQuery sample. I'm on IBM JDK 5 and,
rather awkwardly, this only happens for me when I compile from the top
level. And possibly intermittently. We had something similar back in 1.0
days and, IIRC, It turned out to be some Saxon version missmatch that caused
these strange intermittent and mvn build location dependent compile
problems.
So is anyone else seeing this
Anyone have any ideas
I believe we have moved to a new JAXB version recently so in the mean time
I'm going to broaden my search from looking at the diff files from the
patch. I'll start by looking to see if all JAXB versions are the same.
Regards
Simon
testQuoteJoin(xquery.quote.XQueryQuoteClientTestCase) Time elapsed: 39.281
sec
<<< ERROR!
org.apache.tuscany.sca.databinding.TransformationException:
com.sun.xml.bind.v2.
runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
net.sf.saxon.om.NodeInfo is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at net.sf.saxon.om.NodeInfo
at protected net.sf.saxon.om.NodeInfo
xquery.quote.jaxws.Provide
AvailQuoteResponse._return
at xquery.quote.jaxws.ProvideAvailQuoteResponse
net.sf.saxon.om.NodeInfo does not have a no-arg default constructor.
this problem is related to the following location:
at net.sf.saxon.om.NodeInfo
at protected net.sf.saxon.om.NodeInfo
xquery.quote.jaxws.Provide
AvailQuoteResponse._return
at xquery.quote.jaxws.ProvideAvailQuoteResponse
at
org.apache.tuscany.sca.databinding.jaxb.axiom.JAXB2OMElement.transfor
m(JAXB2OMElement.java:54)
at
org.apache.tuscany.sca.databinding.jaxb.axiom.JAXB2OMElement.transfor
m(JAXB2OMElement.java:40)
at
org.apache.tuscany.sca.databinding.DefaultTransformerExtensionPoint$L
azyPullTransformer.transform(DefaultTransformerExtensionPoint.java:199)
at
org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(Mediator
Impl.java:81)
at
org.apache.tuscany.sca.core.databinding.transformers.Input2InputTrans
former.transform(Input2InputTransformer.java:201)
at
org.apache.tuscany.sca.core.databinding.transformers.Input2InputTrans
former.transform(Input2InputTransformer.java:45)
at
org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(Mediator
Impl.java:81)
at
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterc
eptor.transform(DataTransformationInterceptor.java:186)
at
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterc
eptor.invoke(DataTransformationInterceptor.java:76)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:287)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:154)
at $Proxy8.provideAvailQuote(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at
net.sf.saxon.functions.ExtensionFunctionCall.invokeMethod(ExtensionFu
nctionCall.java:533)
at
net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCa
ll.java:256)
at
net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctio
nCall.java:147)
at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:89)
at net.sf.saxon.value.Value.getIterator(Value.java:216)
at
net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:39
7)
at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:848)
at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:848)
at net.sf.saxon.sort.DocumentSorter.iterate(DocumentSorter.java:84)
at net.sf.saxon.expr.LazyExpression.iterate(LazyExpression.java:105)
at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:89)
at net.sf.saxon.expr.Literal.iterate(Literal.java:202)
at
net.sf.saxon.expr.FilterExpression.iterate(FilterExpression.java:1034
)
at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:308)
at net.sf.saxon.expr.ForExpression.process(ForExpression.java:650)
at net.sf.saxon.expr.LetExpression.process(LetExpression.java:380)
at net.sf.saxon.expr.ForExpression.process(ForExpression.java:664)
at
net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java
:553)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:399)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:94)
at
net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.
java:378)
at
net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java
:324)
at
net.sf.saxon.expr.LetExpression.evaluateItem(LetExpression.java:360)
at
net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:295)
at net.sf.saxon.instruct.UserFunction.call(UserFunction.java:318)
at
net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java
:389)
at
net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:368)
at
net.sf.saxon.query.XQueryExpression.iterator(XQueryExpression.java:25
2)
at
org.apache.tuscany.sca.implementation.xquery.XQueryInvoker.doInvoke(X
QueryInvoker.java:168)
at
org.apache.tuscany.sca.implementation.xquery.XQueryInvoker.invoke(XQu
eryInvoker.java:185)
at
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterc
eptor.invoke(DataTransformationInterceptor.java:78)
at
org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
indingInvoker.java:61)
at
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.i
nvoke(PassByValueInterceptor.java:103)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:287)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:154)
at $Proxy19.joinPriceAndAvailQuotes(Unknown Source)
at
xquery.quote.QuoteJoinLocalImpl.joinPriceAndAvailQuotes(QuoteJoinLoca
lImpl.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementat
ionInvoker.invoke(JavaImplementationInvoker.java:132)
at
org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
indingInvoker.java:61)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:287)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:154)
at $Proxy9.joinPriceAndAvailQuotes(Unknown Source)
at
xquery.quote.XQueryQuoteClientTestCase.testQuoteJoin(XQueryQuoteClien
tTestCase.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMet
hodRunner.java:99)
at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethod
Runner.java:81)
at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAn
dAfterRunner.java:34)
at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunne
r.java:75)
at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java
:45)
at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(Te
stClassMethodsRunner.java:75)
at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethod
sRunner.java:36)
at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClass
Runner.java:42)
at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAn
dAfterRunner.java:34)
at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:5
2)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:308)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:879)
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts
of
IllegalAnnotationExceptions
net.sf.saxon.om.NodeInfo is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at net.sf.saxon.om.NodeInfo
at protected net.sf.saxon.om.NodeInfo
xquery.quote.jaxws.Provide
AvailQuoteResponse._return
at xquery.quote.jaxws.ProvideAvailQuoteResponse
net.sf.saxon.om.NodeInfo does not have a no-arg default constructor.
this problem is related to the following location:
at net.sf.saxon.om.NodeInfo
at protected net.sf.saxon.om.NodeInfo
xquery.quote.jaxws.Provide
AvailQuoteResponse._return
at xquery.quote.jaxws.ProvideAvailQuoteResponse
at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check
(IllegalAnnotationsException.java:102)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex
tImpl.java:438)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.ja
va:286)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
139)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
at
org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.getJAXBConte
xt(JAXBContextCache.java:273)
at
org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBC
ontext(JAXBContextHelper.java:173)
at
org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBC
ontext(JAXBContextHelper.java:205)
at
org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBC
ontext(JAXBContextHelper.java:93)
at
org.apache.tuscany.sca.databinding.jaxb.axiom.JAXB2OMElement.transfor
m(JAXB2OMElement.java:52)
... 86 more
Re: XQuery sample JAXB issue
Posted by Raymond Feng <en...@gmail.com>.
Hi,
I think I found the root cause of the issue and fixed it as part of r667641.
There were two databindings competing for the same java type (SAXON NodeInfo
extends from javax.xml.transform.Source).
Thanks,
Raymond
--------------------------------------------------
From: "Simon Laws" <si...@googlemail.com>
Sent: Thursday, June 12, 2008 12:13 PM
To: <tu...@ws.apache.org>
Subject: Re: XQuery sample JAXB issue
> On Thu, Jun 12, 2008 at 8:01 PM, Ramkumar R <ra...@gmail.com> wrote:
>
>> I am seeing this too, but when i run from my eclipse IDE the test seems
>> to
>> be passing.
>>
>> On 6/13/08, ant elder <an...@gmail.com> wrote:
>> >
>> > I get this too, and can't figure it out either. Doesn't seem at all
>> > intermittent for me.
>> >
>> > ...ant
>> >
>>
>> --
>> Thanks & Regards,
>> Ramkumar Ramalingam
>>
>
> The majority of JAXB versions are consistent, I.e.
>
> jaxb-api-2.1.jar
> jaxb-impl-2.1.7.jar
>
> I do see the following dependencies...
>
> jaxb-impl-2.0.5.jar test Apache Tuscany SCA Tutorial Catalog EJB
> geronimo-openejb-2.1.1 jaxb-impl-2.0.5
> jaxb-xjc-2.1.5.jar compile Apache Tuscany SCA HelloWorld BPEL
> Sample tuscany-wsdl2java-2.0-incubating-SNAPSHOT jaxb-xjc-2.1.5
>
> I'll go and change these and see if there is any affect.
>
> We also have a mixture of
>
> saxon-8.7.jar
> saxon-9.0.0.2.jar
>
> Don't know what impact that has but doesn't look right to me.
>
> Regards
>
> Simon
>
Re: XQuery sample JAXB issue
Posted by Simon Laws <si...@googlemail.com>.
On Thu, Jun 12, 2008 at 8:01 PM, Ramkumar R <ra...@gmail.com> wrote:
> I am seeing this too, but when i run from my eclipse IDE the test seems to
> be passing.
>
> On 6/13/08, ant elder <an...@gmail.com> wrote:
> >
> > I get this too, and can't figure it out either. Doesn't seem at all
> > intermittent for me.
> >
> > ...ant
> >
>
> --
> Thanks & Regards,
> Ramkumar Ramalingam
>
The majority of JAXB versions are consistent, I.e.
jaxb-api-2.1.jar
jaxb-impl-2.1.7.jar
I do see the following dependencies...
jaxb-impl-2.0.5.jar test Apache Tuscany SCA Tutorial Catalog EJB
geronimo-openejb-2.1.1 jaxb-impl-2.0.5
jaxb-xjc-2.1.5.jar compile Apache Tuscany SCA HelloWorld BPEL
Sample tuscany-wsdl2java-2.0-incubating-SNAPSHOT jaxb-xjc-2.1.5
I'll go and change these and see if there is any affect.
We also have a mixture of
saxon-8.7.jar
saxon-9.0.0.2.jar
Don't know what impact that has but doesn't look right to me.
Regards
Simon
Re: XQuery sample JAXB issue
Posted by Ramkumar R <ra...@gmail.com>.
I am seeing this too, but when i run from my eclipse IDE the test seems to
be passing.
On 6/13/08, ant elder <an...@gmail.com> wrote:
>
> I get this too, and can't figure it out either. Doesn't seem at all
> intermittent for me.
>
> ...ant
>
--
Thanks & Regards,
Ramkumar Ramalingam
Re: XQuery sample JAXB issue
Posted by ant elder <an...@gmail.com>.
On Thu, Jun 12, 2008 at 7:15 PM, Simon Laws <si...@googlemail.com>
wrote:
> I'm down to my last problem with the 2347 patch I'm trying to apply and
> it's
> a real good one. If feels awfully familiar. But I can't for the life of me
> work out how a patch which makes changes to do with validation errors can
> cause the attached exception in the XQuery sample. I'm on IBM JDK 5 and,
> rather awkwardly, this only happens for me when I compile from the top
> level. And possibly intermittently. We had something similar back in 1.0
> days and, IIRC, It turned out to be some Saxon version missmatch that
> caused
> these strange intermittent and mvn build location dependent compile
> problems.
>
> So is anyone else seeing this
> Anyone have any ideas
>
> I believe we have moved to a new JAXB version recently so in the mean time
> I'm going to broaden my search from looking at the diff files from the
> patch. I'll start by looking to see if all JAXB versions are the same.
>
> Regards
>
> Simon
>
>
> testQuoteJoin(xquery.quote.XQueryQuoteClientTestCase) Time elapsed: 39.281
> sec
> <<< ERROR!
> org.apache.tuscany.sca.databinding.TransformationException:
> com.sun.xml.bind.v2.
> runtime.IllegalAnnotationsException: 2 counts of
> IllegalAnnotationExceptions
> net.sf.saxon.om.NodeInfo is an interface, and JAXB can't handle interfaces.
> this problem is related to the following location:
> at net.sf.saxon.om.NodeInfo
> at protected net.sf.saxon.om.NodeInfo
> xquery.quote.jaxws.Provide
> AvailQuoteResponse._return
> at xquery.quote.jaxws.ProvideAvailQuoteResponse
> net.sf.saxon.om.NodeInfo does not have a no-arg default constructor.
> this problem is related to the following location:
> at net.sf.saxon.om.NodeInfo
> at protected net.sf.saxon.om.NodeInfo
> xquery.quote.jaxws.Provide
> AvailQuoteResponse._return
> at xquery.quote.jaxws.ProvideAvailQuoteResponse
>
> at
> org.apache.tuscany.sca.databinding.jaxb.axiom.JAXB2OMElement.transfor
> m(JAXB2OMElement.java:54)
> at
> org.apache.tuscany.sca.databinding.jaxb.axiom.JAXB2OMElement.transfor
> m(JAXB2OMElement.java:40)
> at
> org.apache.tuscany.sca.databinding.DefaultTransformerExtensionPoint$L
> azyPullTransformer.transform(DefaultTransformerExtensionPoint.java:199)
> at
> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(Mediator
> Impl.java:81)
> at
> org.apache.tuscany.sca.core.databinding.transformers.Input2InputTrans
> former.transform(Input2InputTransformer.java:201)
> at
> org.apache.tuscany.sca.core.databinding.transformers.Input2InputTrans
> former.transform(Input2InputTransformer.java:45)
> at
> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(Mediator
> Impl.java:81)
> at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterc
> eptor.transform(DataTransformationInterceptor.java:186)
> at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterc
> eptor.invoke(DataTransformationInterceptor.java:76)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:287)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:154)
> at $Proxy8.provideAvailQuote(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> net.sf.saxon.functions.ExtensionFunctionCall.invokeMethod(ExtensionFu
> nctionCall.java:533)
> at
> net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCa
> ll.java:256)
> at
> net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctio
> nCall.java:147)
> at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:89)
> at net.sf.saxon.value.Value.getIterator(Value.java:216)
> at
> net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:39
> 7)
> at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:848)
> at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:848)
> at net.sf.saxon.sort.DocumentSorter.iterate(DocumentSorter.java:84)
> at net.sf.saxon.expr.LazyExpression.iterate(LazyExpression.java:105)
> at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:89)
> at net.sf.saxon.expr.Literal.iterate(Literal.java:202)
> at
> net.sf.saxon.expr.FilterExpression.iterate(FilterExpression.java:1034
> )
> at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:308)
> at net.sf.saxon.expr.ForExpression.process(ForExpression.java:650)
> at net.sf.saxon.expr.LetExpression.process(LetExpression.java:380)
> at net.sf.saxon.expr.ForExpression.process(ForExpression.java:664)
> at
> net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java
> :553)
> at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:399)
> at net.sf.saxon.instruct.Instruction.process(Instruction.java:94)
> at
> net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.
> java:378)
> at
> net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java
> :324)
> at
> net.sf.saxon.expr.LetExpression.evaluateItem(LetExpression.java:360)
> at
> net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:295)
> at net.sf.saxon.instruct.UserFunction.call(UserFunction.java:318)
> at
> net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java
> :389)
> at
> net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:368)
>
> at
> net.sf.saxon.query.XQueryExpression.iterator(XQueryExpression.java:25
> 2)
> at
> org.apache.tuscany.sca.implementation.xquery.XQueryInvoker.doInvoke(X
> QueryInvoker.java:168)
> at
> org.apache.tuscany.sca.implementation.xquery.XQueryInvoker.invoke(XQu
> eryInvoker.java:185)
> at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterc
> eptor.invoke(DataTransformationInterceptor.java:78)
> at
> org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
> indingInvoker.java:61)
> at
> org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.i
> nvoke(PassByValueInterceptor.java:103)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:287)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:154)
> at $Proxy19.joinPriceAndAvailQuotes(Unknown Source)
> at
> xquery.quote.QuoteJoinLocalImpl.joinPriceAndAvailQuotes(QuoteJoinLoca
> lImpl.java:61)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.tuscany.sca.implementation.java.invocation.JavaImplementat
> ionInvoker.invoke(JavaImplementationInvoker.java:132)
> at
> org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
> indingInvoker.java:61)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:287)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:154)
> at $Proxy9.joinPriceAndAvailQuotes(Unknown Source)
> at
> xquery.quote.XQueryQuoteClientTestCase.testQuoteJoin(XQueryQuoteClien
> tTestCase.java:138)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMet
> hodRunner.java:99)
> at
> org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethod
> Runner.java:81)
> at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAn
> dAfterRunner.java:34)
> at
> org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunne
> r.java:75)
> at
> org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java
> :45)
> at
> org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(Te
> stClassMethodsRunner.java:75)
> at
> org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethod
> sRunner.java:36)
> at
> org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClass
> Runner.java:42)
> at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAn
> dAfterRunner.java:34)
> at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:5
> 2)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
> java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
> tSet(AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
> stractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:308)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
> ava:879)
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2
> counts
> of
> IllegalAnnotationExceptions
> net.sf.saxon.om.NodeInfo is an interface, and JAXB can't handle interfaces.
> this problem is related to the following location:
> at net.sf.saxon.om.NodeInfo
> at protected net.sf.saxon.om.NodeInfo
> xquery.quote.jaxws.Provide
> AvailQuoteResponse._return
> at xquery.quote.jaxws.ProvideAvailQuoteResponse
> net.sf.saxon.om.NodeInfo does not have a no-arg default constructor.
> this problem is related to the following location:
> at net.sf.saxon.om.NodeInfo
> at protected net.sf.saxon.om.NodeInfo
> xquery.quote.jaxws.Provide
> AvailQuoteResponse._return
> at xquery.quote.jaxws.ProvideAvailQuoteResponse
>
> at
> com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check
> (IllegalAnnotationsException.java:102)
> at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex
> tImpl.java:438)
> at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.ja
> va:286)
> at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
> 139)
> at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
> 117)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
> at
> org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.getJAXBConte
> xt(JAXBContextCache.java:273)
> at
> org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBC
> ontext(JAXBContextHelper.java:173)
> at
> org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBC
> ontext(JAXBContextHelper.java:205)
> at
> org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.createJAXBC
> ontext(JAXBContextHelper.java:93)
> at
> org.apache.tuscany.sca.databinding.jaxb.axiom.JAXB2OMElement.transfor
> m(JAXB2OMElement.java:52)
> ... 86 more
>
I get this too, and can't figure it out either. Doesn't seem at all
intermittent for me.
...ant