On Mon, May 19, 2008 at 2:14 PM, Simon Laws <[EMAIL PROTECTED]>
wrote:

>
>
> On Sun, May 18, 2008 at 12:03 PM, Simon Laws <[EMAIL PROTECTED]>
> wrote:
>
>>
>>
>> On Sun, May 18, 2008 at 11:22 AM, ant elder <[EMAIL PROTECTED]> wrote:
>>
>>> 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 <
>>> [EMAIL PROTECTED]> 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.<init>(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
>>> >
>>>
>> I've just done a full build and see...
>>
>> [INFO] Error for project: Apache Tuscany SCA Echo Binding Extension Sample
>> (duri
>> ng install)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] There are test failures.
>>
>> Please refer to
>> C:\simon\tuscany\java-head\sca\samples\binding-echo-extension\ta
>> rget\surefire-reports for the individual test results.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Error for project: Apache Tuscany SCA CRUD Implementation Extension
>> Sampl
>> e (during install)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] There are test failures.
>>
>> Please refer to
>> C:\simon\tuscany\java-head\sca\samples\implementation-crud-exten
>> sion\target\surefire-reports for the individual test results.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Error for project: Apache Tuscany SCA Tutorial Integration Test
>> (during i
>> nstall)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] There are test failures.
>>
>> Please refer to
>> C:\simon\tuscany\java-head\sca\tutorial\store-test\target\surefi
>> re-reports for the individual test results.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD ERRORS
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 58 minutes 29 seconds
>> [INFO] Finished at: Sun May 18 11:34:14 BST 2008
>> [INFO] Final Memory: 103M/160M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>
> Indeed, sample-echo-binding has two tests and the order of the schema that
> are found are different in each case. I have a local fix that forces
> "tuscany-sca.xsd" to always be the first schema that I can check in if
> people want me to.
>
> Simon
>

Now that SVN is back on line I committed a schema order fix. I am still
getting the store-test problem which is either an exception or a JVM
crash...


Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 37.062 sec
<<< F
AILURE!
testShop(test.StoreSupplierTestCase)  Time elapsed: 36.968 sec  <<< ERROR!
org.osoa.sca.ServiceRuntimeException: HTTP status code: 500
        at
org.apache.tuscany.sca.binding.atom.provider.AtomBindingInvoker$Delet
eInvoker.invoke(AtomBindingInvoker.java:310)
        at
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.i
nvoke(PassByValueInterceptor.java:108)
        at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:286)
        at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:154)
        at $Proxy61.delete(Unknown Source)
        at client.ShopperImpl.shop(ShopperImpl.java:48)
        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)


OR


INFO: Loading composite:
http://localhost:9990/composite-resolved/composite:stor
e-supplier;http://store;store-supplier
Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000004 ExceptionCode=c0000005
ExceptionAddress=7F8F05A
3 ContextFlags=0001003f
Handler1=7EFB04E0 Handler2=7F057A80 InaccessibleAddress=00000000
EDI=FFFFFFFE ESI=00000000 EAX=00148208 EBX=00000001
ECX=00000001 EDX=134EF5DC
EIP=7F8F05A3 ESP=134EF478 EBP=0016F114
Module=c:\simon\apps\j2sdk5.0-ibm\jre\bin\j9dyn23.dll
Module_base_address=7F8E0000 Offset_in_DLL=000105a3
Target=2_30_20070420_12448_lHdSMR (Windows XP 5.1 build 2600 Service Pack 2)
CPU=x86 (2 logical CPUs) (0xbfe5b000 RAM)
JVMDUMP006I Processing Dump Event "gpf", detail "" - Please Wait.
JVMDUMP007I JVM Requesting System Dump using
'C:\simon\tuscany\java-head\sca\tut
orial\store-test\core.20080519.141052.16176.dmp'
JVMDUMP010I System Dump written to
C:\simon\tuscany\java-head\sca\tutorial\store
-test\core.20080519.141052.16176.dmp
JVMDUMP007I JVM Requesting Snap Dump using
'C:\simon\tuscany\java-head\sca\tutor
ial\store-test\Snap0002.20080519.141052.16176.trc'
JVMDUMP010I Snap Dump written to
C:\simon\tuscany\java-head\sca\tutorial\store-t
est\Snap0002.20080519.141052.16176.trc
JVMDUMP007I JVM Requesting Java Dump using
'C:\simon\tuscany\java-head\sca\tutor
ial\store-test\javacore.20080519.141052.16176.txt'
JVMDUMP010I Java Dump written to
C:\simon\tuscany\java-head\sca\tutorial\store-t
est\javacore.20080519.141052.16176.txt
JVMDUMP013I Processed Dump Event "gpf", detail "".


Anyone else see the same effect?

Simon

Reply via email to