Hi,
I believe I have a fix now. First, in the XQueryImplementationProvider, we
should set the SAXON databinding for the services/references of the
componentType (implemention) instead of the component. And then we need to
make sure inline schema of the WSDL available to the SDO model. After that,
I can run the test case successfully.
I need to run a full build to make sure there is no regression before I
check it in.
Thanks,
Raymond
----- Original Message -----
From: "Vasil Vasilev" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, September 15, 2007 6:58 AM
Subject: Re: Including the XQuery sample in the next release?
Hi Raymond,
The last problem is exactly the one I also faced. This is due to the fact
that the transformation form OMElement to NodeInfo does not happen, rather
transformation from OMElement to SDO DataObject happens. This leads that
the saxon parser is given not correct type of value.
I am now thinking of removig all Node-to-NodeInfo and
DataObject-to-NodeInfo transformers and provide just one
XMLStreamReader --> Saxon NodeInfo - as you proposed.
However I am not sure that this will solve the problem as the databinding
on the side of the XQuery component is not correct.
Bye, Vasil
>-------- Оригинално писмо --------
>От: "Raymond Feng" <[EMAIL PROTECTED]>
>Относно: Re: Including the XQuery sample in the next release?
>До: <[email protected]>
>Изпратено на: Събота, 2007, Септември 15 08:02:22 EEST
>----------------------------------
>
>Hi,
>
>I'm applying the patch and I have made some progress here.
>
>1) There are two WSDLs in module under the same namespace. And there are
>inline schemas in both WSDL under the same namespace too.
>
>2) We hit a problem in XmlSchema:
>http://issues.apache.org/jira/browse/WSCOMMONS-228. One of the inline
>schema
>is lost due to the same key (ns+uri). I added some workaround in our
>code.
>
>3) We also hit an issue in Axis2
>(https://issues.apache.org/jira/browse/AXIS2-3205). I merged two WSDLs as
>a
>workaround.
>
>Then I hit the following problem:
>
>Sep 14, 2007 9:32:25 PM org.apache.tuscany.sca.http.jetty.JettyServer
>addServletMapping
>
>INFO: Added Servlet mapping: http://localhost:8085/QuoteJoinService
>
>Sep 14, 2007 9:32:25 PM org.apache.tuscany.sca.http.jetty.JettyServer
>addServletMapping
>
>INFO: Added Servlet mapping:
>http://localhost:8085/AvailQuoteProviderService
>
>Error on line 11 of *module with no systemId*:
>
>XPTY0019: Required item type of first operand of '/' is node(); supplied
>value has item
>
>type java:org.example.price.impl.PriceQuoteImpl
>
>The stacktrace is:
>
>java.lang.reflect.UndeclaredThrowableException
> at $Proxy17.joinPriceAndAvailQuotes(Unknown Source)
> at
>xquery.quote.QuoteJoinLocalImpl.joinPriceAndAvailQuotesWs(QuoteJoinLocalImpl.java:57)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
>org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105)
> at
>org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
> at
>org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
> at $Proxy9.joinPriceAndAvailQuotesWs(Unknown Source)
> at
>xquery.quote.XQueryQuoteClientTestCase.testQuoteJoin(XQueryQuoteClientTestCase.java:112)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
>org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
> at
>org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
> at
>org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
> at
>org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
> at
>org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
> at
>org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:75)
> at
>org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:36)
> at
>org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
> at
>org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
> at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> at
>org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
> at
>org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at
>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at
>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at
>org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>Caused by: org.apache.tuscany.sca.interfacedef.util.FaultException:
>java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> at
>org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:80)
> at
>org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:73)
> at
>org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
> at
>org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
> ... 31 more
>
>
>
>----- Original Message -----
>From: "Vasil Vasilev" <[EMAIL PROTECTED]>
>To: <[email protected]>
>Sent: Friday, September 14, 2007 11:06 AM
>Subject: Re: Including the XQuery sample in the next release?
>
>
>> Hi,
>>
>> The patch is there, you can apply it. Unfortunately the test suite does
>> not pass, because of the issue I notified you some time ago, but this
>> is
>> not a regression introduced from my fix. Later I will try to figure out
>> the problem with the test.
>>
>> Bye, Vasil
>>
>>
>> >-------- Оригинално писмо --------
>> >От: Jean-Sebastien Delfino <[EMAIL PROTECTED]>
>> >Относно: Re: Including the XQuery sample in the next release?
>> >До: [email protected]
>> >Изпратено на: Петък, 2007, Септември 14 00:10:44 EEST
>> >----------------------------------
>> >
>> >Vasil Vasilev wrote:
>> >> Hi all,
>> >>
>> >> Good news: Everything works perfect with Saxon 8.7. i had only to
>> >> provide some minor changes in order to compile the code.
>> >>
>> >> Would you like me to provide a patch immediately, or I could also
>> >> make
>> >> fixes to some of the other issues and provide a patch for all fixes
>> >> at
>> >> once?
>> >>
>> >> Bye, Vasil
>> >>
>> >>
>> >Great!! A patch for that right now will be best, as we're probably be
>> >trying to cut the 1.0 branch tomorrow.
>> >
>> >It will give also give you more time to work on the other changes, and
>> >provide them in a different patch.
>> >
>> >Thanks!
>> >
>> >--
>> >Jean-Sebastien
>> >
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>> -----------------------------------------------------------------
>> ЕЛА и направи свой сайт, намери нови приятели!
>> WWW.ZOOM.BG
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-----------------------------------------------------------------
ЕЛА и направи свой сайт, намери нови приятели!
WWW.ZOOM.BG
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]