You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Raymond Feng <en...@gmail.com> on 2006/10/03 01:34:50 UTC

RMI BindingTestCase failure (Port 1099 in use)

Does any of you run into this problem?

Thanks,
Raymond

[INFO] Surefire report directory: C:\Tuscany\Java\sca\services\bindings\binding.
rmi\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.tuscany.binding.rmi.BindingTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.369 sec <<< FA
ILURE!
testRmiService(org.apache.tuscany.binding.rmi.BindingTestCase)  Time elapsed: 5.
208 sec  <<< ERROR!
org.apache.tuscany.host.rmi.RMIHostRuntimeException: Port already in use: 1099;
nested exception is:
        java.net.BindException: Address already in use: NET_Bind
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:284)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:219
)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:398)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:131)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:19
5)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:107)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:93)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:1
98)
        at org.apache.tuscany.binding.rmi.host.RMIHostImpl.registerService(RMIHo
stImpl.java:60)
        at org.apache.tuscany.binding.rmi.RMIService.start(RMIService.java:76)
        at org.apache.tuscany.core.implementation.composite.AbstractCompositeCom
ponent.start(AbstractCompositeComponent.java:100)
        at org.apache.tuscany.test.SCATestCase.setUp(SCATestCase.java:66)
        at org.apache.tuscany.binding.rmi.BindingTestCase.setUp(BindingTestCase.
java:21)
        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:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav
a:210)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:135)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:225)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:747)

Re: RMI BindingTestCase failure (Port 1099 in use)

Posted by Venkata Krishnan <fo...@gmail.com>.
Hi Raymond,

I did a mvn build of rmibinding and do not see this.

This could happen if there is an RMI Server that is already running.   Can
you check with this?

Thanks

- Venkat

On 10/3/06, Raymond Feng <en...@gmail.com> wrote:
>
> Does any of you run into this problem?
>
> Thanks,
> Raymond
>
> [INFO] Surefire report directory:
> C:\Tuscany\Java\sca\services\bindings\binding.
> rmi\target\surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.tuscany.binding.rmi.BindingTestCase
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.369 sec
> <<< FA
> ILURE!
> testRmiService(org.apache.tuscany.binding.rmi.BindingTestCase)  Time
> elapsed: 5.
> 208 sec  <<< ERROR!
> org.apache.tuscany.host.rmi.RMIHostRuntimeException: Port already in use:
> 1099;
> nested exception is:
>         java.net.BindException: Address already in use: NET_Bind
>         at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java
> :284)
>         at sun.rmi.transport.tcp.TCPTransport.exportObject(
> TCPTransport.java:219
> )
>         at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java
> :398)
>         at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:131)
>         at sun.rmi.server.UnicastServerRef.exportObject(
> UnicastServerRef.java:19
> 5)
>         at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:107)
>         at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:93)
>         at java.rmi.registry.LocateRegistry.createRegistry(
> LocateRegistry.java:1
> 98)
>         at org.apache.tuscany.binding.rmi.host.RMIHostImpl.registerService
> (RMIHo
> stImpl.java:60)
>         at org.apache.tuscany.binding.rmi.RMIService.start(RMIService.java
> :76)
>         at
> org.apache.tuscany.core.implementation.composite.AbstractCompositeCom
> ponent.start(AbstractCompositeComponent.java:100)
>         at org.apache.tuscany.test.SCATestCase.setUp(SCATestCase.java:66)
>         at org.apache.tuscany.binding.rmi.BindingTestCase.setUp
> (BindingTestCase.
> java:21)
>         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:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.maven.surefire.junit.JUnitTestSet.execute(
> JUnitTestSet.jav
> a:210)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
> tSet(AbstractDirectoryTestSuite.java:135)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
> stractDirectoryTestSuite.java:122)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:225)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.j
> ava:747)
>
>