rmi

RMI-applets - Cannot understand error message

In a simple RMI game I'm writing (an assignment in uni), I reveice: java.rmi.MarshalException: error marshalling arguments; nested exception is: java.net.SocketException: Broken pipe at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:138) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Remot...

Help needed to resolve RMI RemoteException

Hello friends, Any idea why do I get RemoteException while trying to invoke methods on Unix machine from Windows. I am inside the network and dont think this is because of firewall problem as I can do "telnet" from Windows to Unix box after starting the RMI server at the unix box. I also could not understand why is it going to local loo...

How to remotely connect to jmx on tomcat using ssh tunnelling and not break ehcache...

I've followed the instructions in the following link to create my own RMI registry and jmx server on a single port inside tomcat. According to the comments, I need to set -Djava.rmi.server.hostname=localhost. Once I do that, I can indeed connect to my server via jconsole using ssh port forwarding. http://blogs.sun.com/jmxetc/entry/con...

Java RMI Proxy issue

I am getting this error: java.lang.ClassCastException: $Proxy0 cannot be cast to rmi.engine.Call at Main.main(Main.java:39) My Abstract and Call class both extend Remote. Call: public class Call extends UnicastRemoteObject implements rmi.engine.Abstract { public Call() throws Exception { super(Store.PORT, new R...

file transfer using RMI

how to do the file transfer using RMI in java? ...

Poor performance using RMI-proxies with Swing components

I'm having huge performance issues when I add RMI proxy references to a Java Swing JList-component. I'm retrieving a list of user Profiles with RMI from a server. The retrieval itself takes just a second or so, so that's acceptable under the circumstances. However, when I try to add these proxies to a JList, with the help of a custom L...

Writing secure java code with RMI

Hi Everyone, This may seem like a very broad question, but any help is appreciated. I have a client/server solution written in java which uses the Cajo project (which uses RMI). I just want to try and make my solution as secure as possible, given the sensitive data that will be transferred between server and client. So far, my ideas a...

MutiHomed computers and rmi?

Hello, I am writing a program using rmi to connect server and clients together and got the following issue: My rmi server support both ethernet and wifi mode rmi clients can connect to the server either vi ethernet or wifi depending. That because s*ome clients can only run via ethernet* and some can only run via wifi. My question is...

How to disable weak-ciphers on rmi port on Jboss 4.2.3GA?

I don't have any service connector port setting for rmi in file /deploy/jboss-web.deployer/server.xml. I have an mbean for org.jboss.invocation.jrmp.server.JRMPInvoker in /conf/jboss-service.xml in which I have settings for ports, serveraddress, etc. How do I specify cipher-suites for rmi so that I am able to disable week ciphers (less t...

running an RMI server in command line and eclipse

I need to run my RMI server RmiEncodingServer) using the command line, my class files reside in this folder: C:\workspace\distributedhw2\AgencyServers\RmiEncodingServer\RmiServerClasses in package hw2.rmi.server. The code base reside in this folder: C:\workspace\distributedhw2\AgencyServers\RmiEncodingServer\RmiServerCodeBase in p...

Applet in client-server infrastructure

Hello! I have a general question concerning client-server design. We have a Java server with Spring, a GWT client program and some HTTP-servlets for our site. At the moment we also want to develop an applet which would communicate with that server in such a way GWT-client and site requests do. Is it a good idea to communicate with the...

RMI on client side generating exception when getting a reference to the RMI server

When I try to run an RMI client after running the RMI server I get the following exception: EncodeInterface exception: java.lang.ClassCastException: $Proxy30 cannot be cast to hw2.chat.backend.main.EncodeInterface java.lang.ClassCastException: $Proxy30 cannot be cast to hw2.chat.backend.main.EncodeInterface at hw2.chat.backend.main.Enco...

Connecting to an RMI object without registry

I think I need to connect to a remote RMI object without going through the registry, but I don't know how. My situation is this: I'm implementing a simple job distribution service which consists of one distributor and multiple workers. The distributor has a registered RMI object to which clients connect to send jobs, and workers connec...

Java RMI cannot connect to host from external client.

I've been using RMI in this project for a while. I've gotten the client program to connect (amongst other things) to the server when running it over my LAN, however when running it over the internet I'm running into the following exception: java.rmi.ConnectException: Connection refused to host: (private IP of host machine); nested excep...

What port is used by Java RMI connection?

Hi, May I know what port is used by Java RMI connection? If I want to connect a Java client application to a Java server application using RMI connection, what port I need to open at the server machine so that the client application can connect to it? I want to set up a firewall in the server machine but I don't know which port I shou...

Should I use RMI for Java multiplayer game?

I'm building a Monopoly game in Java and I want it to be able to support games over the net (the point was so me and my friends over in the US of A could play). Networking is a whole area of programming I have yet to enter so I have been finding it quite hard to decide how exactly to pull it off. In general, I felt that the correct way ...

RMI: Pass by Value or by Reference?

I'm having trouble finding a clear answer to this question so I thought I'd ask here with my own specific example: I am creating a mulitplayer monopoly game. The actual monopoly code runs on the server and the client is essentially a GUI which accesses and control this code. The monopoly game is controlled by a class called 'Bank'. Sa...

How to design an API for operating on remote objects with java RMI

I have a remote object exposed through RMI, which I use to perform several things on a resource that the object holds. Right now I have method for each operation I need to perform. Example: public interface IRobotController { public int walk(int meters); public void dance(int seconds); } public interface RMIRobotController imp...

In Java can a remote object also be a client?

In Java can a remote object also be a client? So a client may call a remote object and the definition of that tat object through it's interface is a remote object, but can it also be a client of another remote object? And if yes, does anything special need to be done to make a remote object a client Thanks! ...

Access control Exception

When iam running RMI Server in netbeans iam getting java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve) Pls suggest what to do? Thanks in Advance ...