Questions tagged [rmi]

Remote Method Invocation (RMI) is Java's object-oriented remote procedure call (RPC) mechanism.

Java's Remote Method Invocation (RMI) is the standard object-oriented RPC mechanism in all versions of Java. RMI is built upon the Java platform's object serialization mechanism, provides a simple naming service, and provides a distributed garbage collection (DGC) mechanism.

There are at least three RMI protocols: JRMP: Java Remote Method Protocol, built into the JDK; RMI/IIOP: Internet Inter-Orb Protocol, from CORBA, built into the JDK; and JERI: Java Extensible Remote Invocation, which was the subject of two rejected JSRs and eventually appeared in Jini 2.0, whose main purpose was to greatly improve several aspects of secure RMI. RMI/IIOP is the standard protocol for J2EE, although various J2EE vendors have their own protocols as well.

2559 questions
0
votes
1 answer

RMI understanding question

everyone. I got general idea about RMI, but still need to understand some details. 1) Who generates stub object: server or RMI registry? 2) Where does client get stub class to deserialize stub object? Thanks.
Konstantin Milyutin
  • 10,842
  • 11
  • 53
  • 77
0
votes
2 answers

NullPointerException at a simple null check in java

I get a NullPointerException at a line on which just a simple null check takes place.The line is the following: if(routingTable[commonBitGroups][nextNumberOfOther-1]==null) I verify that the array is not null just before this line. commonBitGroups…
Range
  • 649
  • 1
  • 7
  • 14
0
votes
1 answer

Java Apache POI NoClassDefFoundError WorkbookFacory

I am trying to call a method on server-side implemented by Java RMI. This method will open, read and do some data manipulation in the excel spreadsheet. Workbook wb = WorkbookFactory.create(inp); This is the code which I get the following…
0
votes
0 answers

How to find the name with spaces using java.rmi.Naming.lookup()?

I register a RMI Object using these codes on the Server side: IHello stub = (IHello)UnicastRemoteObject.exportObject(obj, 20200); Registry registry = LocateRegistry.createRegistry(20222); registry.bind("A Say Hello Remote Object", stub); When I get…
Eric
  • 26
  • 3
0
votes
2 answers

Determining ip of java rmi remote object host machine using rmi registry

Is there a way to determine the ip of the machine on which a remote object is hosted?Is there a way to get this information from the rmi registry?
Range
  • 649
  • 1
  • 7
  • 14
0
votes
0 answers

JDK 8u161 breaks JMX Integration

I'm working with a piece of code that's quite old. It works absolutely fine with the versions of Java older than 8u161. This is the error I get on 8u161 and beyond releases. [main] ******** - Failed to create…
Curious Coder
  • 546
  • 5
  • 14
0
votes
0 answers

Java RMI, JMX with JAAS: how to propagate authentication information downstream

I have an RMI server which uses JAAS as authentication mechanism and exposes several business objects (MBeans). The JAAS login module contains multiple credentials each associated with different permissions, e.g. READ-ONLY, READ-WRITE, DEV etc.…
Stepan Kolesnik
  • 614
  • 1
  • 7
  • 12
0
votes
4 answers

Why do we use HTTP and not remote invocations?

Hey, first of all this is a conceptional question and I do not know if StackOverflow is the appropriate place - so my apologies if I am wrong. Nowadays the web is not only used for passing raw informations. Many and especially complex web…
0
votes
1 answer

RMI callbacks in Eclipse RCP

So I'm using RMI in an Eclipse RCP application. The classloader of RMI and OSGI hate each other so much, but I could solve my first problem here. My server application consists of the Server bundle, which depends on Core. Additionally the bundle…
Geniedesalpages
  • 418
  • 1
  • 3
  • 15
0
votes
0 answers

java.rmi.UnmarshalException running rmi server code

I am getting below exception when I run the rmi server code java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: …
Mohan
  • 193
  • 6
  • 18
0
votes
1 answer

How to set up remote access SSL JMX interface on app in docker

This follows on from "How to access JMX interface in docker from outside?" which talks about setting up unencrypted JMX connections. I could use either RMI or JMXMP which Glassfish uses. There is a set of JVM options that are required and I'm…
Adam
  • 4,560
  • 3
  • 40
  • 78
0
votes
1 answer

How to start a RMI server with local codebase

I'm trying to run the example from here We have a remote interface: package example.hello; import java.rmi.Remote; import java.rmi.RemoteException; public interface Hello extends Remote { String sayHello() throws RemoteException; } Then we…
acejazz
  • 617
  • 6
  • 18
0
votes
1 answer

java.lang.ClassNotFoundException: java.rmi.server.RemoteObjectInvocationHandler in Java 1.3

I need to run an rmi server on java 8 and call it from java 1.3; when i use This code: ITest service= (Test) Naming.lookup("rmi://172.16.1.24:1009/testRmiService"); String people = service.TestMethod("hamed" ); "java.lang.ClassNotFoundException:…
hamedh.1990
  • 179
  • 2
  • 13
0
votes
1 answer

Client thread fails when contacting RMI server: java.rmi.UnmarshalException: error unmarshalling return

I have a client side that takes input from a JSP page and then gives it to a thread, the thread is added to a thread pool and when it executes the thread contacts the RMI server to get the remote object and then should return the results which will…
Conor T
  • 29
  • 9
0
votes
1 answer

Windows cannot find rmi registry

I get the following error when doing start rmiregistry from command prompt: Windows cannot find 'rmiregistry'. Make sure you typed the name correctly, and then try again. I want to start Java's rmi server from command prompt. I firstly change…
csandreas1
  • 1,870
  • 19
  • 36
1 2 3
99
100