incubator-yoko-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tracy <tracy...@yahoo.com.cn>
Subject RE: [Test] Why do tests of module core fail on Windows?
Date Thu, 05 Apr 2007 02:50:27 GMT
HI,
Thanks for your help!
And I will have a try.

Regards


"Mosur Ravi, Balaji" <bravi@iona.com> : I am not getting the error. 

Are you using the default directory (in windows) for maven (Documents and Settings), if so
then change it to some other directory without spaces by setting your localRepository in settings.xml.
There is a known bug in maven where it doesn't escape the spaces properly.

I think the later version of surefire plugin fixes it, but I got a hang when running some
testcases, so couldn't upgrade to that version yet.

d:\m2\repository

You need to put the settings.xml file in Documents and Settings\\.m2 directory.

- Balaji


-----Original Message-----
From: Alan D. Cabrera [mailto:list@toolazydogs.com] 
Sent: Tuesday, April 03, 2007 3:45 PM
To: yoko-dev@incubator.apache.org
Subject: Re: [Test] Why do tests of module core fail on Windows?

I used to get this error from Geronimo on windows and I now get it on  
Yoko.  The problem was the RMI classloader that improperly splits on  
spaces in the classpath.

Balaji, can you confirm that you get this error on trunk on windows?


Regards,
Alan

On Apr 3, 2007, at 10:21 AM, Mosur Ravi, Balaji wrote:

> Hi,
>
> I am not able to reproduce this error...
>
> It might be due to some artifacts being not cleaned up when the  
> test runs...
>
> Try doing an "mvn clean" before running the test.
>
> Also, the server might be running in the background if maven is  
> hanging, so be sure to kill it first...
>
> - Balaji
>
> -----Original Message-----
> From: Tracy [mailto:tracy4mq@yahoo.com.cn]
> Sent: Monday, April 02, 2007 1:43 AM
> To: yoko-dev@incubator.apache.org
> Subject: [Test] Why do tests of module core fail on Windows?
>
> My environment: Windows XP, JDK1.5
> When I run "mvn test" in directory core\, it failed.
> But on Linux, it works well, and pass all tests.I did the same  
> thing on both system.
>
> Could any one help me?
>
> Here is output:
>
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Apache Yoko CORBA Server
> [INFO]   Apache Yoko CORBA Spec
> [INFO]   Apache Yoko RMI Spec
> [INFO]   Apache Yoko Core
> [INFO]   Apache Yoko RMI Implementation
> [INFO]   Apache Yoko Public API
> [INFO]   Apache Yoko Command Line Tools
> [INFO]   Apache Yoko Maven plugins
> [INFO]   Apache Yoko Bindings
> [INFO]   Apache Yoko Distribution
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] Building Apache Yoko CORBA Server
> [INFO]    task-segment: [test]
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] Setting property: classpath.resource.loader.class =>  
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [remote-resources:process {execution: default}]
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] Building Apache Yoko CORBA Spec
> [INFO]    task-segment: [test]
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] [idlj:generate {execution: default}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] Resource directory does not exist: E:\Yoko\yoko-spec-corba 
> \src\main\resources
> [INFO] Resource directory does not exist: E:\Yoko\yoko-spec-corba 
> \target\generated\src\main\resources
> [INFO] Copying 2 resources to META-INF
> [INFO] Copying 3 resources
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] Resource directory does not exist: E:\Yoko\yoko-spec-corba 
> \src\test\resources
> [INFO] Resource directory does not exist: E:\Yoko\yoko-spec-corba 
> \target\generated\src\test\resources
> [INFO] Copying 3 resources
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Setting reports dir: E:\Yoko\yoko-spec-corba\target/surefire- 
> reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no tests to run.
>
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
>
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] Building Apache Yoko RMI Spec
> [INFO]    task-segment: [test]
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] Resource directory does not exist: E:\Yoko\rmi-spec\src\main 
> \resources
> [INFO] Resource directory does not exist: E:\Yoko\rmi-spec\target 
> \generated\src\main\resources
> [INFO] Copying 2 resources to META-INF
> [INFO] Copying 3 resources
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] Resource directory does not exist: E:\Yoko\rmi-spec\src\test 
> \java
> [INFO] Resource directory does not exist: E:\Yoko\rmi-spec\src\test 
> \resources
> [INFO] Resource directory does not exist: E:\Yoko\rmi-spec\target 
> \generated\src\test\resources
> [INFO] Copying 3 resources
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: E:\Yoko\rmi-spec\target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no tests to run.
>
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
>
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] Building Apache Yoko Core
> [INFO]    task-segment: [test]
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] [dependency:copy {execution: default}]
> [INFO] Configured Artifact: org.apache.yoko:yoko-spec-corba:?:jar
> [INFO] Copying yoko-spec-corba-1.0-incubating-SNAPSHOT.jar to E: 
> \Yoko\core\target\endorsed\yoko-spec-corba-1.0-incubating-SNAPSHOT.jar
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] Resource directory does not exist: E:\Yoko\core\src\main 
> \resources
> [INFO] Resource directory does not exist: E:\Yoko\core\target 
> \generated\src\main\resources
> [INFO] Copying 2 resources to META-INF
> [INFO] Copying 3 resources
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] Copying 52 resources
> [INFO] Resource directory does not exist: E:\Yoko\core\src\test 
> \resources
> [INFO] Resource directory does not exist: E:\Yoko\core\target 
> \generated\src\test\resources
> [INFO] Copying 3 resources
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [antrun:run {execution: default}]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO] [surefire:test]
> [INFO] Setting reports dir: E:\Yoko\core\target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> java.rmi.ServerException: RemoteException occurred in server  
> thread; nested exception is:
>     java.rmi.UnmarshalException: error unmarshalling arguments;  
> nested exception is:
>     java.net.MalformedURLException: no protocol: and
>     at sun.rmi.server.UnicastServerRef.oldDispatch 
> (UnicastServerRef.java:385)
>     at sun.rmi.server.UnicastServerRef.dispatch 
> (UnicastServerRef.java:240)
>     at sun.rmi.transport.Transport$1.run(Transport.java:153)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>     at sun.rmi.transport.tcp.TCPTransport.handleMessages 
> (TCPTransport.java:466)
>     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (TCPTransport.java:707)
>     at java.lang.Thread.run(Thread.java:595)
>     at  
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer 
> (StreamRemoteCall.java:247)
>     at sun.rmi.transport.StreamRemoteCall.executeCall 
> (StreamRemoteCall.java:223)
>     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
>     at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
>     at org.apache.yoko.processmanager.ProcessManager. 
> (ProcessManager.java:48)
>     at org.apache.yoko.AbstractOrbTestBase.setUp 
> (AbstractOrbTestBase.java:57)
>     at junit.framework.TestCase.runBare(TestCase.java:128)
>     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:120)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     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.battery.JUnitBattery.executeJUnit 
> (JUnitBattery.java:242)
>     at org.apache.maven.surefire.battery.JUnitBattery.execute 
> (JUnitBattery.java:216)
>     at org.apache.maven.surefire.Surefire.executeBattery 
> (Surefire.java:215)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
>     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.SurefireBooter.main 
> (SurefireBooter.java:785)
> Caused by: java.rmi.UnmarshalException: error unmarshalling  
> arguments; nested exception is:
>     java.net.MalformedURLException: no protocol: and
>     at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
>     at sun.rmi.server.UnicastServerRef.oldDispatch 
> (UnicastServerRef.java:375)
>     at sun.rmi.server.UnicastServerRef.dispatch 
> (UnicastServerRef.java:240)
>     at sun.rmi.transport.Transport$1.run(Transport.java:153)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>     at sun.rmi.transport.tcp.TCPTransport.handleMessages 
> (TCPTransport.java:466)
>     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (TCPTransport.java:707)
>     at java.lang.Thread.run(Thread.java:595)
> Caused by: java.net.MalformedURLException: no protocol: and
>     at java.net.URL.(URL.java:567)
>     at java.net.URL.(URL.java:464)
>     at java.net.URL.(URL.java:413)
>     at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747)
>     at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
>     at java.rmi.server.RMIClassLoader$2.loadClass 
> (RMIClassLoader.java:620)
>     at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java: 
> 247)
>     at sun.rmi.server.MarshalInputStream.resolveClass 
> (MarshalInputStream.java:197)
>     at java.io.ObjectInputStream.readNonProxyDesc 
> (ObjectInputStream.java:1544)
>     at java.io.ObjectInputStream.readClassDesc 
> (ObjectInputStream.java:1466)
>     at java.io.ObjectInputStream.readOrdinaryObject 
> (ObjectInputStream.java:1699)
>     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java: 
> 1305)
>     at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 
> 348)
>     ... 9 more
> java.rmi.ServerException: RemoteException occurred in server  
> thread; nested exception is:
>     java.rmi.UnmarshalException: error unmarshalling arguments;  
> nested exception is:
>     java.net.MalformedURLException: no protocol: and
>     at sun.rmi.server.UnicastServerRef.oldDispatch 
> (UnicastServerRef.java:385)
>     at sun.rmi.server.UnicastServerRef.dispatch 
> (UnicastServerRef.java:240)
>     at sun.rmi.transport.Transport$1.run(Transport.java:153)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>     at sun.rmi.transport.tcp.TCPTransport.handleMessages 
> (TCPTransport.java:466)
>     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (TCPTransport.java:707)
>     at java.lang.Thread.run(Thread.java:595)
>     at  
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer 
> (StreamRemoteCall.java:247)
>     at sun.rmi.transport.StreamRemoteCall.executeCall 
> (StreamRemoteCall.java:223)
>     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
>     at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
>     at org.apache.yoko.processmanager.ProcessManager. 
> (ProcessManager.java:48)
>     at org.apache.yoko.AbstractOrbTestBase.setUp 
> (AbstractOrbTestBase.java:57)
>     at junit.framework.TestCase.runBare(TestCase.java:128)
>     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:120)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     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.battery.JUnitBattery.executeJUnit 
> (JUnitBattery.java:242)
>     at org.apache.maven.surefire.battery.JUnitBattery.execute 
> (JUnitBattery.java:216)
>     at org.apache.maven.surefire.Surefire.executeBattery 
> (Surefire.java:215)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
>     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.SurefireBooter.main 
> (SurefireBooter.java:785)
> Caused by: java.rmi.UnmarshalException: error unmarshalling  
> arguments; nested exception is:
>     java.net.MalformedURLException: no protocol: and
>     at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
>     at sun.rmi.server.UnicastServerRef.oldDispatch 
> (UnicastServerRef.java:375)
>     at sun.rmi.server.UnicastServerRef.dispatch 
> (UnicastServerRef.java:240)
>     at sun.rmi.transport.Transport$1.run(Transport.java:153)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>     at sun.rmi.transport.tcp.TCPTransport.handleMessages 
> (TCPTransport.java:466)
>     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (TCPTransport.java:707)
>     at java.lang.Thread.run(Thread.java:595)
> Caused by: java.net.MalformedURLException: no protocol: and
>     at java.net.URL.(URL.java:567)
>     at java.net.URL.(URL.java:464)
>     at java.net.URL.(URL.java:413)
>     at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747)
>     at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
>     at java.rmi.server.RMIClassLoader$2.loadClass 
> (RMIClassLoader.java:620)
>     at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java: 
> 247)
>     at sun.rmi.server.MarshalInputStream.resolveClass 
> (MarshalInputStream.java:197)
>     at java.io.ObjectInputStream.readNonProxyDesc 
> (ObjectInputStream.java:1544)
>     at java.io.ObjectInputStream.readClassDesc 
> (ObjectInputStream.java:1466)
>     at java.io.ObjectInputStream.readOrdinaryObject 
> (ObjectInputStream.java:1699)
>     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java: 
> 1305)
>     at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 
> 348)
>     ... 9 more
> java.rmi.ServerException: RemoteException occurred in server  
> thread; nested exception is:
>     java.rmi.UnmarshalException: error unmarshalling arguments;  
> nested exception is:
>     java.net.MalformedURLException: no protocol: and
>     at sun.rmi.server.UnicastServerRef.oldDispatch 
> (UnicastServerRef.java:385)
>     at sun.rmi.server.UnicastServerRef.dispatch 
> (UnicastServerRef.java:240)
>     at sun.rmi.transport.Transport$1.run(Transport.java:153)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>     at sun.rmi.transport.tcp.TCPTransport.handleMessages 
> (TCPTransport.java:466)
>     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (TCPTransport.java:707)
>     at java.lang.Thread.run(Thread.java:595)
>     at  
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer 
> (StreamRemoteCall.java:247)
>     at sun.rmi.transport.StreamRemoteCall.executeCall 
> (StreamRemoteCall.java:223)
>     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
>     at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
>     at org.apache.yoko.processmanager.ProcessManager. 
> (ProcessManager.java:48)
>     at org.apache.yoko.AbstractOrbTestBase.setUp 
> (AbstractOrbTestBase.java:57)
>     at junit.framework.TestCase.runBare(TestCase.java:128)
>     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:120)
>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>     at junit.framework.TestSuite.run(TestSuite.java:225)
>     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.battery.JUnitBattery.executeJUnit 
> (JUnitBattery.java:242)
>     at org.apache.maven.surefire.battery.JUnitBattery.execute 
> (JUnitBattery.java:216)
>     at org.apache.maven.surefire.Surefire.executeBattery 
> (Surefire.java:215)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
>     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)

=== message truncated ===

 		
---------------------------------
 Mp3疯狂搜-新歌热歌高速下   
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message