You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by igorkl <ik...@ucsd.edu> on 2007/11/25 19:29:18 UTC

Test error building SM-3.2 from source

Hi,

I am building SM-3.2 from source (to get it into eclipse).
I changed servicemix-m2-repo URL according to
http://www.nabble.com/ServiceMix-Dependencies-not-found-t4822980s12049.html
to avoid 'incubator/'.

The step1 finished without problems.

However the build in step2 is failing in test CxfSeClientProxyTest 
(src\deployables\serviceengines\servicemix-cxf-se\src\test\java\org\apache\servicemix\cxfse)
with:

+
-------------------------------------------------------------------------------
Test set: org.apache.servicemix.cxfse.CxfSeClientProxyTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.406 sec
<<< FAILURE!
testClientProxy(org.apache.servicemix.cxfse.CxfSeClientProxyTest)  Time
elapsed: 2.375 sec  <<< ERROR!
java.lang.NullPointerException
	at
org.apache.servicemix.cxfse.CxfSeClientProxyTest.getServiceUnitPath(CxfSeClientProxyTest.java:98)
	at
org.apache.servicemix.cxfse.CxfSeClientProxyTest.testClientProxy(CxfSeClientProxyTest.java:68)
	at
org.apache.servicemix.cxfse.CxfSeClientProxyTest.testClientProxy(CxfSeClientProxyTest.java:68)
	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:585)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	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:585)
	at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
	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:585)
	at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:244)
	at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814)

-

Please, any idea for workaround?
Thank you,

Igor
-- 
View this message in context: http://www.nabble.com/Test-error-building-SM-3.2-from-source-tf4871136s12049.html#a13938329
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Test error building SM-3.2 from source

Posted by Freeman Fang <fr...@iona.com>.
Hi,

There should be a configuration file 
deployables/serviceengines/servicemix-cxf-se/src/test/resources/org/apache/servicemix/cxfse/target/xbean.xml, 
but this file was filtered when build the src kit because the path of 
this file include "target" which is against the build rule. You can copy 
it from trunk to your src kit to get it work around, I will fix this 
issue very soon so that in 3.2.1 release you can get it.
I create  jira issue [1] to track it

[1]https://issues.apache.org/activemq/browse/SM-1149
Best Regards
Freeman

igorkl wrote:
> Hi,
>
> I am building SM-3.2 from source (to get it into eclipse).
> I changed servicemix-m2-repo URL according to
> http://www.nabble.com/ServiceMix-Dependencies-not-found-t4822980s12049.html
> to avoid 'incubator/'.
>
> The step1 finished without problems.
>
> However the build in step2 is failing in test CxfSeClientProxyTest 
> (src\deployables\serviceengines\servicemix-cxf-se\src\test\java\org\apache\servicemix\cxfse)
> with:
>
> +
> -------------------------------------------------------------------------------
> Test set: org.apache.servicemix.cxfse.CxfSeClientProxyTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.406 sec
> <<< FAILURE!
> testClientProxy(org.apache.servicemix.cxfse.CxfSeClientProxyTest)  Time
> elapsed: 2.375 sec  <<< ERROR!
> java.lang.NullPointerException
> 	at
> org.apache.servicemix.cxfse.CxfSeClientProxyTest.getServiceUnitPath(CxfSeClientProxyTest.java:98)
> 	at
> org.apache.servicemix.cxfse.CxfSeClientProxyTest.testClientProxy(CxfSeClientProxyTest.java:68)
> 	at
> org.apache.servicemix.cxfse.CxfSeClientProxyTest.testClientProxy(CxfSeClientProxyTest.java:68)
> 	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:585)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	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:585)
> 	at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
> 	at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
> 	at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
> 	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:585)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:244)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814)
>
> -
>
> Please, any idea for workaround?
> Thank you,
>
> Igor
>