[ https://issues.apache.org/jira/browse/PROXY-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534939 ]
Joerg Schaible commented on PROXY-3: ------------------------------------ I can run it on Linux/JDK 6 with following brute-force patch: Index: src/test/java/org/apache/commons/proxy/provider/remoting/TestRmiProvider.java =================================================================== --- src/test/java/org/apache/commons/proxy/provider/remoting/TestRmiProvider.java (Revision 584833) +++ src/test/java/org/apache/commons/proxy/provider/remoting/TestRmiProvider.java (Arbeitskopie) @@ -82,6 +82,7 @@ UnicastRemoteObject.unexportObject( implObject, true ); UnicastRemoteObject.unexportObject( registry, true ); registry = null; + System.runFinalization(); } > RMI Test Case Failures on Linux > ------------------------------- > > Key: PROXY-3 > URL: https://issues.apache.org/jira/browse/PROXY-3 > Project: Commons Proxy > Issue Type: Bug > Affects Versions: 1.0 > Environment: Operating System: > Linux version 2.6.20-1.2962.fc6 ([EMAIL PROTECTED]) (gcc > version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Tue Jun 19 19:27:14 EDT 2007 > Java Version: > java version "1.6.0" > Java(TM) SE Runtime Environment (build 1.6.0-b105) > Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing) > Reporter: James Carman > Assignee: James Carman > Fix For: 1.0 > > > The RMI test case fails with the following message: > testGetObjectWithInvalidName(org.apache.commons.proxy.provider.TestRmiProvider) > Time elapsed: 0.005 sec <<< ERROR! > java.rmi.server.ExportException: Port already in use: 13099; nested exception > is > : > java.net.BindException: Address already in use > at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310) > at > sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218 > ) > at > sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393) > at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129) > at > sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:19 > 0) > at > java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject. > java:293) > at > java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject. > java:235) > at > java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:1 > 33) > at > org.apache.commons.proxy.util.rmi.RmiEchoImpl.<init>(RmiEchoImpl.java > :31) > at > org.apache.commons.proxy.provider.TestRmiProvider.setUpRegistry(TestR > miProvider.java:49) > at > org.apache.commons.proxy.provider.TestRmiProvider.testGetObjectWithIn > validName(TestRmiProvider.java:106) > Caused by: java.net.BindException: Address already in use > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) > at java.net.ServerSocket.bind(ServerSocket.java:319) > at java.net.ServerSocket.<init>(ServerSocket.java:185) > at java.net.ServerSocket.<init>(ServerSocket.java:97) > at > sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMI > DirectSocketFactory.java:27) > at > sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMI > MasterSocketFactory.java:333) > at > sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:64 > 9) > at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299) > ... 35 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.