You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Kulchar <ek...@yahoo.com> on 2008/05/13 20:15:51 UTC

Camel example "mvn clean test" failure

Hello,

I downloaded a brand spanking new copy of ServiceMix 3.2.1, wnet tot he
examples/camel directory and typed in "mvn clean test".  The test
SpringWithNoVersionsTest failed with the following surefile error file.  I
only copied a portion of the file to be brief.
-----------------------------------------------------------
-------------------------------------------------------------------------------
Test set: org.apache.servicemix.test.SpringWithNoVersionsTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.923 sec
<<< FAILURE!
testDeploy(org.apache.servicemix.test.SpringWithNoVersionsTest)  Time
elapsed: 11.907 sec  <<< ERROR!
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.servicemix.jbi.container.SpringJBIContainer' defined
in class path resource [test1-noversions.xml]: Invocation of init method
failed; nested exception is java.lang.Exception: <?xml version="1.0"
encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>installComponent</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>file://C:\Documents and
Settings\............./.m2/repository/org/apache/servicemix/servicemix-camel/3.2.1/servicemix-camel-3.2.1-installer.zip</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>java.net.UnknownHostException: C</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException:
java.net.UnknownHostException: C
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:595)
	at
org.apache.servicemix.jbi.framework.InstallationService.install(InstallationService.java:276)
	at
org.apache.servicemix.jbi.framework.AdminCommandsService.installComponent(AdminCommandsService.java:62)
	at
org.apache.servicemix.jbi.container.InstallComponent.doDeploy(InstallComponent.java:66)
	at
org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
	at
org.apache.servicemix.test.SpringWithNoVersionsTest.createApplicationContext(SpringWithNoVersionsTest.java:29)
	at org.apache.servicemix.test.SpringTest.setUp(SpringTest.java:41)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	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:597)
	at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
	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:289)
	at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Caused by: java.net.UnknownHostException: C
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
	at java.net.Socket.connect(Socket.java:519)
	at java.net.Socket.connect(Socket.java:469)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
	at sun.net.NetworkClient.openServer(NetworkClient.java:118)
	at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
	at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
	at
sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
	at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:352)
	at java.net.URL.openStream(URL.java:1009)
	at org.apache.servicemix.jbi.util.FileUtil.unpackArchive(FileUtil.java:154)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:582)
	... 40 more

-- 
View this message in context: http://www.nabble.com/Camel-example-%22mvn-clean-test%22-failure-tp17215064p17215064.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Camel example "mvn clean test" failure

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, May 13, 2008 at 12:15 PM, Kulchar <ek...@yahoo.com> wrote:
>
>  Hello,
>
>  I downloaded a brand spanking new copy of ServiceMix 3.2.1, wnet tot he
>  examples/camel directory and typed in "mvn clean test".  The test
>  SpringWithNoVersionsTest failed with the following surefile error file.  I
>  only copied a portion of the file to be brief.
>  -----------------------------------------------------------
>  -------------------------------------------------------------------------------
>  Test set: org.apache.servicemix.test.SpringWithNoVersionsTest
>  -------------------------------------------------------------------------------
>  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.923 sec
>  <<< FAILURE!
>  testDeploy(org.apache.servicemix.test.SpringWithNoVersionsTest)  Time
>  elapsed: 11.907 sec  <<< ERROR!
>  org.springframework.beans.factory.BeanCreationException: Error creating bean
>  with name 'org.apache.servicemix.jbi.container.SpringJBIContainer' defined
>  in class path resource [test1-noversions.xml]: Invocation of init method
>  failed; nested exception is java.lang.Exception: <?xml version="1.0"
>  encoding="UTF-8"?>
>  <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>  version="1.0">
>  <jbi-task-result>
>  <frmwk-task-result>
>  <frmwk-task-result-details>
>  <task-result-details>
>  <task-id>installComponent</task-id>
>  <task-result>FAILED</task-result>
>  <message-type>ERROR</message-type>
>  <task-status-msg>
>  <msg-loc-info>
>  <loc-token/>
>  <loc-message>file://C:\Documents and
>  Settings\............./.m2/repository/org/apache/servicemix/servicemix-camel/3.2.1/servicemix-camel-3.2.1-installer.zip</loc-message>
>  </msg-loc-info>
>  </task-status-msg>
>  <exception-info>
>  <nesting-level>1</nesting-level>
>  <loc-token/>
>  <loc-message>java.net.UnknownHostException: C</loc-message>
>  <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
>  java.net.UnknownHostException: C

Well the test is obviously failing due to the Windows path on the C:
drive, but I'm not exactly sure why. What happens if you move
ServiceMix to a location without spaces in the path?

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/