Return-Path: Delivered-To: apmail-ws-tuscany-dev-archive@locus.apache.org Received: (qmail 16065 invoked from network); 18 May 2008 10:22:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2008 10:22:33 -0000 Received: (qmail 37722 invoked by uid 500); 18 May 2008 10:22:34 -0000 Delivered-To: apmail-ws-tuscany-dev-archive@ws.apache.org Received: (qmail 37682 invoked by uid 500); 18 May 2008 10:22:34 -0000 Mailing-List: contact tuscany-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-dev@ws.apache.org Received: (qmail 37670 invoked by uid 99); 18 May 2008 10:22:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2008 03:22:33 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ant.elder@gmail.com designates 209.85.200.175 as permitted sender) Received: from [209.85.200.175] (HELO wf-out-1314.google.com) (209.85.200.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2008 10:21:48 +0000 Received: by wf-out-1314.google.com with SMTP id 25so925508wfc.28 for ; Sun, 18 May 2008 03:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; bh=O1JVqLUYe0NE/CfJ2f4lvKpNUPFfSniE2P3aqaURk14=; b=FgAo7ppCbWi399VAkZwlDsQwbssI54R3QzcfYrGf50ECzfGNvevBlh/PSSmtwQd1RhM1MpxE5uySswIsqXzZQ83yqwPY4qThA4cFRvTqIYplodmh5SCfR8cZ2roti1ALxPNtQB9GEflMHOas04Sl6VpJQVht40D+ZaQ2GlGAAtg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=W1uZ5R2/8C8sdnwx4xAp5G+HXBtFkZ9hnQyhQtb8p2AW4Fb+138JrAAoUSufIUFolFY4H5X0Tqncwu9DFB+f5XpTjfGc8km0r2BHTjeS/d3KI+hhVETM6jqJJRhIO0Xdo15xObU0lC6v2D3SuGT0rsaEIzZRtV+F61Rd8Ju0bNo= Received: by 10.142.230.11 with SMTP id c11mr2318135wfh.334.1211106124164; Sun, 18 May 2008 03:22:04 -0700 (PDT) Received: by 10.142.180.5 with HTTP; Sun, 18 May 2008 03:22:04 -0700 (PDT) Message-ID: <71e1b5740805180322w590aaca2jdabb3ad2b7cdb3bb@mail.gmail.com> Date: Sun, 18 May 2008 11:22:04 +0100 From: "ant elder" Reply-To: antelder@apache.org To: tuscany-dev@ws.apache.org Subject: Re: Intermittent failures in schema validation In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13648_15160900.1211106124165" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_13648_15160900.1211106124165 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm seeing the same problem. (... and it doesn't seem very intermittent) ...ant On Sun, May 18, 2008 at 10:59 AM, Rajini Sivaram < rajinisivaram@googlemail.com> wrote: > Hello, > > With the latest codebase, I get intermittent exceptions thrown from the > extension samples - the following exception is from samples/binding-echo. > It > looks like the schemas are not in the order they are expected to be in > (sample-binding-echo.xsd and tuscany-sca.xsd). Since the schema list is > obtained using classLoader.getResources (through ServiceDiscovery) their > ordering cannot really be guaranteed. > > > org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: > org.apache.tuscany.sca.contribution.service.ContributionException: > java.lang.IllegalStateException: org.xml.sax.SAXParseException: > src-resolve: > Cannot resolve the name 'sca:Binding' to a(n) 'type definition' component. > at > > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:276) > at > > org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:70) > at echo.EchoBindingTestCase.setUp(EchoBindingTestCase.java:35) > at junit.framework.TestCase.runBare(TestCase.java:132) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at junit.framework.TestSuite.runTest(TestSuite.java:232) > at junit.framework.TestSuite.run(TestSuite.java:227) > at > > org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35) > 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.osoa.sca.ServiceRuntimeException: > org.apache.tuscany.sca.contribution.service.ContributionException: > java.lang.IllegalStateException: org.xml.sax.SAXParseException: > src-resolve: > Cannot resolve the name 'sca:Binding' to a(n) 'type definition' component. > at > > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:293) > at > > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171) > at > > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.(DefaultSCADomain.java:113) > at > > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:242) > ... 16 more > Caused by: > org.apache.tuscany.sca.contribution.service.ContributionException: > java.lang.IllegalStateException: org.xml.sax.SAXParseException: > src-resolve: > Cannot resolve the name 'sca:Binding' to a(n) 'type definition' component. > at > > org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:362) > at > > org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165) > at > > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291) > ... 19 more > Caused by: java.lang.IllegalStateException: org.xml.sax.SAXParseException: > src-resolve: Cannot resolve the name 'sca:Binding' to a(n) 'type > definition' > component. > at > > org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.java:147) > at > > org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.createXMLStreamReader(DefaultValidatingXMLInputFactory.java:200) > at > > org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:106) > at > > org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:55) > at > > org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.read(ExtensibleURLArtifactProcessor.java:76) > at > > org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processReadPhase(ContributionServiceImpl.java:465) > at > > org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:360) > ... 21 more > Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the > name 'sca:Binding' to a(n) 'type definition' component. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at > org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown > Source) > at org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown > Source) > at > > org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexContent(Unknown > Source) > at > > org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(Unknown > Source) > at > > org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(Unknown > Source) > at org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown > Source) > at > > org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(Unknown > Source) > at > > org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseGlobal(Unknown > Source) > at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown > Source) > at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown > Source) > at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) > at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) > at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) > at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown > Source) > at > > org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$2.run(DefaultValidatingXMLInputFactory.java:136) > at > > org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$2.run(DefaultValidatingXMLInputFactory.java:1) > at java.security.AccessController.doPrivileged(AccessController.java:246) > at > > org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.java:134) > ... 27 more > > > > Thank you... > > Regards, > > Rajini > ------=_Part_13648_15160900.1211106124165--