RMI port misuse

I'm getting really ticked off with clients having problems using my software because the RMI port 1099 (and often enough 1098) is being misused by another process. Does the IANA registered port list mean anything at all?
I guess I can't change the world :( so I'd like to know how other people deal with this problem. Thanks.

Two of the culprits are Microsoft (Outlook) and Google so I hope you have a big boot!
1098 and 1099 are also in the range of ephemeral ports --- allocated as the local end of connections which don't specify a port number.
http://support.microsoft.com/default.aspx?scid=kb;en-us;812873
"On Windows Vista and Server 2008 the default range of ephemeral ports is now 49152 to 65535"
For older versions of Windows the default range is 1025 - 4000 (and you can't change that lower limit). Finally a reason to use Vista!
Edited by: mthornton on 15-Nov-2008 20:35

Similar Messages

  • Shutting down default JMX RMI port

    I am starting up my JMX agent for remote access and it opens 2 ports, one which is set by the -Dcom.sun.management.jmxremote.port=XXXX and one randomly assigned port.
    I know I can install a custom JMX agent to specify another RMI port that I can control, but what I really want to do is shut down the randomly assigned one. The problem is that weve a port monitoring app, so I can't open any ports open that I cannot control with causing IT to complain. Is there any way to disable this connector?
    Thanks,
    Mark

    Hi,
    Please have a look at these articles:
    [http://blogs.sun.com/jmxetc/tags/firewall|http://blogs.sun.com/jmxetc/tags/firewall]
    they should answer your questions.
    Best regards,
    -- daniel
    JMX, SNMP, Java, etc...
    [http://blogs.sun.com/jmxetc|http://blogs.sun.com/jmxetc]

  • Specifying RMI Port in JNDI Lookup

    Hi,
    I am using Silverstream 3.7.4 server for my J2EE development.
    The host machine having multiple machine uses different RMI ports.
    So I have 54893 as RMI port instead of default 54890. I cannot
    create a InitialContext due to this Reason. Can anybody help me how to resolve this problem. The Code is
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sssw.rt.jndi.AgInitCtxFactory");
    p.put(Context.PROVIDER_URL,"iiop://cds:15003");
    Object sbobj = context.lookup("/RMI/ejb/ODRSessionFacade");
    odrEJBHome = (ODRSessionFacadeHome)PortableRemoteObject.narrow(sbobj,ODRSessionFacadeHome.class);
    odrEJB = odrEJBHome.create();
    The Exception is:
    javax.naming.ConfigurationException: Error finding 'RMI/ejb/ODRSessionFacade'. Resolution name is 'iiop://localhost:54890'.
    javax.naming.ConfigurationException: Error finding 'RMI/ejb/ODRSessionFacade'. Resolution name is 'iiop://localhost:54890'.
         at com.sssw.rt.jndi.AgInitCtx.checkFederatedContext(AgInitCtx.java:436)
         at com.sssw.rt.jndi.AgInitCtx.checkFederatedName(AgInitCtx.java:98)
         at com.sssw.rt.ejb.AgInitClientCtx.lookup(AgInitClientCtx.java:66)
         at com.sssw.rt.jndi.AgBaseCtx.lookup(AgBaseCtx.java:218)
         at com.sssw.rt.jndi.AgInitCtx.lookup(AgInitCtx.java:492)
         at com.sssw.rt.ejb.AgInitClientCtx.lookup(AgInitClientCtx.java:70)
         at com.sssw.rt.jndi.AgBaseCtx.lookup(AgBaseCtx.java:241)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at com.sdm.pdr.ODR.ServerObject.<init>(ServerObject.java:39)
         at com.sdm.pdr.ODR.ODRMain.<init>(ODRMain.java:16)
         at com.sdm.pdr.ODR.ODRMain.main(ODRMain.java:48)

    YOUR SYSTEM MAYBE HAS SOMETHING WRONG WITH THE FIREWALL
    AND THE PORT CANNOT BE USED!YOU BE SURE:)

  • Changing RMI Port in HTTP adapter in interconnect

    Hi
    I need to change the RMI port for one of my HTTP adapters in Interconnect. I have changed it in the adapter.ini and in the web.xml files. I have then recreated the JAR/EAR files and redeployed the application to the oai component. The adapter starts ok but it still appears to be using the old port number and i can't send any messages to it (get a 500 Internal server error). Is there something else that needs changing?
    Cheers

    Hello,
    http://server:port/sap/xi/adapter_plain?service=<xxx>&namespace=<xxx>&interface=<xxx>&sap-user=<xxx>&sap-password=<xxx>&qos=BE&ProductID=000000000000000216&uid=500014&deviceID=0725&StoreID=0004
    In above "HTTP Post" format data has been sent in url without body of message.
    Please remember that when creating a sender/receiver using the Plain HTTP Adapter, the following are automatically filled out
    Transport Protocol: HTTP 1.0, Message Protocol: XI Payload in HTTP Body. The transport protocol means that only HTTP 1.0 is supported and that for it to work, an HTTP Body is required.
    Hope this helps,
    Mark

  • 9.0.3/EJB RMI-Port on 9iAS?

    Hello!
    I use JDev 9.0.3 / 9iAS9.0.3.
    I deployed one session-bean to 9iAS903 which i wants to access during fat-java client.
    deploying to external oc4j-instance, i can access the ejb with "normal" rmi-port.
    But which rmi-port should i use on 9ias, because the rmi-ports are set during ranges (e.g.3100-3200) and i have more than one oc4j-instance running (i also use oc4j-islands, e.g. 2 jvm-processes for one instance)? i followed the tasks described in jdev-help (described below), but this does not really work.
    Under JDev 9.0.3 Help "Accessing EJBs from Oracle9iAS"
    i found the following description:
    "After the EJB JAR is deployed to Oracle9iAS, a Java client can access it in the following way: In the Oracle9iAS Enterprise Manager, you must provide a fixed port number for the specific OC4J instance in which the EJB JAR was deployed. Specify this port number in Enterprise Manager | OC4J Instance | Server Properties. For example: 3103. Restart this specific OC4J instance as appropriate. ... Run the Java client using the same RMI port number that you specified for the
    OC4J instance in Enterprise Manager (port 3103). "
    has anyone tested this?
    best regards
    harald.

    Hello!
    one question:
    if i do this, i must manage the rmi-ports for all
    oc4j-instances on 9ias or can i use the
    rmi-port-range for one instance and fix the rmi-port
    for another oc4j-instance?
    You can decide this on a per instance basis.
    In ompn.xml-file i can set the ranges e.g. for
    rmi-ports. is it possible to change this range e.g.
    rmi="3101-3190" and fix the instances with rmi-port
    3191?
    maybe this could work?That's the idea.
    >
    Where i can set the meta-information of rmi-ports
    range, which will be used during creating a
    oc4j-instance?
    Check out the ias administration guide. Sorry I don't have the url handy. Basically use the enterprise manager and drill down to the oc4j instance administration section.
    best regards
    Harald

  • Default RMI port 1099

    Hello,
    Does anybody know how to change the default RMI port 1099 for
    WebLogic implementation of RMI. Is there some config parameter
    which will do it. I happened to have two RMI registry running
    on one computer and I would like to run them on two different
    ports (one of them is not WebLogic and not our application).
    So I have control anly of one of them and do not want to connect
    to the existing rmi registry.
    Thanks, Lev

    1099 is the port the java.rmi registry runs on. The WLS registry is a specialized namespace in the WLS JNDI name tree, so it is bound to the same port as the WLS instance. For example, a WLS instance started with
    java.exe .... -Dweblogic.system.listenPort=7701 -Dweblogic.system.SSLListenPort=7702 weblogic.Server
    will respond to
    weblogic.rmi.Naming.lookup("rmi://localhost:7701/foo");
    or
    weblogic.rmi.Naming.lookup("rmi://localhost:7702/foo");
    but not
    weblogic.rmi.Naming.lookup("rmi://localhost:1099/foo");
    Lev wrote:
    Hello,
    Does anybody know how to change the default RMI port 1099 for
    WebLogic implementation of RMI. Is there some config parameter
    which will do it. I happened to have two RMI registry running
    on one computer and I would like to run them on two different
    ports (one of them is not WebLogic and not our application).
    So I have control anly of one of them and do not want to connect
    to the existing rmi registry.
    Thanks, Lev

  • Changed RMI port to 8010, but still looking for default 1099 port..

    I have changed the rmi port to 8010 by using following command
    rmiregistry 8010 & In linux server
    when I run the serverImpl class to bind.. Its giving connection refused error..The Port is opened by network admin and telnet hostname 8010 is also working fine ( gets escape chaaracter..)
    Please help.. do I have to something more in like change some configurations? :(

    Hi I am doing following after your advise,
    1. rmiregistry 8010&
    in SampleServerImpl.java
    import java.rmi.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class SampleServerImpl extends UnicastRemoteObject
    implements SampleServer
    SampleServerImpl() throws RemoteException
    super();
    public int sum(int a,int b) throws RemoteException
    return a + b;
    public static void main(String args[])
    //set the security manager
    try
    System.setSecurityManager(new RMISecurityManager());
    //create a local instance of the object
    SampleServerImpl Server = new SampleServerImpl();
    //put the local instance in the registry
    Registry reg = LocateRegistry.getRegistry("10.252.26.6",8010);
    if(reg != null) {
    System.out.println("1port="+reg.REGISTRY_PORT);
    reg.bind("SAMPLE-SERVER",Server);
    System.out.println(" After reg binding server waiting.....");
    catch (RemoteException re)
    System.out.println("Remote exception: " + re.toString());
    re.printStackTrace();
    catch (Exception exp)
    System.out.println("Other exception: " + exp.toString());
    exp.printStackTrace();
    I have compiled above class and also regenerated stub and skeleton..
    After running this java im getting following error..
    one more thing is System.out.println("1port="+reg.REGISTRY_PORT); always prints 1099 port..
    1port=1099
    Remote exception: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: SampleServerImpl_Stub
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: SampleServerImpl_Stub
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:352)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:534)
    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:350)
    at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
    at SampleServerImpl.main(SampleServerImpl.java:39)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: SampleServerImpl_Stub
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassNotFoundException: SampleServerImpl_Stub
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
    at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
    at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
    at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    ... 9 more
    Not sure how to fix this...Can you please help

  • RMI Port

    Hi all,
    Which is the default rmi port ?
    Where is configured this port ?
    How to configure this port ?
    Thanks

    "Jordi Pinyol" <[email protected]> writes:
    Which is the default rmi port ?
    Where is configured this port ?
    How to configure this port ?The listen port for RMI is the same as all other protocols. The
    default is 7001.
    andy

  • Cannot fix RMI port and wrong password

    Hi, I have tried to fix the RMI port no. for my OC4J instance.
    The port I specified sometimes may be taken by other OC4J instances and the server gives me the other one.
    Can I set the rmi port outside the range 3101-3200?
    Also I get the wrong password message if I try to remote access
    the OC4J instance with user 'admin'. The default password is 'welcome' before, but now the password was changed by the server itself, since no server configuration has been made.
    Any Ideas?
    thanks in advance.

    This post is just for reference.
    For some reason, the OAS full install uses the ias_admin password for accessing JNDI over RMI. If you get authentication errors, try username = admin and password = the ias_admin password entered during the install.

  • Specifying RMI port for 9iAS

    Hello,
    I can't seem to find how to explicitly declare the RMI port to use for an OC4J instance in 9iAS. There is a range of ports specified in "server properties", but how do I tell it which one to use? Through trial and error I found it listening at 3105, but for the life of me can't figure out why it chose that port.
    Thanks,
    Patrick

    The ports are dynamically assigned. If you want a specific port to be assigned please set the change to one number e.g. 3101-3101
    http://download-west.oracle.com/docs/cd/B12314_01/web.904/b10326/ormi.htm#1006423
    regards
    Debu

  • Why does the RMI port keep changing?

    I have set up an RMI server process on a Sun server (SunOS 5.8) and I am running the client process from another Sun server (SunOS 5.9). I created a policy file on the client machine providing access to port 1099 on the server machine.
    I kept getting connection refusals, and every time I did, it was on a different port. I changed the policy file to allow any port from 1099 on up in order to get around the problem. I tried to start up the rmiregistry with 1099 as an argument, and that did not help. What's going on?
    Jim

    (a) You will always get a different client side port, that's normal.
    (b) the Registry port is 1099 but RMI servers are exported on a system-selected port unless you specify one. If your Registry and RMI servers are in the same JVM they can share ports

  • Firewall and opmn_ias_instance - OPMN/RMI Ports

    We have an application server sitting behind a firewall. Say A is the host we connect to, and B is the actual host.
    Example:
    localhost .... || A / F5 FIREWALL || .... B
    localhost connects to A:6003
    A forwards to B
    B replies saying to connect to RMI at B:12401
    localhost tries to connect to B:12401
    With Apache, it's easy to redirect traffic through virtual server A, but how do you do this with ports 6003 and 12401?
    Change the host name configuration in oracle to say it's host A? If so, how would you do that? The inital opmn_ias_instance request returns:
    POST /connect HTTP/1.1
    Content-Length: 0
    OPMNtype: pm
    OPMNrequest: /dump?type=dms&dmsarg=[nountype=opmn_ias_instance&format=xml]
    HTTP/1.1 200 OK
    Content-Length: 13921
    Content-Type: text/html
    Response:
    <?xml version='1.0'?>
    <!DOCTYPE pdml>
    <pdml version='9.0.4' name='opmn' host='b' id='14099' timestamp='1278532836887'>
    <statistics>
    <noun name="b.oracle.com:6200" type="opmn">
    <noun name="pm" type="opmn_pm">
    <noun name="instance.b.oracle.come" type="opmn_ias_instance">
    <noun name="ASG" type="opmn_ias_component">
    <noun name="ASG" type="opmn_process_type">
    <noun name="ASG" type="opmn_process_set">
    Somehow I need that to return A instead of B.
    Thanks!

    Anybody?

  • RMI port amibuguity

    I have a stand alone pc running windows98/linux.
    Can one rmi server (a) running on port x#. and a client (b )running on same port x# connect the ohter server (c) on remote pc. If i want to test it on my pc how could i do it.

    Not sure I understand the question.
    A client typically connects to a server. A client doesn't have a port. The server has a port.
    So you could have a RMI server running on your machine and another running on another machine. And it connects using the address specified (your machine or the remote one.) Which ever machine is connected to the port is used on that machine.
    Does that answer it?

  • RMI+Port+Naming+UnicastRemote

    Hi,
    My RMI client is behind a firewall. My naming service is being started at port 1099. The firewall will allow access only through a single port.
    I want to know if I there is any issue invloved in exporting objects through UnicastRemoteObject at port 1099 and the running the naming service also at port 1099.
    Is it possibe?

    If you run the rmiregistry naming service on port 1099 you cannot export remote objects on that port.
    Since both use TCP port 1099, you will recieve a SocketBoundException: port already in use or something similiar.

  • RMI - Ports doubt

    Hi Everyone,
    I have a doubt about how RMI works, because I have a client-server application with RMI and I'm working on a security enviroment, but when I run the client nothing happens, I don't know why, do you have any idea?
    When I start up the rmiregistry service I'm using the port 1999 and when I bind the remote object to Registry with the method "UnicastRemoteObject.exportObject(obj ,port)" I'm using the port 1100 for the second parameter, these ports are enabled on my firewall
    please somebody help me and give me some suggestions, thanks.
    .

    Thank you again Chicon,
    But now I put the port 1999 in "UnicastRemoteObject.exportObject(obj ,port)" and I get the following exception:
    java.rmi.server.ExportException: Port already in use: 1999; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind
    java.rmi.server.ExportException: Port already in use: 1999; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind
    at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
    at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
    at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
    at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
    at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
    at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
    at mx.liverpool.transacciones.servidorRMI.Main.main(Main.java:101)
    Caused by: java.net.BindException: Address already in use: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(Unknown Source)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(Unknown Source)
    at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(Unknown Source)
    ... 8 more

Maybe you are looking for

  • XML file converting sign in my HTML tags

    Hello, I'm using Tim Dexter's guide to convert HTML inside an element to XSL in order to draw a table. This is the HTML my web service is passing to the XML: <table border="1"> <tr> <td>row1col1</td> <td>row1col2</td> </tr> <tr> <td>row2col1</td> <td

  • Applescript - "Cant get folder_"

    Hey guys. Sorry if this is a stupid question or waste of time but...I recently started messing with Applescript Editor and I'm trying to attach a folder script to a folder that will automatically delete files that are placed into that folder. Here is

  • Saving / Priniting from HTLM files

    Hello folks, everytime I save as PDF a web page or Print the Web page My Acrobat 7 inserts the address on top or bottom. Like you see here : file:///E|/DVD Lab Pro v2.5/GUIDE/audiotitle.htm (1 of 2)6/13/2009 7:20:32 AM It also puts a little title on

  • DB Config Assistant Problem post install

    I have downloaded Oracle 8i Personal Ed from Oracle Technet. I have gotten almost to the end of installation onto Win2K Professional. It has successfully configured Net8 Config Assistant and OMS NT Service, but the Oracle DB Config Assistant configur

  • Adobe X is slow and unresponsive

    Really,  if you annoy enough customers you might end up as a MBA case study!   Listen to your customers and fix teh annoying wait time for Adobe X to respond. Oh and fire the stupid person that let it through QA in such a shocking state http://www.so