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 Nash <na...@hursley.ibm.com> on 2007/11/18 20:16:11 UTC
Intermittent build failure in node-impl
When doing a top-level build of modules today from a fairly recent checkout
of trunk, I got two errors in the node-impl tests. Rerunning the build of
this module from its own directory was successful. Any ideas? My stack
trace output is below.
Simon
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.tuscany.sca.node.impl.DomainDrivenTestCase
Setting up domain
18-Nov-2007 15:48:18 org.apache.tuscany.sca.domain.impl.SCADomainImpl init
INFO: Domain management configured from file:/H:/tuscany55/sca/modules/domain-im
pl/target/tuscany-domain-impl-1.1-incubating-SNAPSHOT.jar
18-Nov-2007 15:48:23 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
18-Nov-2007 15:48:24 org.apache.catalina.startup.ContextConfig defaultWebConfig
INFO: No default web.xml
18-Nov-2007 15:48:24 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9999
18-Nov-2007 15:48:24 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-9999
18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServer addServletM
apping
INFO: Added Servlet mapping: http://EUREKA:9999/domain/*
18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServer addServletM
apping
INFO: Added Servlet mapping: http://EUREKA:9999/DomainManagerComponent/DomainMan
agerNodeEventService
18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServer addServletM
apping
INFO: Added Servlet mapping: http://EUREKA:9999/DomainManagerComponent/DomainMan
agementService/*
18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServer addServletM
apping
INFO: Added Servlet mapping: http://EUREKA:9999/DomainManagerComponent/DomainMan
agementService
18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServer addServletM
apping
INFO: Added Servlet mapping: http://EUREKA:9999/SCADomain/scaDomain.js
Setting up calculator nodes
18-Nov-2007 15:48:25 org.apache.tuscany.sca.domain.impl.SCADomainImpl removeNode
INFO: Removed node: http://localhost:8100/nodeA
18-Nov-2007 15:48:25 org.apache.tuscany.sca.domain.impl.SCADomainImpl addNode
INFO: Registered node: http://localhost:8100/nodeA at endpoint http://localhost:
8100/nodeA
18-Nov-2007 15:48:25 org.apache.tuscany.sca.node.impl.SCADomainProxyImpl start
INFO: Domain management configured from file:/H:/tuscany55/sca/modules/node-impl
/target/classes/
18-Nov-2007 15:48:26 org.apache.tuscany.sca.domain.impl.SCADomainImpl registerSe
rviceEndpoint
INFO: Registered service: DomainManagerComponent
18-Nov-2007 15:48:26 org.apache.tuscany.sca.binding.sca.axis2.impl.Axis2SCAServi
ceBindingProvider <init>
WARNING: Unable to register service: http://localhost:9999 http://localhost:810
0/nodeA DomainManagerComponent org.apache.tuscany.sca.assembly.SCABinding http:/
/EUREKA:8100/DomainManagerComponent
org.apache.tuscany.sca.node.NodeException: org.apache.tuscany.sca.domain.DomainE
xception: org.apache.tuscany.sca.core.assembly.ActivationException: java.lang.Ru
ntimeException: org.apache.axis2.AxisFault: The module.xml file cannot be found
for the module: jar:file:/H:/tuscany55/sca/modules/binding-ws-axis2/target/tusca
ny-binding-ws-axis2-1.1-incubating-SNAPSHOT.jar!/org/apache/tuscany/sca/binding/
ws/axis2/engine/config/modules/rampart-1.3.mar
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 8.973 sec <<< FA
ILURE!
testCalculator(org.apache.tuscany.sca.node.impl.DomainDrivenTestCase) Time elap
sed: 0.01 sec <<< ERROR!
java.lang.NullPointerException
at org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.testCalculator(
DomainDrivenTestCase.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
18-Nov-2007 15:48:27 org.apache.tuscany.sca.domain.impl.SCADomainImpl init
INFO: Domain management configured from file:/H:/tuscany55/sca/modules/domain-im
pl/target/tuscany-domain-impl-1.1-incubating-SNAPSHOT.jar
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:308)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:879)
org.apache.tuscany.sca.node.impl.DomainDrivenTestCase Time elapsed: 0.01 sec <
<< ERROR!
java.lang.NullPointerException
at org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.destroy(DomainD
rivenTestCase.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAn
dAfterRunner.java:74)
at org.junit.internal.runners.BeforeAndAfterRunner.runAfters(BeforeAndAf
terRunner.java:65)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAn
dAfterRunner.java:37)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:308)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:879)
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Intermittent build failure in node-impl
Posted by Simon Laws <si...@googlemail.com>.
On Nov 19, 2007 12:10 PM, Simon Nash <na...@hursley.ibm.com> wrote:
> I noticed that today's continuum build failed in node-impl. The error
> looks similar to this but not identical. It would be good to resolve
> this so that the continuum build works. As a temporary workaround,
> perhaps we could comment out the failing test case.
>
> Simon
>
> Simon Laws wrote:
>
> > On Nov 18, 2007 7:16 PM, Simon Nash <na...@hursley.ibm.com> wrote:
> >
> >
> >>When doing a top-level build of modules today from a fairly recent
> >>checkout
> >>of trunk, I got two errors in the node-impl tests. Rerunning the build
> of
> >>this module from its own directory was successful. Any ideas? My stack
> >>trace output is below.
> >>
> >> Simon
> >>
> >>-------------------------------------------------------
> >> T E S T S
> >>-------------------------------------------------------
> >>Running org.apache.tuscany.sca.node.impl.DomainDrivenTestCase
> >>Setting up domain
> >>18-Nov-2007 15:48:18 org.apache.tuscany.sca.domain.impl.SCADomainImplinit
> >>INFO: Domain management configured from
> >>file:/H:/tuscany55/sca/modules/domain-im
> >>pl/target/tuscany-domain-impl-1.1-incubating-SNAPSHOT.jar
> >>18-Nov-2007 15:48:23 org.apache.catalina.core.StandardEngine start
> >>INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
> >>18-Nov-2007 15:48:24
> org.apache.catalina.startup.ContextConfigdefaultWebConfig
> >>INFO: No default web.xml
> >>18-Nov-2007 15:48:24 org.apache.coyote.http11.Http11Protocol init
> >>INFO: Initializing Coyote HTTP/1.1 on http-9999
> >>18-Nov-2007 15:48:24 org.apache.coyote.http11.Http11Protocol start
> >>INFO: Starting Coyote HTTP/1.1 on http-9999
> >>18-Nov-2007 15:48:25
> org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> >>apping
> >>INFO: Added Servlet mapping: http://EUREKA:9999/domain/*
> >>18-Nov-2007 15:48:25
> org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> >>apping
> >>INFO: Added Servlet mapping:
> >>http://EUREKA:9999/DomainManagerComponent/DomainMan
> >>agerNodeEventService
> >>18-Nov-2007 15:48:25
> org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> >>apping
> >>INFO: Added Servlet mapping:
> >>http://EUREKA:9999/DomainManagerComponent/DomainMan
> >>agementService/*
> >>18-Nov-2007 15:48:25
> org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> >>apping
> >>INFO: Added Servlet mapping:
> >>http://EUREKA:9999/DomainManagerComponent/DomainMan
> >>agementService
> >>18-Nov-2007 15:48:25
> org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> >>apping
> >>INFO: Added Servlet mapping: http://EUREKA:9999/SCADomain/scaDomain.js
> >>Setting up calculator nodes
> >>18-Nov-2007 15:48:25
> org.apache.tuscany.sca.domain.impl.SCADomainImplremoveNode
> >>
> >>INFO: Removed node: http://localhost:8100/nodeA
> >>18-Nov-2007 15:48:25
> org.apache.tuscany.sca.domain.impl.SCADomainImpladdNode
> >>INFO: Registered node: http://localhost:8100/nodeA at endpoint
> >>http://localhost:
> >>8100/nodeA
> >>18-Nov-2007 15:48:25
> org.apache.tuscany.sca.node.impl.SCADomainProxyImplstart
> >>INFO: Domain management configured from
> >>file:/H:/tuscany55/sca/modules/node-impl
> >>/target/classes/
> >>18-Nov-2007 15:48:26
> org.apache.tuscany.sca.domain.impl.SCADomainImplregisterSe
> >>rviceEndpoint
> >>INFO: Registered service: DomainManagerComponent
> >>18-Nov-2007 15:48:26
> >>org.apache.tuscany.sca.binding.sca.axis2.impl.Axis2SCAServi
> >>ceBindingProvider <init>
> >>WARNING: Unable to register service: http://localhost:9999
> >>http://localhost:810
> >>0/nodeA DomainManagerComponent
> org.apache.tuscany.sca.assembly.SCABindinghttp:/
> >>/EUREKA:8100/DomainManagerComponent
> >>org.apache.tuscany.sca.node.NodeException:
> >>org.apache.tuscany.sca.domain.DomainE
> >>xception: org.apache.tuscany.sca.core.assembly.ActivationException:
> >>java.lang.Ru
> >>ntimeException: org.apache.axis2.AxisFault: The module.xml file cannot
> be
> >>found
> >>for the module:
> >>jar:file:/H:/tuscany55/sca/modules/binding-ws-axis2/target/tusca
> >>
> >>
> ny-binding-ws-axis2-1.1-incubating-SNAPSHOT.jar!/org/apache/tuscany/sca/binding/
> >>ws/axis2/engine/config/modules/rampart-1.3.mar
> >>Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 8.973sec
> >><<< FA
> >>ILURE!
> >>testCalculator(org.apache.tuscany.sca.node.impl.DomainDrivenTestCase)
> >> Time elap
> >>sed: 0.01 sec <<< ERROR!
> >>java.lang.NullPointerException
> >> at
> >>org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.testCalculator(
> >>DomainDrivenTestCase.java:111)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke
> >>(NativeMethodAccessorImpl.
> >>java:39)
> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>(DelegatingMethodAcces
> >>sorImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> 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:39)
> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>(DelegatingMethodAcces
> >>sorImpl.java:25)
> >>18-Nov-2007 15:48:27 org.apache.tuscany.sca.domain.impl.SCADomainImplinit
> >>INFO: Domain management configured from
> >>file:/H:/tuscany55/sca/modules/domain-im
> >>pl/target/tuscany-domain-impl-1.1-incubating-SNAPSHOT.jar
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at
> >>org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> >>refireBooter.java:308)
> >> at org.apache.maven.surefire.booter.SurefireBooter.main(
> >>SurefireBooter.j
> >>ava:879)
> >>
> >>org.apache.tuscany.sca.node.impl.DomainDrivenTestCase Time elapsed:
> 0.01sec <
> >><< ERROR!
> >>java.lang.NullPointerException
> >> at org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.destroy
> >>(DomainD
> >>rivenTestCase.java:101)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke
> >>(NativeMethodAccessorImpl.
> >>java:39)
> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>(DelegatingMethodAcces
> >>sorImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod
> >>(BeforeAn
> >>dAfterRunner.java:74)
> >> at org.junit.internal.runners.BeforeAndAfterRunner.runAfters
> >>(BeforeAndAf
> >>terRunner.java:65)
> >> at org.junit.internal.runners.BeforeAndAfterRunner.runProtected
> >>(BeforeAn
> >>dAfterRunner.java:37)
> >> 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:39)
> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>(DelegatingMethodAcces
> >>sorImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at
> >>org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> >>refireBooter.java:308)
> >> at org.apache.maven.surefire.booter.SurefireBooter.main(
> >>SurefireBooter.j
> >>ava:879)
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >>
> >>You can ignore the "WARNING: Unable to register service...". That's a
> >
> > symptom of me getting rid of the extra Tuscany runtime we used to
> launch.
> > I don't know why the Axis2 error is being reported. I'll give it a go
> here
> > as see if I get the same. It may be causing the first null pointer. The
> > second null pointer is due to the test not starting up properly.
> >
> > Simon
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
> Am just about to check some fixes in.
Simon
Re: Intermittent build failure in node-impl
Posted by Simon Nash <na...@hursley.ibm.com>.
I noticed that today's continuum build failed in node-impl. The error
looks similar to this but not identical. It would be good to resolve
this so that the continuum build works. As a temporary workaround,
perhaps we could comment out the failing test case.
Simon
Simon Laws wrote:
> On Nov 18, 2007 7:16 PM, Simon Nash <na...@hursley.ibm.com> wrote:
>
>
>>When doing a top-level build of modules today from a fairly recent
>>checkout
>>of trunk, I got two errors in the node-impl tests. Rerunning the build of
>>this module from its own directory was successful. Any ideas? My stack
>>trace output is below.
>>
>> Simon
>>
>>-------------------------------------------------------
>> T E S T S
>>-------------------------------------------------------
>>Running org.apache.tuscany.sca.node.impl.DomainDrivenTestCase
>>Setting up domain
>>18-Nov-2007 15:48:18 org.apache.tuscany.sca.domain.impl.SCADomainImpl init
>>INFO: Domain management configured from
>>file:/H:/tuscany55/sca/modules/domain-im
>>pl/target/tuscany-domain-impl-1.1-incubating-SNAPSHOT.jar
>>18-Nov-2007 15:48:23 org.apache.catalina.core.StandardEngine start
>>INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
>>18-Nov-2007 15:48:24 org.apache.catalina.startup.ContextConfigdefaultWebConfig
>>INFO: No default web.xml
>>18-Nov-2007 15:48:24 org.apache.coyote.http11.Http11Protocol init
>>INFO: Initializing Coyote HTTP/1.1 on http-9999
>>18-Nov-2007 15:48:24 org.apache.coyote.http11.Http11Protocol start
>>INFO: Starting Coyote HTTP/1.1 on http-9999
>>18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
>>apping
>>INFO: Added Servlet mapping: http://EUREKA:9999/domain/*
>>18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
>>apping
>>INFO: Added Servlet mapping:
>>http://EUREKA:9999/DomainManagerComponent/DomainMan
>>agerNodeEventService
>>18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
>>apping
>>INFO: Added Servlet mapping:
>>http://EUREKA:9999/DomainManagerComponent/DomainMan
>>agementService/*
>>18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
>>apping
>>INFO: Added Servlet mapping:
>>http://EUREKA:9999/DomainManagerComponent/DomainMan
>>agementService
>>18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
>>apping
>>INFO: Added Servlet mapping: http://EUREKA:9999/SCADomain/scaDomain.js
>>Setting up calculator nodes
>>18-Nov-2007 15:48:25 org.apache.tuscany.sca.domain.impl.SCADomainImplremoveNode
>>
>>INFO: Removed node: http://localhost:8100/nodeA
>>18-Nov-2007 15:48:25 org.apache.tuscany.sca.domain.impl.SCADomainImpladdNode
>>INFO: Registered node: http://localhost:8100/nodeA at endpoint
>>http://localhost:
>>8100/nodeA
>>18-Nov-2007 15:48:25 org.apache.tuscany.sca.node.impl.SCADomainProxyImplstart
>>INFO: Domain management configured from
>>file:/H:/tuscany55/sca/modules/node-impl
>>/target/classes/
>>18-Nov-2007 15:48:26 org.apache.tuscany.sca.domain.impl.SCADomainImplregisterSe
>>rviceEndpoint
>>INFO: Registered service: DomainManagerComponent
>>18-Nov-2007 15:48:26
>>org.apache.tuscany.sca.binding.sca.axis2.impl.Axis2SCAServi
>>ceBindingProvider <init>
>>WARNING: Unable to register service: http://localhost:9999
>>http://localhost:810
>>0/nodeA DomainManagerComponent org.apache.tuscany.sca.assembly.SCABindinghttp:/
>>/EUREKA:8100/DomainManagerComponent
>>org.apache.tuscany.sca.node.NodeException:
>>org.apache.tuscany.sca.domain.DomainE
>>xception: org.apache.tuscany.sca.core.assembly.ActivationException:
>>java.lang.Ru
>>ntimeException: org.apache.axis2.AxisFault: The module.xml file cannot be
>>found
>>for the module:
>>jar:file:/H:/tuscany55/sca/modules/binding-ws-axis2/target/tusca
>>
>>ny-binding-ws-axis2-1.1-incubating-SNAPSHOT.jar!/org/apache/tuscany/sca/binding/
>>ws/axis2/engine/config/modules/rampart-1.3.mar
>>Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 8.973 sec
>><<< FA
>>ILURE!
>>testCalculator(org.apache.tuscany.sca.node.impl.DomainDrivenTestCase)
>> Time elap
>>sed: 0.01 sec <<< ERROR!
>>java.lang.NullPointerException
>> at
>>org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.testCalculator(
>>DomainDrivenTestCase.java:111)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke
>>(NativeMethodAccessorImpl.
>>java:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>>(DelegatingMethodAcces
>>sorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> 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:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>>(DelegatingMethodAcces
>>sorImpl.java:25)
>>18-Nov-2007 15:48:27 org.apache.tuscany.sca.domain.impl.SCADomainImpl init
>>INFO: Domain management configured from
>>file:/H:/tuscany55/sca/modules/domain-im
>>pl/target/tuscany-domain-impl-1.1-incubating-SNAPSHOT.jar
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>>org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
>>refireBooter.java:308)
>> at org.apache.maven.surefire.booter.SurefireBooter.main(
>>SurefireBooter.j
>>ava:879)
>>
>>org.apache.tuscany.sca.node.impl.DomainDrivenTestCase Time elapsed: 0.01sec <
>><< ERROR!
>>java.lang.NullPointerException
>> at org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.destroy
>>(DomainD
>>rivenTestCase.java:101)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke
>>(NativeMethodAccessorImpl.
>>java:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>>(DelegatingMethodAcces
>>sorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod
>>(BeforeAn
>>dAfterRunner.java:74)
>> at org.junit.internal.runners.BeforeAndAfterRunner.runAfters
>>(BeforeAndAf
>>terRunner.java:65)
>> at org.junit.internal.runners.BeforeAndAfterRunner.runProtected
>>(BeforeAn
>>dAfterRunner.java:37)
>> 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:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>>(DelegatingMethodAcces
>>sorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>>org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
>>refireBooter.java:308)
>> at org.apache.maven.surefire.booter.SurefireBooter.main(
>>SurefireBooter.j
>>ava:879)
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>>For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>
>>You can ignore the "WARNING: Unable to register service...". That's a
>
> symptom of me getting rid of the extra Tuscany runtime we used to launch.
> I don't know why the Axis2 error is being reported. I'll give it a go here
> as see if I get the same. It may be causing the first null pointer. The
> second null pointer is due to the test not starting up properly.
>
> Simon
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Intermittent build failure in node-impl
Posted by Simon Laws <si...@googlemail.com>.
On Nov 18, 2007 7:16 PM, Simon Nash <na...@hursley.ibm.com> wrote:
> When doing a top-level build of modules today from a fairly recent
> checkout
> of trunk, I got two errors in the node-impl tests. Rerunning the build of
> this module from its own directory was successful. Any ideas? My stack
> trace output is below.
>
> Simon
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.tuscany.sca.node.impl.DomainDrivenTestCase
> Setting up domain
> 18-Nov-2007 15:48:18 org.apache.tuscany.sca.domain.impl.SCADomainImpl init
> INFO: Domain management configured from
> file:/H:/tuscany55/sca/modules/domain-im
> pl/target/tuscany-domain-impl-1.1-incubating-SNAPSHOT.jar
> 18-Nov-2007 15:48:23 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
> 18-Nov-2007 15:48:24 org.apache.catalina.startup.ContextConfigdefaultWebConfig
> INFO: No default web.xml
> 18-Nov-2007 15:48:24 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-9999
> 18-Nov-2007 15:48:24 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-9999
> 18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> apping
> INFO: Added Servlet mapping: http://EUREKA:9999/domain/*
> 18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> apping
> INFO: Added Servlet mapping:
> http://EUREKA:9999/DomainManagerComponent/DomainMan
> agerNodeEventService
> 18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> apping
> INFO: Added Servlet mapping:
> http://EUREKA:9999/DomainManagerComponent/DomainMan
> agementService/*
> 18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> apping
> INFO: Added Servlet mapping:
> http://EUREKA:9999/DomainManagerComponent/DomainMan
> agementService
> 18-Nov-2007 15:48:25 org.apache.tuscany.sca.http.tomcat.TomcatServeraddServletM
> apping
> INFO: Added Servlet mapping: http://EUREKA:9999/SCADomain/scaDomain.js
> Setting up calculator nodes
> 18-Nov-2007 15:48:25 org.apache.tuscany.sca.domain.impl.SCADomainImplremoveNode
>
> INFO: Removed node: http://localhost:8100/nodeA
> 18-Nov-2007 15:48:25 org.apache.tuscany.sca.domain.impl.SCADomainImpladdNode
> INFO: Registered node: http://localhost:8100/nodeA at endpoint
> http://localhost:
> 8100/nodeA
> 18-Nov-2007 15:48:25 org.apache.tuscany.sca.node.impl.SCADomainProxyImplstart
> INFO: Domain management configured from
> file:/H:/tuscany55/sca/modules/node-impl
> /target/classes/
> 18-Nov-2007 15:48:26 org.apache.tuscany.sca.domain.impl.SCADomainImplregisterSe
> rviceEndpoint
> INFO: Registered service: DomainManagerComponent
> 18-Nov-2007 15:48:26
> org.apache.tuscany.sca.binding.sca.axis2.impl.Axis2SCAServi
> ceBindingProvider <init>
> WARNING: Unable to register service: http://localhost:9999
> http://localhost:810
> 0/nodeA DomainManagerComponent org.apache.tuscany.sca.assembly.SCABindinghttp:/
> /EUREKA:8100/DomainManagerComponent
> org.apache.tuscany.sca.node.NodeException:
> org.apache.tuscany.sca.domain.DomainE
> xception: org.apache.tuscany.sca.core.assembly.ActivationException:
> java.lang.Ru
> ntimeException: org.apache.axis2.AxisFault: The module.xml file cannot be
> found
> for the module:
> jar:file:/H:/tuscany55/sca/modules/binding-ws-axis2/target/tusca
>
> ny-binding-ws-axis2-1.1-incubating-SNAPSHOT.jar!/org/apache/tuscany/sca/binding/
> ws/axis2/engine/config/modules/rampart-1.3.mar
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 8.973 sec
> <<< FA
> ILURE!
> testCalculator(org.apache.tuscany.sca.node.impl.DomainDrivenTestCase)
> Time elap
> sed: 0.01 sec <<< ERROR!
> java.lang.NullPointerException
> at
> org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.testCalculator(
> DomainDrivenTestCase.java:111)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> 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:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
> 18-Nov-2007 15:48:27 org.apache.tuscany.sca.domain.impl.SCADomainImpl init
> INFO: Domain management configured from
> file:/H:/tuscany55/sca/modules/domain-im
> pl/target/tuscany-domain-impl-1.1-incubating-SNAPSHOT.jar
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:308)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.j
> ava:879)
>
> org.apache.tuscany.sca.node.impl.DomainDrivenTestCase Time elapsed: 0.01sec <
> << ERROR!
> java.lang.NullPointerException
> at org.apache.tuscany.sca.node.impl.DomainDrivenTestCase.destroy
> (DomainD
> rivenTestCase.java:101)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod
> (BeforeAn
> dAfterRunner.java:74)
> at org.junit.internal.runners.BeforeAndAfterRunner.runAfters
> (BeforeAndAf
> terRunner.java:65)
> at org.junit.internal.runners.BeforeAndAfterRunner.runProtected
> (BeforeAn
> dAfterRunner.java:37)
> 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:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:308)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.j
> ava:879)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
> You can ignore the "WARNING: Unable to register service...". That's a
symptom of me getting rid of the extra Tuscany runtime we used to launch.
I don't know why the Axis2 error is being reported. I'll give it a go here
as see if I get the same. It may be causing the first null pointer. The
second null pointer is due to the test not starting up properly.
Simon