On Thu, Aug 18, 2011 at 10:30 AM, ant elder <ant.el...@gmail.com> wrote: > On Thu, Aug 18, 2011 at 10:19 AM, Simon Laws <simonsl...@googlemail.com> > wrote: >> On Thu, Aug 18, 2011 at 9:12 AM, <antel...@apache.org> wrote: >>> Author: antelder >>> Date: Thu Aug 18 08:12:00 2011 >>> New Revision: 1159076 >>> >>> URL: http://svn.apache.org/viewvc?rev=1159076&view=rev >>> Log: >>> Add exclude for 4020 test thats been failing for ages >>> >>> Modified: >>> tuscany/sca-java-2.x/trunk/testing/compliance-tests/policy/pom.xml >>> >>> Modified: tuscany/sca-java-2.x/trunk/testing/compliance-tests/policy/pom.xml >>> URL: >>> http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/testing/compliance-tests/policy/pom.xml?rev=1159076&r1=1159075&r2=1159076&view=diff >>> ============================================================================== >>> --- tuscany/sca-java-2.x/trunk/testing/compliance-tests/policy/pom.xml >>> (original) >>> +++ tuscany/sca-java-2.x/trunk/testing/compliance-tests/policy/pom.xml Thu >>> Aug 18 08:12:00 2011 >>> @@ -86,6 +86,7 @@ >>> <exclude>**/POL_3002_TestCase.java</exclude> >>> <exclude>**/POL_4015_TestCase.java</exclude> >>> <exclude>**/POL_4016_TestCase.java</exclude> >>> + <exclude>**/POL_4020_TestCase.java</exclude> >>> </excludes> >>> </configuration> >>> </plugin> >>> >>> >>> >> >> What was it failing with? I remember seeing failures a while back but >> not recently. >> > > Oh, its been failing for me for yonks, and i thought i remembered it > being mention before so thought it was failing for everyone. I've > never debugged it but the fail i get is: > > Implementation language set to: _Java > 18-Aug-2011 10:25:53 org.apache.tuscany.sca.node.impl.NodeImpl start > INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0 > domain: default > 18-Aug-2011 10:25:53 org.apache.tuscany.sca.node.impl.NodeFactoryImpl > loadContributions > INFO: Loading contribution: > file:/C:/Tuscany/SVN/trunk4/testing/compliance-tests/policy/target/oasis-contributions/POL_4020/target/PO > L_4020.zip > 18-Aug-2011 10:25:55 org.apache.tuscany.sca.node.impl.NodeFactoryImpl > loadContributions > INFO: Loading contribution: > file:/C:/Tuscany/SVN/trunk4/testing/compliance-tests/policy/target/oasis-contributions/Policy_General/tar > get/Policy_General.zip > 18-Aug-2011 10:25:56 org.apache.tuscany.sca.node.impl.NodeFactoryImpl > loadContributions > INFO: Loading contribution: > file:/C:/Tuscany/SVN/trunk4/testing/compliance-tests/policy/target/oasis-contributions/General_Java/targe > t/General_Java.zip > 18-Aug-2011 10:25:57 > org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl > [] (ComponentReferenceTargetNotFound) > WARNING: Component reference target not found at deployment time, it > might be a remote service elsewhere in the SCA Domain so well tr > y and resolve it again at runtime: {1} > 18-Aug-2011 10:25:57 > org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl > [] (ComponentReferenceTargetNotFound) > WARNING: Component reference target not found at deployment time, it > might be a remote service elsewhere in the SCA Domain so well tr > y and resolve it again at runtime: {1} > 2011-08-18 10:25:58.566::INFO: Logging to STDERR via > org.mortbay.log.StdErrLog > 18-Aug-2011 10:25:58 > org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl > addEndpoint > INFO: Add endpoint - binding.sca - > TestClient/TestClient_0002TestClient/TestInvocation > 18-Aug-2011 10:25:59 org.apache.tuscany.sca.http.jetty.JettyLogger info > INFO: jetty-6.1.19 > 18-Aug-2011 10:25:59 org.apache.tuscany.sca.http.jetty.JettyLogger info > INFO: Started SelectChannelConnector@0.0.0.0:8080 > 18-Aug-2011 10:25:59 org.apache.tuscany.sca.http.jetty.JettyServer > addServletMapping > INFO: Added Servlet mapping: > http://9.167.202.237:8080/TestClient/TestInvocation > 18-Aug-2011 10:25:59 > org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl > addEndpoint > INFO: Add endpoint - binding.ws - > http://9.167.202.237:8080/TestClient/TestInvocation > 18-Aug-2011 10:25:59 > org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl > addEndpoint > INFO: Add endpoint - binding.sca - > TEST_POL_4020Component1/TestComposite1Component1/Service1 > 18-Aug-2011 10:25:59 > org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl > addEndpoint > INFO: Add endpoint - binding.sca - TEST_POL_4020Component1/Service1 > 18-Aug-2011 10:26:00 > org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl > [] (EndpointReferenceCantBeMatched) > SEVERE: = Unable to match the endpoint reference > (@12359283)EndpointReference: URI = > TestClient#reference-binding(reference1/referen > ce1) WIRED_TARGET_IN_BINDING_URI Target = (@20541175)Endpoint: URI = > TEST_POL_4020Component1 [Unresolved] with the policy of the ser > vice to which it refers, matching process was Match policy of > (@12359283)EndpointReference: URI = > TestClient#reference-binding(refer > ence1/reference1) WIRED_TARGET_IN_BINDING_URI Target = > (@20541175)Endpoint: URI = TEST_POL_4020Component1 [Unresolved] to > (@30526967 > )Endpoint: URI = > TEST_POL_4020Component1#service-binding(Service1/Service1) No match > because there are unresolved intents [{http://d > ocs.oasis-open.org/ns/opencsa/scatests/200903}BindingIntent, > {http://docs.oasis-open.org/ns/opencsa/scatests/200903}ReferenceIntent] > ||| > Service fault received - detail: Test service got an exception during > execution: org.oasisopen.sca.ServiceRuntimeException Unable to > bind [] - = Unable to match the endpoint reference > (@12359283)EndpointReference: URI = > TestClient#reference-binding(reference1/refer > ence1) WIRED_TARGET_IN_BINDING_URI Target = (@20541175)Endpoint: URI > = TEST_POL_4020Component1 [Unresolved] with the policy of the s > ervice to which it refers, matching process was Match policy of > (@12359283)EndpointReference: URI = TestClient#reference-binding(ref > erence1/reference1) WIRED_TARGET_IN_BINDING_URI Target = > (@20541175)Endpoint: URI = TEST_POL_4020Component1 [Unresolved] to > (@305269 > 67)Endpoint: URI = > TEST_POL_4020Component1#service-binding(Service1/Service1) No match > because there are unresolved intents [{http:/ > /docs.oasis-open.org/ns/opencsa/scatests/200903}BindingIntent, > {http://docs.oasis-open.org/ns/opencsa/scatests/200903}ReferenceIntent > ] ||| > testClient.TestException_Exception: unknown > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at > com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:130) > at > com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108) > at > com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78) > at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107) > at $Proxy51.invokeTest(Unknown Source) > at client.BaseJAXWSTestRunner.invokeTest(BaseJAXWSTestRunner.java:213) > at client.BaseJAXWSTestRunner.testDummy(BaseJAXWSTestRunner.java:170) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) > at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > at org.junit.runners.ParentRunner.run(ParentRunner.java:220) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) > 18-Aug-2011 10:26:00 org.apache.tuscany.sca.node.impl.NodeImpl stop > INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0 > 18-Aug-2011 10:26:00 > org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl > removeEndpoint > INFO: Remove endpoint - binding.ws - > http://9.167.202.237:8080/TestClient/TestInvocation > 18-Aug-2011 10:26:00 org.apache.tuscany.sca.http.jetty.JettyServer > removeServletMapping > INFO: Removed Servlet mapping: /TestClient/TestInvocation > 18-Aug-2011 10:26:00 > org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl > removeEndpoint > INFO: Remove endpoint - binding.sca - > TestClient/TestClient_0002TestClient/TestInvocation > 18-Aug-2011 10:26:00 > org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl > removeEndpoint > INFO: Remove endpoint - binding.sca - TEST_POL_4020Component1/Service1 > 18-Aug-2011 10:26:00 > org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl > removeEndpoint > INFO: Remove endpoint - binding.sca - > TEST_POL_4020Component1/TestComposite1Component1/Service1 > Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 7.81 > sec <<< FAILURE! > > ...ant >
That looks like the appliesTo issue. The policy TC put a fix into the test at r106 in the OASIS svn and I haven't seen the failure in a while. Is this the trunk build that you're running? If so then can you first make sure you have the latest tests by deleting the OASIS test artifact from your local repo to let Maven reload them. Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com