harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1231) [classlib][rmi] compatibility: LocateRegistry.createRegistry(-1) throws IllegalArgumentException on RI and ExportException on Harmony
Date Mon, 21 Aug 2006 06:03:15 GMT
[classlib][rmi] compatibility: LocateRegistry.createRegistry(-1) throws IllegalArgumentException
on RI and ExportException on Harmony
-------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-1231
                 URL: http://issues.apache.org/jira/browse/HARMONY-1231
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Vladimir Ivanov


The Method LocateRegistry.createRegistry(-1) throws IllegalArgumentException on RI and ExportException
caused by IllegalArgumentException on Harmony.

=================== test.java =====================
import java.rmi.registry.LocateRegistry;

public class test {

    public static void main(String [] args) throws Exception {
        LocateRegistry.createRegistry(-1);
    }
}
===============================================

Output:
C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized
over throughput (initial strategy singleparpar))

java.lang.IllegalArgumentException: Port value out of range: -1
        at java.net.ServerSocket.<init>(ServerSocket.java:180)
        at java.net.ServerSocket.<init>(ServerSocket.java:97)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:27)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:333)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:622)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:231)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:178)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
        at test.main(test.java:6)

C:\tmp\tmp17>C:\harmony\drlvm1.5\build\win_ia32_msvc_debug\deploy\jre\bin\java -Dvm.assert_dialog=false
-cp . -showversion test
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r433135, (Aug 21 2006), Windows/ia32/msvc 1310, debug build
http://incubator.apache.org/harmony
java.rmi.server.ExportException: Unable to export object on port -1; nested exception is:
        java.lang.IllegalArgumentException: Port out of range: -1
        at org.apache.harmony.rmi.remoteref.UnicastServerRef.exportObject(UnicastServerRef.java:346)
        at org.apache.harmony.rmi.server.ExportManager.exportObject(ExportManager.java:145)
        at org.apache.harmony.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:134)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:57)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:124)
        at test.main(test.java:6)
Caused by: java.lang.IllegalArgumentException: Port out of range: -1
        at java.net.ServerSocket.checkListen(ServerSocket.java:167)
        at java.net.ServerSocket.<init>(ServerSocket.java:105)
        at java.net.ServerSocket.<init>(ServerSocket.java:70)
        at org.apache.harmony.rmi.transport.proxy.HttpServerSocket.<init>(HttpServerSocket.java:52)
        at org.apache.harmony.rmi.transport.proxy.HttpProxyRMISocketFactory.createServerSocket(HttpProxyRMISocketFactory.java:109)
        at org.apache.harmony.rmi.transport.DefaultRMISocketFactory.createServerSocket(DefaultRMISocketFactory.java:202)
        at org.apache.harmony.rmi.transport.Endpoint.createServerSocket(Endpoint.java:148)
        at org.apache.harmony.rmi.server.ServerConnectionManager.<init>(ServerConnectionManager.java:99)
        at org.apache.harmony.rmi.server.ServerConnectionManager.getMgr(ServerConnectionManager.java:131)
        at org.apache.harmony.rmi.remoteref.UnicastServerRef.exportObject(UnicastServerRef.java:340)
        at org.apache.harmony.rmi.server.ExportManager.exportObject(ExportManager.java:145)
        ... 4 more


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message