Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Java RMI - Eclipse Plugins
Java RMI - Eclipse Plugins [message #1091415] Wed, 21 August 2013 13:21
Markus Riedl is currently offline Markus RiedlFriend
Messages: 20
Registered: November 2012
Junior Member

I know this question gets asked a lot, but I pretty much searched and tried everything (at least thats how it feels) and can not come up with a solution.

So any help would be greatly appreciated.

The situation, packages on the left:
data: java/eclipse project with file, that contains the interfaces
RMI server: normal java program (but with a
RMI client: eclipse plugin

Connection to the server from the client is working and i get the shared instance.

But as soon as i call methods, where i should get an object implementing an interface from data, i get the exception:

java.rmi.UnmarshalException: error unmarshalling return; nested exception is:

Curiously enough it does find the interface, rather it does not find the implementation class (contained in the server).
In short: the eclipse plugin wants to load the implementation class from the server.

Obviously i then tried to set the codebase property, so that the eclipse plugin does not try to load the class, but instead downloads it from the server.
-Djava.rmi.server.codebase=file:${workspace_loc}\...\lib\trmi.jar (trmi should create all the necessary stubs and I'm working on a single pc, even when i set it to \bin\ it does not find the class)

Another try was then to run a small (but java program only) client executing the same call, this setup works!

So could you give me a hint what is wrong with this setup?!?

Greetings Markus

[Updated on: Wed, 21 August 2013 13:51]

Report message to a moderator

Previous Topic:UI not listing contents of Eclipse software site
Next Topic:resource change listener
Goto Forum:

Current Time: Tue Apr 24 13:02:34 GMT 2018

Powered by FUDForum. Page generated in 0.01572 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software